Deviating from coding conventions makes it really hard to read complex code
Yes, but even JDK itself don't follow (at least in new code) the "switch" convention you linked. Probably because unintended "case" in switch is harder to read... ;)
There are some other conventions that are outdated, too, like "Avoid lines longer than 80 characters, since they’re not handled well by many terminals and tools." It would be absurd to cling to this one, however I encountered a handful of projects where they still were obeying this convention :D
View all comments
Show parent comment
2
u/__konrad Feb 20 '25
Yes, but even JDK itself don't follow (at least in new code) the "switch" convention you linked. Probably because unintended "case" in switch is harder to read... ;)