gui-thunks
spotless
gui-thunks | spotless | |
---|---|---|
2 | 11 | |
3 | 4,206 | |
- | 2.1% | |
10.0 | 9.7 | |
about 4 years ago | 12 days ago | |
Java | ||
- | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
gui-thunks
-
Humble Chronicles: Managing State with Signals
It's interesting how every build system, frontend framework, programming language implements its own promise pipeline/delayed execution/observables/event propagation.
But the implementations are rarely extracted out for general purpose usage and rarely have a rich API.
I've been thinking a lot about a general purpose "epoll" which be registered on objects that change. I want to be able to register a reaction to a sequence of actions on arbitrary objects with an epoll style API.
One of my ideas is GUI thunking. The idea that every interaction with the GUI raises a new type that can be interacted with, to queue up behaviours on the GUI. This is essentially Future<> that are typed and the system reacts to the new type based on what you did.
It's a bit like terraform plan and apply, but applied to general purpose GUIs.
For example, you can click download file, then queue up installation and then using the application, ALL BEFORE it is installed. Because the actual computation is separate from the type information that was queued up.
Imagine using AWS Console to set up an entire infrastructure and wire everything together but not actually execute anything until the very end when you click "Run".
https://github.com/samsquire/gui-thunks
-
Programming Breakthroughs We Need
I spend everyday thinking of what my computer could be doing.
Most of the time the CPU is waiting for IO - memory, network, SSD, disk and not doing any work.
You might like my idea called GUI Thunking.
https://github.com/samsquire/gui-thunks
spotless
-
We Have Code Quality At Home: Open Source Java Code Quality Tools
Spotless is an open-source, multi-language, customizable code formatter for projects. It comes with a Maven Plugin that can be customized as needed.
- FLiPN-FLaNK Stack for March 6, 2023
-
Programming Breakthroughs We Need
Some code formatters such as Spotless (https://github.com/diffplug/spotless/tree/main/plugin-gradle...) allow you to format code only in files that have changes against some designated branch such as `master`. So, you check out your feature branch, make changes, do some commits, and run spotless. Only the files which have some changes between your workspace and the master branch will be formatted. This allows you to gradually format the project as and when files would be changed anyways.
- What supporting tools (linting, style/formatting, etc) are you using nowadays?
-
How does Apache ShardingSphere standardize and format code? We use Spotless
As a Top-Level Apache open source project, ShardingSphere has 400 contributors as of today. Since most developers do not have the same coding style, it is not easy to standardize the project’s overall code format in a GitHub open collaboration model. To solve this issue, ShardingSphere uses Spotless to unify code formatting.
-
Use semantic indenting
But please just use an code formatter like spotless. Or better yet set it as a pre commit hook. You will thank yourself later, and so will all of your coworkers.
-
Zero Config Code Formatter?
I use Spotless but it’s not as opiniotated as Prettier or Black
-
The obligatory braces and if/else questions
I use Spotless and it works quite well, but there are many other options. Also good IDEs can reformat your code.
- Java Cheatsheet to refresh the basic concepts of Java
- Is there any actively maintained Java library to format code?
What are some alternatives?
incremental-rs
Checkstyle - Checkstyle is a development tool to help programmers write Java code that adheres to a coding standard. By default it supports the Google Java Style Guide and Sun Code Conventions, but is highly configurable. It can be invoked with an ANT task and a command line program.
signal - Functional Reactive Programming implementation for Rust
google-java-format - Reformats Java source code to comply with Google Java Style.
dylint - Run Rust lints from dynamic libraries
prettier-java - Prettier Java Plugin
wasmtalk - Personal WebAssembly learning project (build a SmallTalk like environment but with WASM)
palantir-java-format - A modern, lambda-friendly, 120 character Java formatter.
c4-notation - Technical resources for using the C4 model for visualizing software architecture.
prettier - Prettier is an opinionated code formatter.
MyDef - Programming in the next paradigm -- your way
git-code-format-maven-plugin - A maven plugin that automatically deploys code formatters as pre-commit git hook