Re:The most copied StackOverflow snippet of all time is flaw...
by phist_mcgee on Wednesday June 16, 2021 @06:44PM
(#27534321)
You should almost _always_ focus on code readability and simplicity over inventiveness and cleverness.
Very few people I have encountered have complained about code being 'too simple' or 'too readable', but the opposite happens on a near daily/weekly basis.
Write comments, use a for loop, avoid global state, keep your nesting limited to 2-3 levels, be kind to your junior devs.
Very few people I have encountered have complained about code being 'too simple' or 'too readable', but the opposite happens on a near daily/weekly basis.
Write comments, use a for loop, avoid global state, keep your nesting limited to 2-3 levels, be kind to your junior devs.