amber-docs
magic-bean
amber-docs | magic-bean | |
---|---|---|
58 | 15 | |
142 | 70 | |
0.7% | - | |
5.1 | 3.7 | |
11 days ago | 6 days ago | |
HTML | Java | |
GNU General Public License v3.0 only | GNU General Public License v3.0 or later |
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
magic-bean
-
Searching a specific annotation processing library
I like to use Magic Bean for this kind of stuff if I can't use records for some reason.
-
Java is your preferred language, but if you could press a button...
I recently stumbled upon https://github.com/bowbahdoe/magic-bean . This would be an example of solving developer needs - compatibly with the jdk way but currently ugly. Maybe we can make it nicer in the future somehow?
-
Should you still be using Lombok?
I think Hibernate / cases where real getters and setters are desired are the remaining usecase. The code generator I published however long ago handles specifically that boilerplate, but its Java 17+ only. https://github.com/bowbahdoe/magic-bean
- Any suggestions for good open source Java codebases to study(With below criteria)?
- has anyone written custom annotations using Lombok ?
-
Akka move from Apache v2 license to BSL
For those anemic models, when they are called for (JPA) - https://github.com/bowbahdoe/magic-bean
- What's your top Java pet peeve?
-
[ANN] RecordBuilder v33 Released
And if you want non-magic getters and setters there is this: https://github.com/bowbahdoe/magic-bean
- Do you think Java will some day finally remove the need of Lombok's @Data annotation?
- Magic Beans - automatic get/set, equals, hashCode, toString without any compiler hacks
What are some alternatives?
adoptium.net - Development of the website has moved to https://github.com/adoptium/website-v2
record-builder - Record builder generator for Java records
jmolecules - Libraries to help developers express architectural abstractions in Java code
MFL - A Java library for reading and writing MATLAB's MAT File format
leftright-map-java - A (hopefully) Fast, (hopefully) Thread safe map inspired by evmap
prettier-java - Prettier Java Plugin
manifold - Manifold is a Java compiler plugin, its features include Metaprogramming, Properties, Extension Methods, Operator Overloading, Templates, a Preprocessor, and more.
FizzBuzz Enterprise Edition - FizzBuzz Enterprise Edition is a no-nonsense implementation of FizzBuzz made by serious businessmen for serious business purposes.
rosie-microhttp - Rosie adapter for microhttp
vim-fibo-indent - Fibonacci Indentation for Vim.
gestalt - A Java configuration library that allows you to build your configurations from multiple sources, merges them and convert them into an easy-to-use typesafe configuration class. A simple but powerful interface allows you to navigate to a path within your configurations and retrieve a configuration object, list, or a primitive value.