News for hackers. Stuff that matters.
Re:How to do a code review by DrScientist on Friday September 06, 2019 @05:59AM (#20894356)
Defer all decisions until you have to make them.

Leave the code in a state where it's understandable.

ie don't over specify - not just simple things like interfaces, but also things like premature decomposition, that's exposed at the higher level for configurability.

While on the face of it, having everything as small interacting functions means to change any function is quite easy, changing overall behaviour might be very hard - hard to understand all the moving parts, and even worse, if the code split is wrong for future needs, very hard to change.

There are no comments on this comment yet.