

I’m not seeing this editor’s note (at least on mobile). Where is it ?
Edit 2: never mind, found it
I’m not seeing this editor’s note (at least on mobile). Where is it ?
Edit 2: never mind, found it
How reliable is this website ? I see clickbaity headlines from it all the time around here and the Wikipedia page is mostly empty
Well it’s in the name, they are code smells, not hard rules.
Regarding the specific example you cited, I think that with practice it becomes gradually more natural to write reusable functions and methods on the first iteration, removing the need for later DRY-related refactorings.
PS : I love how your quote for the Rule of Three is getting syntax highlighted xD (You can use markdown quotes by starting quoted lines with >
)
Found it thanks
Why did they burry what’s arguably the most important piece of information at the very end though ?