Hacker News new | ask | show | jobs
by norir 1114 days ago
> My goal with the early sub-projects isn't to build a finished sub-component, it is to build a good enough sub-component so I can move on to the next thing on the path to a demo.

The one caveat I'd add to this is to make sure to panic (throw an exception or assert false) at all unhandled edge cases in the good enough subcomponent. It's often easy to write conditionals for the happy path without a corresponding else for the unhappy path. You don't need to implement all branches initially, but you will likely be glad you added those panics, which have the bonus side effect of showing you exactly where the unhandled edge cases are, as you expand the sub-component to handle those edge cases.

1 comments

NotImplementedException("reason") is my greatest ally when adventuring into the dark forest. I will sometimes build the entire prototype as a big NIE experience and then decide on which path(s) to implement.

Getting deep into details/code when you aren't quite sure of your surroundings can be extremely dangerous for the health of a fledgling project.