4 ms·
Everything is too long to read. This is mine personal problem. All java code be lie `public static void SomeReallyLongNameDescribingEverthing42 implements Some
by konart 4y ago
Everything is too long to read. This is mine personal problem.
All java code be lie `public static void SomeReallyLongNameDescribingEverthing42 implements SomeOtherEvenLongerName`
For me it's 10 times harder to follow than Go's `if err` blocks (which I actually do appreciate most of the time).
- kaba0 4y agoThat is not a good faith argument.. the only long thing in your example is a name you yourself created, absolutely nothing inherent in the language. But taking your argument in good faith, sure naming conventions are an important part of a language, but Java’s is not “obtusely long”, but “meaningful camel-case”.
- konart 4y ago>meaningful camel-case CamelCase makes it even worse. Short CamelCase is quite okay, but the longer it gets, the harder it on my eyes. But even with short naming it still like 2-3 words just to name a function. wtf.
- kaba0 4y agoIs unreadable abbreviations better? Like, basically everything other than C has full words concatenated in various ways.
- konart 4y agoAs I see it (short version): 1. snake_case - best of the best. words are separated, easy to read even if the words are not in english or latin 2. ShrtCmlCase - worse than snake. Pros: quite short, does not take whole monitor width. Cons: requires additional thinking and some sort of in-team guidelines. Very opinionated. 3. JavaCamelCase - worse than ShrtCmlCase. Pros: you can put in and describe anything in a single name of a class\variable. Cons: you spend too much attention on reading rather than analysing the program. I can understand why Java uses long names though. Its oop and enterprise nature is to "blame". This kind of naming is unavoidable when you are building a giant monolith with hundreds or thousands of classes, all kind of inheritance nuances and trying to have all names actually mean and describe something.
- kaba0 4y agoI frankly don’t see a significant difference between 1 and 3. I do prefer snake case, but it is such an insignificant change that probably the IDE color scheme is an order of magnitude more meaningful.