Hacker News new | ask | show | jobs
by elimisteve 5013 days ago
I write Python and Go code every week, and have since I started using Go almost 2 years ago.

I appreciate Go because I'm working hard to become an engineer who builds robust software rather than a sloppy hacker that throws scripts together. One significant difference between the former and the latter is carefully handling errors versus not.

Python's error handling seems much more succinct only because most of us don't both handling errors at all! Every other line throws many exceptions, but we ignore this for convenience. (Those ugly "except ___:" statements ruin our oh-so-cool one-liners!)

Bottom line:

When I feel like having fun making something simple and getting it done _fast_, I use Python.

When I feel like building something that _needs_ to work -- especially anything that does more than one thing at a time, or should use all cores efficiently -- I use Go. And yes, that means taking error handling seriously.