4 ms·
Best comment: "MICHAEL IS A LAZY BASTARD AND DOES NOT WANT TO REFACTOR" [1] [1] https://github.com/Continuities/adarkroom/blob/master/script/engine.js#L3 https
by potomak 13y ago
Best comment: "MICHAEL IS A LAZY BASTARD AND DOES NOT WANT TO REFACTOR" [1]
[1] https://github.com/Continuities/adarkroom/blob/master/script/engine.js#L3 https://github.com/Continuities/adarkroom/blob/master/script...
- S4M 13y agoMaybe the lazy bastard open sourced his code so someone else would refactor it for him.
- reeses 13y agoI've always been a fan of Shame-Driven Development.
- mkramlich 13y agoif it's consistent with TDD and RDD it means you start with shame, then go write something to feel ashamed about?
- Continuities 13y agoSDD: Write something bad => Surround oneself with reminders that it is bad => Fix it* *Or, more likely, drink to forget.
- babuskov 13y agoThe thing that needs to be refactored is called the Observer Pattern, and it's one of GoF patterns that most professional programmers should at least know about. By "know", I mean the mere fact that it exists. Implementation details depend on the programming language and can always be looked up.
- Continuities 13y agoYup, I'm familiar with it. I just didn't think to use it until it was much too late...