←back to thread

131 points apta | 5 comments | | HN request time: 0.405s | source
Show context
intortus ◴[] No.9266418[source]
Just because you're intelligent doesn't mean you should spend all that intelligence trying to figure out other people's messes. Simplicity and explicitness are paramount when collaborating.
replies(1): >>9266444 #
AlexandrB ◴[] No.9266444[source]
> Simplicity and explicitness are paramount when collaborating.

So is succinctness (most people can't speed read code). The examples he gives make Go look anything but succinct.

replies(2): >>9266486 #>>9266557 #
1. intortus ◴[] No.9266557[source]
At a certain point succinctness does more harm than good. Go captures nearly all of the sense of python's early values (https://www.python.org/dev/peps/pep-0020/), without requiring all that much more in the way of boilerplate. So you have to if-check an error value here and there, no big deal. You should be handling errors anyway.

If Haskell's succinctness level is 1, then I would rate python's at 2, go's at 4, and java's at 20.

replies(2): >>9266593 #>>9266767 #
2. dragonwriter ◴[] No.9266593[source]
Presumably, that rating scales has higher numbers meaning less succinctness? Because otherwise the order of the numbers (much less there relative values) doesn't make any sense, even though that's kind of the opposite of what you'd expect of a "succinctness level".
replies(1): >>9266614 #
3. intortus ◴[] No.9266614[source]
It's a linear scaling factor for how many lines of code I tend to take to express the same medium-sized program across these languages.
4. sheepmullet ◴[] No.9266767[source]
Nonsense. On moderate-large codebases Go is not 5x more expressive/succinct than Java. Maybe 1.5x if you are lucky.
replies(1): >>9269512 #
5. MetaCosm ◴[] No.9269512[source]
Please point me to the large codebase your ported from Java to Go -- if you don't have actual data, just two people making up idiotic numbers let me get involved.

Go is 185175% better than Java and 8165% better than Haskell -- or making up numbers just makes us all look like goddamn idiots.