Hacker News new | ask | show | jobs
by fluorid 5187 days ago
I an a Rails dev and want to try something new for web development. Tempted to try Node/express or Go with one of the given frameworks. How do they compare?
2 comments

Honestly by far the biggest difference between the two is the difference in underlying language. Assuming you already know JavaScript the big question you should be asking yourself (depending slightly on what other languages you already know) is, "do I want to learn a completely new language, with a rather different way of doing things". The answer to this question is far more relevant than any differences or similarities in frameworks.
Other differences include: Go actually scales in multi-core systems and completely avoids callback-hell.

Also learning to is much simpler than learning JavaScript, there are fewer pitfalls and reading the spec is easy.

All network IO in go is non-blocking. Channels and goroutines avoid the nested callback mess. Go is also a better designed language than JS.

Gorilla[1] provides nice libraries for web development in Go.

[1]http://gorilla-web.appspot.com/

Sounds good—I had this feeling too about Go vs Node