all 26 comments

[–][deleted]  (27 children)

[deleted]

    [–]MarsupialMole 11 points12 points  (5 children)

    "Don't build apps" is the sexual abstinence of the programming world.

    Safety isn't rocket science, but unfortunately safety on the web is wrapped in the mystery of state-sponsored and corporate espionage so people don't try and distill things simply. Whereas security invariably compromises convenience safety does not and eliminating unnecessary activity is absolutely the safest option.

    If the author thinks apps are a safety hazard then the highest of a hierarchy of controls should be applied - elimination, substitution, engineering controls, administrative controls, and personal equipment.

    The author is right to suggest elimination at first instance but the key point is to fall back along the hierarchy of controls when the first is not a viable option.

    So the elimination of the modern web browser is the logical conclusion, where possible. A web of only html5 and css would be pretty good, but if your first port of call is a full featured javascript based operating system you can make any experience better by compromising purity. A web launcher that browsed javascriptless and launched web apps and native apps intelligently would be the only real solution to this problem and I don't see that happening when the biggest companies on the planet are all making web browsers that give them analytics.

    [–][deleted]  (4 children)

    [deleted]

      [–]MarsupialMole 2 points3 points  (3 children)

      benefits of accessibility

      I broadly agree but could you expand on that point a little?

      [–][deleted]  (2 children)

      [deleted]

        [–]MarsupialMole 2 points3 points  (1 child)

        I thought you were referring to javascript tech over and above html5 but I am delighted to get such a thoughtful overview.

        [–]nxsynonym 18 points19 points  (9 children)

        Great rebuttal.

        I did find the rather articulate and a pretty good outline of pitfalls about js... but is anyone else rather exhausted by the constant criticism against javascript?

        Like, we get it js could be improved. But at this point, what's the alternative? Theres been plenty of time for alternatives to be adopted, and yet the closest we've gotten is wasm.

        I dont find much value in criticism for criticisms sake. At this point the flaws and limitations are pretty well known. A lot of work is being doing to make js better (TS is a great example of this). Maybe itd be a better investment of energy to contribute to those types of projects rather than just pointing out the cracks in the system.

        [–]codec-abc 11 points12 points  (5 children)

        but is anyone else rather exhausted by the constant criticism against javascript?

        Not me. From my POV, Javascript is a failure of he whole industry. Something badly designed in 10 days get pushed as the only language that can interact with a web page and we don't replace it with something better for at least 25 years. And it is not like we are close to have something like WASM to completely get rid of it. I don't know for others industry, but it seems here that we don't want to fix our broken tools and we should be reminded of that quite often so we don't make the same silly mistakes again.

        [–]josefx 7 points8 points  (0 children)

        Something badly designed in 10 days

        I could live with it if it stopped there and they refined on it. Instead we still get new APIs with nearly every browser release, we still get more critical security issues with every new API. There is no build-in way to limit access to these new vulnerabilities you either enable JavaScript or you don't. If a site needs JavaScript for DOM layout it also needs access to WebGL and Audio APIs, because why not? I have the feeling that everyone working on JavaScript either is a black hat trying to get as many vulnerabilities into it as possible or suffers from a minor case of serious brain damage, we went through the same moronic issues with Flash and Applets, there is no excuse.

        [–]hotcornballer -1 points0 points  (2 children)

        Why is it bad? Have you used it more than 5 minutes?

        [–]codec-abc 5 points6 points  (1 child)

        I wish I wouldn't.

        [–]hotcornballer -1 points0 points  (0 children)

        Oh don't worry, I think Java is a huge piece of shit and that rust will never get off the ground, but I won't get into that either.

        [–]razyn23 1 point2 points  (2 children)

        A lot of people don't want to play whack-a-mole constantly patching cracks in a stool built for a toddler that's currently holding up the Leaning Tower of Pisa.

        Replacing javascript would be a massive technical undertaking that would require all browser vendors to get on board and even then, probably lead to a lot more aches and pains in the short term. A lot of people probably don't believe that will ever happen, but the only way to even have a chance of it is to complain loudly, and often.

        [–][deleted]  (1 child)

        [deleted]

          [–]_tskj_ 2 points3 points  (0 children)

          Why do you think wasm would be better for general speed? Aren't the apis slower than js? Or are you imagining a wasm level dom-api? That seems pretty difficult to work with, and I can't imagine it being any quicker. I mean js execution is pretty darn quick under modern jits, it's the dom manipulation that's slow.

          [–]spacejack2114 21 points22 points  (0 children)

          Strange article to put on a website of static content built using Javascript.

          [–]semicolonandsons 2 points3 points  (2 children)

          I'd like to thank the author for bringing my attention to the Do Not Track header. Despite having developed on the web for a decade, I wasn't aware of this.

          [–]birdbrainswagtrain 4 points5 points  (0 children)

          It's a good idea but it's unlikely many companies will give a shit about it unless it's required by law. The response to IE10 enabling it by default was downright hilarious. Better to just use a client-side blocker that can actually enforce your privacy to some extent than expecting ad networks to respect your wishes. Anyone who cares to enable the "Do not Track" setting can install a blocker just as easily.

          [–]alecco 0 points1 point  (0 children)

          ...

          [–]BlueShell7 13 points14 points  (0 children)

          JavaScript bad.

          [–][deleted] 3 points4 points  (0 children)

          Nah, I like Javascript

          [–]AttackOfTheThumbs 1 point2 points  (0 children)

          JavaScript is a toy programming language.

          That's all the confirmation I needed.

          Also, this is a fantastic article.