They really shouldn't let these hotel bars stay open so late... although it did give me the perfect opportunity to revisit an implementation of a non-recursive directional-acyclic-graph-traversal algorithm in JavaScript that might be of value to one of my former capital-Y colleagues at BarCamp as the subject for a code review, done for the purpose of spreading the word that code reviews are a Good Thing... and I'm dumb enough to offer my code up for review in public, rather than amongst a team of colleagues
I'm reasonably sure that it's sufficiently recondite in purpose, and yet perfect in implementation, that it'll give everybody something to talk about without making me look like a total dick
It's also a rather useful demonstration of how best to implement the Visitor design pattern in JavaScript, including the fact that the NullVisitor implementation is part of the class that accepts the Visitor, which helps to make the code self-documenting
Somebody much cleverer than I once asserted that JavaScript is merely an implementation of CommonLisp with a different syntax... it's certainly a language that is much damned by those who don't know it, on the basis of code written by other people who don't know it. If they're so clever, they'd realise that variations in the object models that a language is hosted in say nothing about the language, merely about those contexts.
Imagine if people judged C by the fact that Windows 3.1 was written in it...
Comment