Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #39931
| Newsgroups | comp.lang.java.programmer |
|---|---|
| Date | 2023-03-13 08:25 -0700 |
| References | <906f5a76-929d-46cb-b5e0-fcc8e4ad4e0en@googlegroups.com> <tuanur$125a7$1@dont-email.me> <c9a3f6c1-be79-4d17-898a-fb1b3c5eb77dn@googlegroups.com> <tundha$3q8at$1@dont-email.me> |
| Message-ID | <a61b3ea7-ebff-4bdd-9286-8d9487720ffdn@googlegroups.com> (permalink) |
| Subject | Re: Java record |
| From | "e.d.pro...@gmail.com" <e.d.programmer@gmail.com> |
> The Lombok thing was invented to autogenerate the > trivial code. > > Scala and Kotlin has case class and data class > respectively to do it simpler. > > Java after many years got the record thing. > > If you can live with the immutable aspect > (which is sort of in fashion today), then > it would make sense to use them for all > sorts of data classes. > > Arne lombok was a huge help in the giant legacy project. We took a project with no DTOs, just populating every field on the page as you go using JSP, and changed it to angular with one DTO for the page. Initially this means instantiate DTO, then call setFirstValue(), setSecondValue(), etc. Immutable objects would make more sense if you break the DTOs up into logical bits, maybe map a convenience method to instantiate from a RecordSet on the back end, while of course using gson to instantiate from front end data.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Java record "e.d.pro...@gmail.com" <e.d.programmer@gmail.com> - 2023-03-01 11:18 -0800
Re: Java record Arne Vajhøj <arne@vajhoej.dk> - 2023-03-01 20:23 -0500
Re: Java record "e.d.pro...@gmail.com" <e.d.programmer@gmail.com> - 2023-03-02 04:01 -0800
Re: Java record Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2023-03-08 20:33 +0100
Re: Java record "e.d.pro...@gmail.com" <e.d.programmer@gmail.com> - 2023-03-08 12:14 -0800
Re: Java record Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2023-03-08 21:44 +0100
Re: Java record "e.d.pro...@gmail.com" <e.d.programmer@gmail.com> - 2023-03-08 12:54 -0800
Re: Java record Arne Vajhøj <arne@vajhoej.dk> - 2023-03-13 10:55 -0400
Re: Java record "e.d.pro...@gmail.com" <e.d.programmer@gmail.com> - 2023-03-13 08:25 -0700
Re: Java record Jason H <DarthPiriteze@deathstar.gal> - 2023-03-21 18:02 +0000
Re: Java record "e.d.pro...@gmail.com" <e.d.programmer@gmail.com> - 2023-03-22 04:04 -0700
csiph-web