JavaScript: Difference between revisions

From IndieWeb
(meme for excess JS on a website)
(β†’β€ŽCan Encourage Bad Engineering: Instead, progressive enhancement)
Line 34: Line 34:
<span style="max-width:25%;float:right">[https://twitter.com/andybelldesign/status/1105440749687066624 <img style="max-width:100%" src="https://pbs.twimg.com/media/D1dQf4uWkAAAwkD.jpg" alt="A smiling guy labeled DEVELOPERS wearing an untucked light blue polo shirt and teal pants pouring a massive jug (the size of his torso) of olive oil labeled JAVASCRIPT into a medium sized bowl of salad labeled WEBSITE" />]</span>
<span style="max-width:25%;float:right">[https://twitter.com/andybelldesign/status/1105440749687066624 <img style="max-width:100%" src="https://pbs.twimg.com/media/D1dQf4uWkAAAwkD.jpg" alt="A smiling guy labeled DEVELOPERS wearing an untucked light blue polo shirt and teal pants pouring a massive jug (the size of his torso) of olive oil labeled JAVASCRIPT into a medium sized bowl of salad labeled WEBSITE" />]</span>
As summarized by: https://twitter.com/fox/status/716879915333750784 <blockquote>I have seen the worst engineering in my career lately and I have one message: <br/><br/>STOP TRYING TO WRITE EVERYTHING FRONT-END IN JAVASCRIPT</blockquote>
As summarized by: https://twitter.com/fox/status/716879915333750784 <blockquote>I have seen the worst engineering in my career lately and I have one message: <br/><br/>STOP TRYING TO WRITE EVERYTHING FRONT-END IN JAVASCRIPT</blockquote>
Instead: '''[[progressive enhancement|Use JavaScript only for progressive enhancement]].'''


== See Also ==
== See Also ==

Revision as of 21:37, 25 March 2019


JavaScript (JS) is a popular programming language due to its nearly ubiquitous availability in web browsers, and growing web server availability in the form of node.js.

Libraries

Generally useful libraries being developed by IndieWeb participants that run in Javascript:

Criticism

Sites break without Javascript

Javascript seems to have engendered web development methodologies that depend on it. Many sites seem to break without it, become inaccessible.

Although it is unlikely that visitors of your site still use a browser that does not support javascript as a technology, there are situations in which this is relevant to you as a webmaster.

See also: antipatterns

More Fragile Than HTML

Many sites now depend on Javascript to generate the page in a browser, rather than generating the page on the server and sending HTML. This is a more fragile approach:

Breaks Browser User Features

As illustrated by: https://twitter.com/gabrielgironda/status/721115498474270721

DEAR #FRONTEND DEVELOPERS: PLEASE STOP MAKING SITES WITH LINKS I CAN'T COMMAND-CLICK TO OPEN IN A NEW TAB. WHAT IS WRONG WITH YOU

Can Encourage Bad Engineering

A smiling guy labeled DEVELOPERS wearing an untucked light blue polo shirt and teal pants pouring a massive jug (the size of his torso) of olive oil labeled JAVASCRIPT into a medium sized bowl of salad labeled WEBSITE

As summarized by: https://twitter.com/fox/status/716879915333750784

I have seen the worst engineering in my career lately and I have one message:

STOP TRYING TO WRITE EVERYTHING FRONT-END IN JAVASCRIPT

Instead: Use JavaScript only for progressive enhancement.

See Also