15 points · by betadreamer · 12y ago · 12 comments
It seems like the more I google there are more people who supports Go more than Node for mainly these reasons: simplicity and no callback mess.
Just to let you know I read these links: http://www.quora.com/Node-js/Why-did-Koding-switch-from-Node-js-to-Go http://jordanorelli.com/post/31533769172/why-i-went-from-python-to-go-and-not-node-js
I understand that every language have their own usage so here are my condition. 1) I'm willing to use async to solve the callback nightmare in node. 2) Frontend is iOS so no advantage of having a same language in JS.
What's your 2 cents?
Both have great optimizing compilers, vibrant friendly communities, and can build static linked binaries that are easy to deploy in whatever your target environment is.
If you want something you can get comfy hacking in next week, I'd say go with Go, but if you are looking for "what can I build amazing things with a year from now after getting comfy with", I'd push for Haskell.
NB: I'm a very active member of the Haskell community at this point, so I'm a bit biased. I will be the first to say Haskell and its tools aren't perfect, but I and others work hard every week to make them ever more awesomer. (I also spend a lot of time helping get people started contributing to core haskell tools). Also I've a wee business i'm building using Haskell as my stack :)
Unfortunately computer language quality seems slightly inversely correlated with the vitality of its ecosystem.
i.e. serve static assets with CSS, properly organize and modularize your components (especially your own that you wrote just for the project!) and you'll be fine.
I do love Go but I always go back to Node just because of the rapid development.
Initially it was a steep learning curve and coming from a "synchronous" way of writing code, I managed to get myself in all sorts of mess. But with time as I have become more comfortable, discovered new patterns (async, promises) I can say I am liking node.js more and more.
Also, the ability to code in a single language for your entire stack (Angular, node, mongo) is not to be overlooked for productivity gains.
So far I haven't really gotten the change to try Go but if your fears are just regarding the async patterns in node.js, I can assure that its NOT that bad and in return it makes you a better programmer.
Personally, I would evaluate what frameworks, etc you need for a new project and then choose the language that better supports the project. Keeping in mind, that Google don't use Go for all their systems, only where it provides advantages over the alternatives.
If you want a mature answer, read Sandro Pasquali reply.