News for hackers. Stuff that matters.
Re:The Modern Java Platform – 2021 Edition by a_imho on Wednesday March 17, 2021 @06:59AM (#26489281)
I simply don't understand how people favor a stringly typed custom DSL in a reasonably typed language like java. Why is it better to write Spring annotations instead of actual java code? There is literally no upside.
Re:The Modern Java Platform – 2021 Edition by lmm on Wednesday March 17, 2021 @10:39PM (#26499220)
Annotations are fairly typesafe. The parts that aren't safe are parts that Java offers no way to do at compile time (e.g. "are all the arguments to this constructor of types that are in this set of existing services?")
Re:The Modern Java Platform – 2021 Edition by dmux on Wednesday March 17, 2021 @09:48AM (#26491178)
One possibility is that the code is just Java and the end of the day. You could run it independent of Spring processing the annotations.