18 ms·
Why should I use Go over Rust, Java, or Python?
- apapapa 3y agoOne reason would be if you don't know how to program in the alternative languages.
- h_tbob 3y agoI 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!
- Alifatisk 3y ago> 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?
- az09mugen 3y agoI think h_tbob means people hate '==' by opposition to '===', which is a stricter comparison.
- deleted 3y ago[deleted]
- peterashford 3y agoHuh. I like Go but its error handling is the only area where I really do not like it at all.
- Alifatisk 3y agoJust use the language needed to get the job done, stop sticking to a single language like its a cult.
- isacult22 3y agoThat’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.
- Yujf 3y agoPeople 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.
- Alifatisk 3y agoYeah, 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.
- pg_1234 3y agoYou shouldn't, one of the other 3 will almost always be a better choice.
- coin 3y agoUse Go if you like programming like it’s 2005