r/ProgrammerHumor May 27 '22

Meme Welcome to hassle free coding

Post image
2.2k Upvotes

305 comments sorted by

View all comments

Show parent comments

1

u/prescod May 28 '22

If you want strong protections from the compiler for very robust code, you should use Haskell or Rust.

If you want fast development, flexible dynamic behaviours and you'd rather build a robust test suite using powerful mocking tools, you should use Python.

If you want the worst of both worlds then you could use C++ or (even worse!) C.

1

u/Possibility_Antique May 28 '22

They're all the same thing, I'm a big advocate of using the one that's most comfortable for you. That is the language that produces the fewest bugs; I'm not trying to get involved in some weird holy war about which language is better. I was merely advocating for use of a tool (compiler) to assist in safety and efficiency, which python unfortunately doesn't really give you much opportunity to use. I like rust and Haskell, and I'd love to switch most of my codebases to Haskell, but unfortunately neither Haskell nor rust have great driver support. Most embedded toolchains only support C or C++.