News for hackers. Stuff that matters.
Re:Guidelines for writing readable code by de_watcher on Friday September 14, 2018 @09:23AM (#17986994)
I just soak everything in asserts.

That way there is no need to scroll up for preconditions, be it a nested tree or some returns at the start.

And when you move a small piece of code, you're told exactly what you should be thinking about, you need to decide what to do with that assert that represents an assumption.

There are no comments on this comment yet.