3 ms·
(edit 4: my comment is off-topic, sorry) Mathjax reminds me of the AJAX hype. What happened to it? These days no one talks about AJAX. There was material desig
by fizixer 6y ago
(edit 4: my comment is off-topic, sorry)
Mathjax reminds me of the AJAX hype. What happened to it? These days no one talks about AJAX. There was material design a few years later but that was just the looks.
Is AJAX now replaced with React.js? or a combination of other stuff (like HTML5 and modern-JS and React.js and stuff)?
edit: I just looked up Angular and apparently it was rewritten in Typescript, a strict superset of JS. This doesn't make sense. JS is known for massive amounts of cruft. An improvement would've been a scripting language that compiles to "JS: the good parts", i.e., a subset of JS. But now we should have "Typescript: the good parts" because TS inherited all the bad parts of JS?
edit 2: It turns out, there is valid JS that is invalid TS [0]. And yet, TS is described on wikipedia as "a strict superset of JS" [1]. (invalid TS == non-error-free TS).
edit 3: Further confirmation about error-free TS not being a strict superset of JS [2]. Such a lie can only be expected from a company like micro$hit.
edit 5: even with-error TS is not a superset of JS (the behavior is different) [3].
edit 6: Typescript is an opinionated-yet-spineless Javascript!
[0] https://github.com/microsoft/TypeScript/issues/38546 https://github.com/microsoft/TypeScript/issues/38546
[1] https://en.wikipedia.org/wiki/TypeScript https://en.wikipedia.org/wiki/TypeScript
[2] https://stackoverflow.com/a/53698835 https://stackoverflow.com/a/53698835
[3] https://news.ycombinator.com/item?id=18942886 https://news.ycombinator.com/item?id=18942886
- jszymborski 6y agoFWIW, Mathjax doesn't have much to do with AJAX calls. AJAX is just ubiquitous and it's easier to use without frameworks nowadays. React is a library that solves different problems from the frameworks that made AJAX easier like Prototype and jQuery. React helps folk build UIs through interesting data-models and the ShadowDOM. AJAX is required by anything but the most trivial React projects to make server-side requests. Hope that helps :)
- strikelaserclaw 6y agoAJAX is just a set of principles to make client side web applications more dynamic by getting all the data async and updating the DOM. AJAX is very much alive in modern client side js frameworks like Angular, react etc... It is just abstracted away a little (or a lot).
- sophiebits 6y agoAJAX is the default now, so no one talks about it.
- recursive 6y agoAJAX hype is like indoor plumbing hype. Everyone realized it was good, and now it's everywhere all the time, although only plumbers talk about it. I think your footnote [3] is a reference to an HN comment of mine. I think you should know I actually like typescript even though the "superset of JS" thing is a bit oversold.
- fizixer 6y agoThanks. For context, as somewhat of an outsider, I knew about Crockford 'JS: The Good Parts' and knew the community cared about working within the limits of a sane "subset" of JS. A few years later, I hear Typescript is everywhere and JS folks love it. I didn't pay attention to what it really claims to be, but made a connection with the Crockford book, and started mentioning in discussion with acquaintances that it's a subset of JS (it must be because that's what the community wanted). Lo and behold, one of them heard TS is a "superset", not a subset, and dissed me as a knowledgeable tech person, despite himself knowing so little that barely weeks ago he didn't know the difference between Java and Javascript. Sorry, I'm done with this mess.