News for hackers. Stuff that matters.
Re:Go 1.19 Beta 1 is released by konart on Saturday June 11, 2022 @04:59AM (#31703019)
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).

Re:Go 1.19 Beta 1 is released by kaba0 on Saturday June 11, 2022 @06:56AM (#31703551)
That 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”.
Re:Go 1.19 Beta 1 is released by konart on Saturday June 11, 2022 @08:35AM (#31704004)
>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.

Re:Go 1.19 Beta 1 is released by kaba0 on Saturday June 11, 2022 @09:14AM (#31704215)
Is unreadable abbreviations better? Like, basically everything other than C has full words concatenated in various ways.
Re:Go 1.19 Beta 1 is released by konart on Saturday June 11, 2022 @11:06AM (#31704977)
As 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.

Re:Go 1.19 Beta 1 is released by kaba0 on Saturday June 11, 2022 @11:28AM (#31705206)
I 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.
Re:Go 1.19 Beta 1 is released by konart on Sunday June 12, 2022 @01:43AM (#31711777)
>it is such an insignificant change

As I said earlier - all are very subjective topics.

Re:Go 1.19 Beta 1 is released by kaba0 on Saturday June 11, 2022 @02:01PM (#31706568)
s/meaningful/significant