Hacker News new | past | comments | ask | show | jobs | submit login
Why should I use Go over Rust, Java, or Python? (preslav.me)
14 points by sxn 11 months ago | hide | past | favorite | 11 comments



I have programmed in many languages. I'm kind of weird, I think, because I honestly think the bugs that people complain about in javascript count as features :):). Everybody hates double equals. I consider it a convenient shorthand :).

Go is a lot different. It's not fun to work with if you come from a dynamic language and need to get something done quick. It's annoying because you have to typecast from int to float and back. So frustrating.

But the place where go is amazing is memory management First - you have access to pointers. Secondly error handling is superior (few exceptions, pretty much everything just returns the error instead of crashing your program, which is much less difficult to reason about than try catch. It's also more succinct). Third - go allows you to mess with threads and passing data back and forth between them better than most languages. I CANNOT SPEAK TO RUST AS I DON'T KNOW IT. But it's way better than any of Java, python, c, c++, etc, because it's just made for this.

Hopefully this helps!


> Everybody hates double equals. I consider it a convenient shorthand :).

You mean this ”==”? Isn’t it the most fundamental thing in the majority of languages?


I think h_tbob means people hate '==' by opposition to '===', which is a stricter comparison.


Huh. I like Go but its error handling is the only area where I really do not like it at all.


Just use the language needed to get the job done, stop sticking to a single language like its a cult.


That’s, wow, that’s exactly what all this is. Cults.

People obsessed with “X but in Y”, or “only use Z language everywhere” are just cult members.


People acting like there is a language for a problem are honestly delusional. Most problems can be solved in most languages, which is why they are called general purpose languages, so you have to make a choice somehow.


Yeah, I mean more like this:

Stock to one language while it works until you feel another would be more suitable.

For example, I like Ruby, but sometimes Ruby is not suitable like for performance critical applicationa, then I’d switch to Crystal or C.


Use Go if you like programming like it’s 2005


One reason would be if you don't know how to program in the alternative languages.


You shouldn't, one of the other 3 will almost always be a better choice.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: