5 ms·
this just falls out of writing code cleanly and properly. if you are doing something so complicated with inputs and outputs thatit becomes unclear what is happe
by jheriko 11y ago
this just falls out of writing code cleanly and properly. if you are doing something so complicated with inputs and outputs thatit becomes unclear what is happening and where things need to go in and go out then you just haven't used enough functions and classes to split up the responsibilities.
if you write clean, data driven code i can't imagine this ever being a problem you need to solve.
- jerf 11y ago"If you use the solution given in the article, I can't imagine why you'd ever need the solution given in the article"?
- Dewie3 11y agoThere is always that one guy who gets offended over how obvious something is to him.
- AnimalMuppet 11y agoGiven the number of comments that I've seen from jerf, and the value of what he usually has to say, I don't think he's being "that one guy". I think he's commenting on what he perceives to be a genuine inconsistency in the article.
- Dewie3 11y agoMy comment was actually referring to jheriko. :-]
- AnimalMuppet 11y agoAh, I see. My error.
- jheriko 11y agoits more that its not about writing code to be testable. its about writing code well to start with for n reasons.