I taught javascript all day
December 6, 2014, 1:25 am

I tutored a student today for 5 hours about javascript. It was intense. When you're a teacher of code, you run a thin line between getting good code into your students' hands, and actually having them understand what the heck you just gave to them. When it comes to Javascript there is a LOT of stuff you can do to be cute and ridiculous, and it just makes NO sense when you try to explain it.

Let me give you an example.


The weirdest part about this isn't even the closure. The closure is fascinating, but the more stupid part is that first semicolon. How do you explain that to someone? Well, you see, child, some people's code is absolute shit, and someone might take your code and try to compile it with other code, and if the other code is bad, it will break your code, so you should just put in a little insurance to break their code before their code breaks your code.

It's so dumb. I love it. I love the dumbness of Javascript so much.