Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Good Software Development Habits. Parent comment
You really don't want to have a function that branches a lot inside. It's very difficult to test.
When you think of adding a flag, run in your head 2^n, this will give you the least number of tests needed. Do you really want to write all of them?
There are no comments on this comment yet.
You really don't want to have a function that branches a lot inside. It's very difficult to test.
When you think of adding a flag, run in your head 2^n, this will give you the least number of tests needed. Do you really want to write all of them?