Re:Write code that is easy to delete, not easy to extend
by anonyfox on Monday February 15, 2016 @02:53AM
(#11102016)
nitpick: in Javascript you can actually call functionName.toString() and get the implementation. AFAIK angular did this trick to implement their dependency injection mechanism.
[ Parent
| on HN ]
Re:Write code that is easy to delete, not easy to extend
by eru on Monday February 15, 2016 @05:10AM
(#11102532)
Yeah, but that's evil. And even with the source code, the only decidable properties of Turing complete systems are trivial. (Eg you can't even tell in general whether a given function will eventually return or loop forever from the source.)