r/programming • • Dec 15 '18

The Best Programming Advice I Ever Got (2012)

http://russolsen.com/articles/2012/08/09/the-best-programming-advice-i-ever-got.html
1.7k Upvotes

313 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Dec 15 '18

[deleted]

9

u/[deleted] Dec 15 '18

There is an interesting idea that you don't write an abstraction until the 3rd time you have to implement something, because before that you don't know how the abstraction needs to structured.

1

u/[deleted] Dec 16 '18

It's not universally silly, but it is overapplied. If two blocks of code look similar enough to be extracted, but they belong to fundamentally unrelated systems, then they should not be extracted as that will cause the systems to be inappropriately coupled. Decoupling the systems later will be more expensive than the repeated code.