google/auto
View on GitHub ↗ ★ 10,560 Java
A collection of source code generators for Java.
26 mentions on Hacker News by 25 people: 2 stories, 24 comments · first 2013-11-15 · latest 2024-11-10
20082026
-
You just invented Java AutoValue and Kotlin Data Classes. https://github.com/google/auto/blob/main/value/userguide/ind...
comment by lupire · 2024-11-10 · in JVM Anatomy Quarks -
…do crazy things just to get POJOs including Immutables ( http://immutables.github.io ), AutoValue ( https://github.com/google/auto/ ), Lombok ( https://projectlombok.org ), Joda Beans ( https://www.joda.org/joda-beans/ ), and maybe more.…
comment by mdasen · 2022-08-09 · in Don’t call it a comeback: Java is still champ -
…[3] https://wiki.call-cc.org/man/5/Module%20(chicken%20read-synt... [4] https://github.com/google/auto/blob/master/value/userguide/i...
comment by skissane · 2022-02-15 · in TclTutor 3: Computer aided instruction package for learning the Tcl language -
…contract, which ensures it will not unintentionally be used for e.g. data structure ordering. [1] https://github.com/google/auto/blob/master/value/userguide/i... [2] https://projectlombok.org/features/EqualsAndHashCode [3]…
comment by alexhutcheson · 2021-04-30 · in How to Write an Equality Method in Java (2009) -
▲ 2
AutoOneOf: Java Generated Tagged Unionsstory by brixie · 2021-01-16 · 0 comments
-
I'm curious if this will make AutoValue obsolete: https://github.com/google/auto/blob/master/value/userguide/i...
comment by frankosaurus · 2020-01-16 · in Records Come to Java -
…for classes that only have one implementation, and don't create gratuitous indirection. [1] https://github.com/google/auto/tree/master/value
comment by charleslmunger · 2019-12-04 · in Generating a Java program with 90% less code -
…community. Which results into fragmentation; just as example https://immutables.github.io/ and https://github.com/google/auto are two libraries providing features like factories and immutable value classes. Then you get articles like…
comment by maxpert · 2019-11-17 · in Lombok Saved My Ass -
Is a value type different from a value class? https://github.com/google/auto/blob/master/value/userguide/i...
comment by gliop · 2019-05-10 · in IT Runs on Java 8 -
Or AutoValue ( https://github.com/google/auto ) for something a bit less involved - Eff. Java 3 recommends it as an alternative to writing equals/hashcode et. all by hand.
comment by sgift · 2018-03-22 · in Avoid getters and setters whenever possible -
…with Builders is nice: Animal dog = Animal.builder() .setName("dog") .setNumberOfLegs(4) .build(); https://github.com/google/auto/blob/master/value/userguide/b...
comment by tantalor · 2017-11-02 · in Data Classes for Java -
…Lombok. It does not have as many features, but it makes creating model classes much easier. [1] https://github.com/google/auto/tree/master/value
comment by donretag · 2017-02-20 · in Java libraries you can't miss in 2017 -
…the great immutables library: https://immutables.github.io/immutable.html or Google's autoValue: https://github.com/google/auto/tree/master/value
comment by adimitrov · 2017-01-25 · in Java 9 is scheduled to launch in July -
▲ 2
Google/auto: collection of source code generators for Javastory by based2 · 2016-10-02 · 1 comment
-
…fair challenges getting this right and even their macro system is not completely hygenic IIRC. [1]: https://github.com/google/auto
comment by agentgt · 2016-08-01 · in Guile-lips: Scheme as a generic macro language -
Google's auto library, auto/value in particular, is worth a look: https://github.com/google/auto/tree/master/value
comment by cgs1019 · 2015-12-08 · in Why Java? Tales from a Python Convert -
…look at for Java would be auto/value (Immutable value-type code generation for Java 1.6+ by Google) https://github.com/google/auto/tree/master/value Not the same as what you reference in the other languages, but useful if you find yourself…
comment by encinarus · 2015-12-08 · in Why Java? Tales from a Python Convert -
…are awful. For objects which are used solely for transfering state, check out Google's AutoValue ( https://github.com/google/auto/tree/master/value ) However if you do see a class that is 6 screens of just getters and setters then you know…
comment by RyanZAG · 2015-11-16 · in Modern Java – A Guide to Java 8 -
…), but there are others which have similar goals (e.g. http://immutables.github.io/ , https://github.com/google/auto ). That said, I agree that java _really_ needs something like this built in.
comment by jay-anderson · 2015-09-20 · in Better Java – Resources for Writing Modern Java -
…only reason those static methods exist is because pre-Java 7 didn't have the diamond operator. [1] https://github.com/google/auto/tree/master/value
comment by kilink · 2015-09-19 · in Better Java – Resources for Writing Modern Java -
…AutoValue library and the Immutables library show examples of getters that drop the "get" prefix: https://github.com/google/auto/tree/master/value http://immutables.github.io/ One argument against the prefix is that immutable value types…
comment by alangpierce · 2015-08-08 · in Beyond PEP 8 – Best practices for beautiful intelligible code [video] -
There's a very similar library from Google https://github.com/google/auto/blob/master/value/README.md The one thing that tripped me up when I tried to use it is that you can't add other library annotations. For example, I couldn't change…
comment by guelo · 2015-07-12 · in Immutable annotations for Java -
I did, actually. Value types are nice but annotation processing can do pretty well: https://github.com/google/auto/tree/master/value I'm honestly not seeing as big as lambdas (or generics in Java 5). If you think they really are that big,…
comment by skybrian · 2014-09-24 · in Official Go support -
…a great idea, actually. The Guava team recently open-sourced AutoValue as a more modern approach: https://github.com/google/auto/tree/master/value
comment by skybrian · 2014-09-23 · in Official Go support -
I'd use immutable value classes with AutoValue: https://github.com/google/auto/tree/master/value . It's developed by the googlers behind the awesome Guava library.
comment by eneveu · 2014-08-19 · in Java 9 features announced -
Not released yet, but source available on Github: https://github.com/google/auto
comment by chillax · 2013-11-15 · in AutoValue: Immutable value-type code generation for Java 1.6+