amber-docs
prettier-java
amber-docs | prettier-java | |
---|---|---|
58 | 7 | |
144 | 1,095 | |
0.0% | 1.3% | |
4.6 | 7.8 | |
about 2 months ago | 9 days ago | |
HTML | Java | |
GNU General Public License v3.0 only | 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.
amber-docs
-
Record Patterns point to Java language designers losing their compass
Record patterns are one step on the path to general pattern matching utility. The bigger building block is general deconstructors. I recommend reading Functional Transformation of Immutable Objects by Brian Goetz. The idea of "withers" shown there requires deconstructors:
- Which Kotlin features do you think Java still needs to steal, if any?
-
JDK 20 G1/Parallel/Serial GC Changes
https://github.com/openjdk/amber-docs/blob/master/eg-drafts/...
This is the vague plan.
-
Deconstruction patterns [Brian Goetz]
You may be joking but...
-
Java Records as Embeddables with Hibernate 6
Here is the much more detailed version: https://github.com/openjdk/amber-docs/blob/master/eg-drafts/reconstruction-records-and-classes.md
-
Where does the dislike/hate for Java come from?
This kind of pattern matching is discussed in the design notes: https://github.com/openjdk/amber-docs/blob/master/site/design-notes/patterns/pattern-match-object-model.md
-
Making Lenses Practical in Java
True, but that only pushes the question of value down the line.
I'm curious about lenses because Java did have a serious problem that required a solution: working with "simple" data correctly was difficult. The chosen solution was ADTs, so we did buy into that. But the approach being explored for transforming records (https://github.com/openjdk/amber-docs/blob/master/eg-drafts/...) only works one level at a time rather than for an entire path. So I wonder how valuable it would be to have a solution for paths. If the answer is that it's mostly valuable for an approach we haven't bought into yet, then we might not need to consider it just yet.
-
How I got involved in the Rust community
Just a heads up, something like that spread operator is actually coming sooner or later to java: https://github.com/openjdk/amber-docs/blob/master/eg-drafts/...
Pattern matching (for records) is already a preview feature.
- Should you still be using Lombok?
- Cascade operator in Java
prettier-java
-
How to beautify java code reliably
I ended up, from a friend suggestion, looking into a java prettier plugin. Prettier allowed for an easy integration with most Web IDE, can be configured to format on save for vscode and is trivial to run in CI.
-
Prettier extension doesn't work with java
Prettier does not natively support Java, they have a community plugin for Java https://github.com/jhipster/prettier-java (link is from prettier.io) are you using this? I don't use prettier with Java though, Im not sure it works with the VS Code extension out of the box. prettier by itself is a separate thing from the VS Code extension
-
Let's do a war
I didn’t realize prettier was used for other languages. I’ve been kinda frustrated with our java formatter at work, so I took a look at the prettier java formatter: https://github.com/jhipster/prettier-java
-
Zero Config Code Formatter?
Prettier has support for Java. https://github.com/jhipster/prettier-java
- Wednesday Links - Edition 2021-09-22
-
JHipster 7: What’s under the hood?
Did you know Prettier for Java is a JHipster project?
- Which code style plugin do you use in daily work?
What are some alternatives?
adoptium.net - Development of the website has moved to https://github.com/adoptium/website-v2
spotless - Keep your code spotless
jmolecules - Libraries to help developers express architectural abstractions in Java code
google-java-format - Reformats Java source code to comply with Google Java Style.
vim-fibo-indent - Fibonacci Indentation for Vim.
palantir-java-format - A modern, lambda-friendly, 120 character Java formatter.
record-builder - Record builder generator for Java records
pretty-quick - ⚡ Get Pretty Quick
FizzBuzz Enterprise Edition - FizzBuzz Enterprise Edition is a no-nonsense implementation of FizzBuzz made by serious businessmen for serious business purposes.
fmt-maven-plugin - Opinionated Maven Plugin that formats your Java code.
adoptium
spring-javaformat