News for hackers. Stuff that matters.
Re:“A Dark Room” game open-sourced by potomak on Wednesday July 03, 2013 @12:07PM (#5985457)
Best comment: "MICHAEL IS A LAZY BASTARD AND DOES NOT WANT TO REFACTOR" [1]

[1] https://github.com/Continuities/adarkroom/blob/master/script...

Re:“A Dark Room” game open-sourced by reeses on Wednesday July 03, 2013 @02:16PM (#5986460)
I've always been a fan of Shame-Driven Development.
Re:“A Dark Room” game open-sourced by mkramlich on Wednesday July 03, 2013 @03:39PM (#5987042)
if it's consistent with TDD and RDD it means you start with shame, then go write something to feel ashamed about?
Re:“A Dark Room” game open-sourced by Continuities on Wednesday July 03, 2013 @04:26PM (#5987294)
SDD: Write something bad => Surround oneself with reminders that it is bad => Fix it*

*Or, more likely, drink to forget.

Re:“A Dark Room” game open-sourced by S4M on Wednesday July 03, 2013 @12:09PM (#5985475)
Maybe the lazy bastard open sourced his code so someone else would refactor it for him.
Re:“A Dark Room” game open-sourced by babuskov on Wednesday July 03, 2013 @03:43PM (#5987063)
The 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.

Re:“A Dark Room” game open-sourced by Continuities on Wednesday July 03, 2013 @04:21PM (#5987258)
Yup, I'm familiar with it. I just didn't think to use it until it was much too late...