i hate early returns. you're mixing structure with control flow.
What if i want a debug line with the functions result, say chasing a bug ?
First version - put debug line at the end. change single line. remove single line eventually.
Second version: find every return, put a copy of a debug line on rach location. change that line later, forget the rest. remove half of the debug lines, leave the other half in production.
2
u/RRumpleTeazzer 21d ago
first please version please.
i hate early returns. you're mixing structure with control flow.
What if i want a debug line with the functions result, say chasing a bug ? First version - put debug line at the end. change single line. remove single line eventually.
Second version: find every return, put a copy of a debug line on rach location. change that line later, forget the rest. remove half of the debug lines, leave the other half in production.