News for hackers. Stuff that matters.
Re:Write code that is easy to delete, not easy to extend by eru on Sunday February 14, 2016 @04:56PM (#11100172)
That's why a language that forbids magic global state (or at least makes you clearly tag every tiny instance of it) can be so useful.
Re:Write code that is easy to delete, not easy to extend by ktRolster on Monday February 15, 2016 @01:50AM (#11101868)
Then someone invented the singleton.....
Re:Write code that is easy to delete, not easy to extend by eru on Monday February 15, 2016 @05:11AM (#11102537)
In eg Haskell a singleton needs to be tagged with IO. And that makes sense, because singleton are clearly evil global state.