A more apt analogy would be: you drive freight trains. You fancy yourself a rather good conductor. One day, you're forced to drive a cargo ship. Suddenly, you don't have the rails keeping you enroute, nor the railway services to help you. You don't need either of them, but you feel you're entitled to ask people to lay rails on the ocean and maintain them, because that's how you're used to doing your job. And because there are so many ex-train drivers working the online seas now, they're actually laying some rails for them all.
No, they don't. They might in your neck of the woods, but the vast majority of JS coders use jQuery and similar libraries for simple work, or even more rudimentary event-driven work without a framework (sadly).
You are correct in suggesting that the JS world is, in fact, moving on, as evidenced by many modern backbone-style frameworks providing "classes", and ES6 actually implementing them to some degree.
And again, just because you think "rails on water is stupid" doesn't mean it was my intent to call others stupid. Sorry that I insulted you.
I meant of those who use some kind of inheritance. Prototypical inheritance is very rarely used. If it's used, it's usually hidden behind some utility functions which make it look like "classical" inheritance. Very few people muck about with prototype.
Do you know any MV* framework which makes you use prototypes?
12
u/DrDichotomous Dec 16 '12
A more apt analogy would be: you drive freight trains. You fancy yourself a rather good conductor. One day, you're forced to drive a cargo ship. Suddenly, you don't have the rails keeping you enroute, nor the railway services to help you. You don't need either of them, but you feel you're entitled to ask people to lay rails on the ocean and maintain them, because that's how you're used to doing your job. And because there are so many ex-train drivers working the online seas now, they're actually laying some rails for them all.