re: My 5 Favorite Software Design Principles  VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Great article! The only thing I have to say is that I'm one of those people who says that repeating something twice isn't enough to justify abstrac...
 

I can live with that. I usually stop and abstract when I find myself repeating something the 2nd time because I don't want it to spiral out of control. I've been criticized in code reviews for abstracting too much into methods, some of them only having one or two lines. I abstract things early which may be repeated... that arguably can be another form of YAGNI lol.

But I do like the "do one thing and do it well" philosophy. 3 times is reasonable.

 

Guilty. But lots of abstractions means faster running unit tests, right?

Not sure if you're sarcastic here, but if you're not our units under test originate in very different testing philosophies.

code of conduct - report abuse