Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: