Re:Maintain consistent styles for developers working across ...
by theawless on Saturday April 22, 2023 @02:25PM
(#35669514)
Java for sure. I don't think Google style is good enough to be called the default.
[ Parent
| on HN ]
Re:Maintain consistent styles for developers working across ...
by The_Colonel on Saturday April 22, 2023 @02:47PM
(#35669712)
Somehow it doesn't seem to be such a big problem in Java land. I think there's some common baseline shared by basically everyone - I don't remember ever seeing Java classes which were not indented with 4 spaces for example.
Re:Maintain consistent styles for developers working across ...
by marginalia_nu on Saturday April 22, 2023 @03:07PM
(#35669926)
Yeah, this dates back pretty far: https://www.oracle.com/technetwork/java/codeconventions-1500...
While minor variations exist, virtually all Java code follows these conventions pretty closely.
Although I'll note it seems to get a bit more chaotic with regards to indenting newer constructions like streams and lambdas.
Re:Maintain consistent styles for developers working across ...
by SOLAR_FIELDS on Saturday April 22, 2023 @09:13PM
(#35672414)
People like to pooh pooh Java in the circles I hang out in, but Iām always quick to point out stuff like this, things that are just basically mostly solved in Java land and no one really wastes time on anymore because some pretty good decisions were made 20-25 years ago. How to handle a lot of aspects of dependencies is another classic example.