News for hackers. Stuff that matters.
Re:How to Build Good Software by roland35 on Monday August 19, 2019 @08:40AM (#20737180)
This is a good example of a general rule of thumb I learned, if you need to do something once or twice do it by hand, but if you do something three or more times make it a function! Looks like Dota 2 updated their spells a few more than 3 times ;)
Re:How to Build Good Software by bcrosby95 on Monday August 19, 2019 @12:06PM (#20738962)
I use this rule for introducing abstraction: don't do it unless you have at least 3 different use cases you're abstracting, and the test suite doesn't count.