News for hackers. Stuff that matters.
Re:Ditching Go for Node.js by blowski on Thursday November 23, 2017 @01:35PM (#15766964)
It’s interesting how divisive Go’s type system is. For some people it’s the main reason they use it, for others it’s a fatal handicap.

FWIW I predominantly use PHP, so I have no dog in this fight.

Re:Ditching Go for Node.js by iends on Thursday November 23, 2017 @01:49PM (#15767074)
I think a lot of the differences between how people view Go is based on where they are previously coming from. The C/C++ folks are used to worse or more complex type systems so they view Go as fresh air. The “better python” people love the easy to use type system and the performance improvements. But those “better python” people are used to things like package managers which the C/C++ have done just fine without. The Java people don’t understand why they should give up an expressive type system for faster compile times. (Might see this from people who love C++ templates too.)

At least that’s some generalizations I’ve observed, YMMV.

Re:Ditching Go for Node.js by erik_seaberg on Thursday November 23, 2017 @03:36PM (#15767640)
I think some programmers want to carefully select a type specialized data structure, and others just bury the problem under a pile of array iteration.

And to hell with compile time. If the build takes 10x as long but we run 5% fewer prod servers, that pays for itself in minutes. And if type and nullability checking prevents one prod outage, that saves more time and stress than every build I've waited for this year.

Re:Ditching Go for Node.js by iends on Thursday November 23, 2017 @03:58PM (#15767743)
I often don’t understand the Go teams obsession with compile times, but I’ve never worked on large Java or C++ code based that take forever to compile. I mostly want them to optimize for runtime performance even at the expense of compile time, but this does not seem popular with the core team.
Re:Ditching Go for Node.js by owaislone on Thursday November 23, 2017 @09:16PM (#15769047)
You're right. You need to have worked on Google scale C++ programs to understand and acquire the obsession.
Re:Ditching Go for Node.js by w4tson on Thursday November 23, 2017 @02:03PM (#15767133)
What a great comment. I know it’s a bit of a generalization but it’s helped me understand why some might get fanatical.
Re:Ditching Go for Node.js by rubber_duck on Thursday November 23, 2017 @05:30PM (#15768243)
Java - expressive type system ? The bar must have been set really low by Go...
Re:Ditching Go for Node.js by 323454 on Thursday November 23, 2017 @06:51PM (#15768633)
Java has generics, Go doesn't.
Re:Ditching Go for Node.js by stmw on Thursday November 23, 2017 @02:24PM (#15767257)
Good points - where one comes from really makes a difference.