3 ms·
My approximate guideline is "is this copy and that copy of the code the same because they HAVE to be, or are they accidentally the same?" If they absolutely ha
by randomswede 6y ago
My approximate guideline is "is this copy and that copy of the code the same because they HAVE to be, or are they accidentally the same?"
If they absolutely have to be the same, wrap'em in a function. If they just happen to be the same, leave them as separate copies. If I don't know, make an educated guess.