4 ms·
I programmed javascript 15 years ago, while you're technically correct, practically speaking today's JavaScript looks nothing like that written even 10 years ag
by mattmanser 7y ago
I programmed javascript 15 years ago, while you're technically correct, practically speaking today's JavaScript looks nothing like that written even 10 years ago.
Like Crockford's "Javascript: The good parts", which is when people really started using it without utterly despising it, was published in 2008.
Also, before V8 came out, JavaScript performance was a joke, a loop of 100 items could hang your page for a second. Think that was around 2008/9 too.
- tmaly 7y agoI still have javascript running on an internal app that was written in 2006. It is still working on current browsers.
- mattmanser 7y agoThat's not what I was saying though, if you rewrote it for some reason, it probably wouldn't look the same at all. The easiest example is that you used to have to create and add every single node of a table, for example, modify all the properties line by line, create a tbody, add that to the table, create a tr element, add that to the body, add a td element, etc., etc. I can do all that in one line now. And 20 years ago, XMLHttpRequest had only just been released and you were more likely to be doing dynamic updating with crazy stuff in iframes. Let's not even get started on divs vs tables for layout...