Hacker News new | ask | show | jobs
by pjmlp 2853 days ago
Python, Erlang, Lua = Logic Errors

C and C++ = Logic Errors + Memory Corruption + UB

From this point of view,

Σ Logic Errors < Σ (Logic Errors + Memory Corruption + UB)

1 comments

hmmm... In my experience, I have had much less logic errors in C++ than in Python or JS because I tend to try to encode the domain logic into the types as much as possible, so that I can piggyback on the compiler.
And how many memory corruption and UB errors did your Python and JS code had?
none, but I hardly ever encounter them in C++ too since I always develop in debug mode with sanitizers and debug std containers, so they blow up immediately. In C that's another story...
So you are part of the 1% audience crowd from CppCon, developing software alone in C++ without any third party binary libs. :)