logoalt Hacker News

kijin • today at 4:12 AM • 0 replies • view on HN

Yes, writing it twice is the perfect way to figure out the right level of abstraction for your project, and how extensible your components need to be. Try to do it with only one instance in front of you, and you end up with all sorts of unnecessary abstractions "just in case".

If you find yourself writing it a third time, on the other hand, you should seriously start consolidating.