Hacker GitHub

← All repos

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

Mentions per year 26 mentions · busiest year 2015 (7)
20082026
  1. 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
  2. …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.…
  3. …[3] https://wiki.call-cc.org/man/5/Module%20(chicken%20read-synt... [4] https://github.com/google/auto/blob/master/value/userguide/i...
  4. …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)
  5. ▲ 2
    AutoOneOf: Java Generated Tagged Unions
    story by brixie · 2021-01-16 · 0 comments
  6. 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
  7. …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
  8. …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
  9. 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
  10. 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.
  11. …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
  12. …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
  13. …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
  14. ▲ 2
    Google/auto: collection of source code generators for Java
    story by based2 · 2016-10-02 · 1 comment
  15. …fair challenges getting this right and even their macro system is not completely hygenic IIRC. [1]: https://github.com/google/auto
  16. 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
  17. …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
  18. …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
  19. …), 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.
  20. …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
  21. …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…
  22. 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
  23. 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
  24. …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
  25. 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
  26. Not released yet, but source available on Github: https://github.com/google/auto