News for hackers. Stuff that matters.
Re:Pajama.js - because HTML has no place in your Javascript app by krapp on Thursday July 25, 2013 @10:24AM (#6102575)
plucking elements out of the DOM using selectors isn't far away from using global variables in C.

But at some point underneath all the abstraction, isn't that exactly what this has to do to even work?

Re:Pajama.js - because HTML has no place in your Javascript app by joezo on Thursday July 25, 2013 @12:10PM (#6103144)
I don't think that's quite how it works. I took a quick look at the code and it doesn't contain any DOM selectors at all. It uses closures and getters and setters.
Re:Pajama.js - because HTML has no place in your Javascript app by krapp on Thursday July 25, 2013 @12:14PM (#6103162)
Huh?

Well if i'm wrong, i'm wrong. I should probably study it some then.

Re:Pajama.js - because HTML has no place in your Javascript app by joezo on Thursday July 25, 2013 @01:00PM (#6103445)
It's actually quite neat the way it all works. It's definitely worth taking a look at!