3 ms·
I think this is a great post, it covers a topic succinctly and agree with its conclusion. On the topic of actually refactoring code I think we should consider
by Traster 7y ago
I think this is a great post, it covers a topic succinctly and agree with its conclusion.
On the topic of actually refactoring code I think we should consider the code as a variable - that is to say, sometimes these variables just happen to equal each other in which case they are two separate things. Sometimes two variables aren't just equal, but they're the same. That's when to factor out the code. Otherwise the second these two variables are no longer equal you end up in trouble. The secret is divining when something is for all intents and purposes the same as something else in this specific situation.