Comment

Comment by lmilcin

If you write a small piece of code and can't tell if it is going to work or not you don't really understand what it does.

We are not talking using external dependencies or frameworks. I am talking simple code that you just wrote in entirety, maybe couple of loops and conditionals.

If you can't predict what that small piece of code does, exactly, you are thoroughly unable to write reliable code, by definition.

Reliable code == code that does exactly what you intend it to do, nothing less, nothing more.

If you can't predict what your code does you are writing buggy code. Experimentation can uncover some of the bugs, but if you start with buggy code the experimentation will never remove all bugs -- only the ones that are easy to detect.

parent lmilcin 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton