Slashdot Mirror


The Linux Foundation Helps Launch the JS Foundation (softpedia.com)

An anonymous reader writes from a report via Softpedia: Today, the Linux Foundation announced the creation of a new entity named the JS Foundation that will serve as an umbrella project and guiding force for various open-source utilities at the heart of the JavaScript ecosystem. The JS Foundation is actually the jQuery Foundation, which was expanded with the help of companies such as IBM and Samsung. With jQuery slowly bowing out to newer tools, the jQuery Foundation's members and their unmatched expertise will most likely be put to good use in managing the slew of new tools making up today's JavaScript landscape. The list of JS Foundation founding members includes Bocoup, IBM, Ripple, Samsung, Sauce Labs, Sense Tecnic Systems, SitePen, StackPath, University of Westminster and WebsiteSetup. In alphabetical order, the JS Foundation's initial projects are Appium, Chassis, Dojo Toolkit, ESLint, Esprima, Globalize, Grunt, Interledger.js, Intern, Jed, JerryScript, jQuery, jQuery Mobile, jQuery UI, Lodash, Mocha, Moment, Node-RED, PEP, QUnit, RequireJS, Sizzle, and webpack. "Using jQuery can constitute the use of a sledgehammer for putting small nails into an Ikea TV stand; however, as a piece of engineering, it really is a thing of beauty," says A. M. Douglas, British freelance web developer. "[T]he word 'jQuery' has become synonymous with 'JavaScript' for many. As of today, jQuery's days as a relevant tool are indeed numbered, but I think jQuery's source code will always have relevance, as it is a brilliant example to study for anybody seeking to learn and master JavaScript," Douglas also adds.

34 comments

  1. First order of business. by Narcocide · · Score: 2, Funny

    Shut it down. Shut it down forever. -- Mr. Book, "Dark City"

    1. Re:First order of business. by tepples · · Score: 1

      Why do you consider it desirable to shut down the ability to make an app once and run it on Windows, macOS, X11/Linux, iOS, and Android?

    2. Re:First order of business. by Anonymous Coward · · Score: 0

      you're thinking of java, ffs.

    3. Re:First order of business. by Anonymous Coward · · Score: 0

      Because hating JavaScript is cool. Rationale? JavaScript sucks, QED. /sarc

      There is nothing wrong with JavaScript. Except IMO the ambiguity caused by not enforcing end of statement characters.

      If you want strong typing and handholding, code in Ada. If you want a basket of goodies try C++. If you you want a language that mostly stays out of your way, code in C. If you want to code for most devices on the planet with minimal effort, code in JavaScript. If you want to get funky try Lisp. If you are stupid, abuse Visual Basic.

      None of these options are wrong. Just different. Remember children, diversity is our greatest strength.

    4. Re:First order of business. by Narcocide · · Score: 1

      As someone who has been writing JavaScript professionally for 20 years, I feel my opinion on this is valid.

  2. Apps! by Anonymous Coward · · Score: 0, Funny

    Even the LUDDITES at the LUDDITE Linux Foundation realize that only apps can app apps, which is why they're now apping AppScript!

    Apps!

  3. jQuery monoculture by manu0601 · · Score: 1

    jQuery is now a monoculture, and some day we will have to face the price of it.

    1. Re:jQuery monoculture by Shados · · Score: 2

      It's pretty common nowaday to make websites/webapps without jQuery at all, or to only use it for some legacy plugins and shit.

      Far from a monoculture at this point (probably half the reason that foundation got renamed...)

    2. Re: jQuery monoculture by Billly+Gates · · Score: 1

      Yeah because of IE 6 - 8.

      So yes if the site works don't break it! But, that doesn't mean it's used for new projects for modern browsers and mobile apps. Typescript and angular are what the cool kids are using these days

    3. Re:jQuery monoculture by irrational_design · · Score: 3, Interesting

      What are you talking about? I don't know anyone creating anything new that is using jQuery. Now that the majority of people have an evergreen browser installed, the need for jQuery has diminished to the point that I don't know anyone that still uses it unless the client specifically needs the site to run on ancient versions of IE (and since those version of IE have reached End of Life Support, most clients can be convinced not to do that). Are you talking about paying some sort of price for all the websites that were created with jQuery previously? What kind of price will we have to pay?

    4. Re:jQuery monoculture by manu0601 · · Score: 1

      What are you talking about?

      Many web apps will come bundled with jQuery to support older browsers. Even if you do not use it, it is there. You notice it when you try to deploy Content-Security-Policy, because you need script-src: unsafe-inline.

      What kind of price will we have to pay?

      The usual price of monoculture are security problems. Same software everywhere is a sweet target for attackers.

    5. Re:jQuery monoculture by irrational_design · · Score: 1

      "Many web apps will come bundled with jQuery to support older browsers." I honestly have no idea what you are talking about here. When you say "web app" what exactly are you thinking about? Are you talking about something like Google Docs (which is clearly a web app) maybe using jQuery (I have no idea if it does, but this is just an example)? What would it matter to me, as a developer that some web app online uses jQuery or not? That would just be a problem for that one development team if they ever want to move away from jQuery. The fact that one web app is using jQuery doesn't have any affect on all the other web apps.

  4. How so? by ProzacPatient · · Score: 5, Interesting

    jQuery's days as a relevant tool are indeed numbered

    How is jQuery's days numbered; is it no longer hipster enough?

    Maybe I didn't get the memo but as a professional web developer I still find jQuery immensely useful.

    1. Re:How so? by Anonymous Coward · · Score: 0

      He didn't say jQuery is dead now. It's still used on a huge number of websites: https://trends.builtwith.com/j...

    2. Re:How so? by Anonymous Coward · · Score: 2, Insightful

      jQuery is most likely destined, in the end, to become a victim of its own success. The features it provides are so essential, so clearly superior to the old DOM APIs, that those APIs have been and are still being substantially upgraded to natively incorporate most of jQuery's marquee features. I actually have a list on my work computer of all of the major jQuery features and what might replace them. The big one, jQuery's selector syntax, is a standard feature these days as querySelector and querySelectorAll. The AJAX wrapper and associated chaining behavior can be replaced with the Fetch API and Promises. Functional programming methods like each and map are standard on every modern browser and a lot of older ones. jQuery's animation is fine — but Velocity's is better.

      Of course, if you want to support older browsers, then you may need polyfills for new features. Most of your users won't need most of the polyfills. In time, those polyfills will go away. jQuery may occasionally prune workarounds for ancient browsers, but it will always be filled with incompatible reimplementations of functionality that modern browsers already have, out-of-the-box, running in native compiled code. You could write a similar library in a fraction of the size that provides most of jQuery's convenience features on top of the standard APIs.

      My company uses mainly jQuery UI-style widgets for some fairly substantial applications. Through painful experience, we've learned how difficult it can be to scale that approach to complex, multifaceted applications. It's not just about how easy it is to write it the first time, but about what it takes to maintain all of that mutable state in a couple of years. For us, using React isn't a way to be hip with the kids, but a way to avoid the maintenance headaches we've experienced with jQuery.

      The hackernoon link seems rather oriented toward simple, hack-it-together sorts of applications. Yes, if you're just making a personal web page or something you probably don't need a complete build system or anything like that.

    3. Re:How so? by Jahta · · Score: 1

      The hackernoon link seems rather oriented toward simple, hack-it-together sorts of applications. Yes, if you're just making a personal web page or something you probably don't need a complete build system or anything like that.

      Sadly, that's not the case. The whole Javascript/front-end development scene is awash with tools/libraries du jour; what this article calls "magpie front-end developers". As the cited Airbnb example demonstrates, there's a quite a few large web development teams using shiny new things because they are "cool" but that don't add much (if any) business value.

    4. Re:How so? by Anonymous Coward · · Score: 0

      Sadly, that's not the case.

      What's not the case? It's not the case that small projects don't always need a real build system, or not the case that large projects generally do?

      I read the Medium article prepared for some good examples of overengineering — there's certainly no shortage of that in software development —but I came away disappointed, because the author seems to have little knowledge of or experience with the things he criticizes. Examples:

      Web development used to be nice. You could fire up a text editor and start creating JS and CSS files.

      Remember when you didn't need all kinds of libraries and frameworks and build systems to write a C++ program? You just opened up vim and started typing, and you used the real string functions without the extra 'n's in the names.

      Javascript has zero standard library

      I'm not sure how the author (and everyone else) could just “fire up a text editor and start creating”, then.

      A great project called 6to5, which did what the name implied. By installing a simple Browserify transformer you could write ES6 code(well ES7 too, hence the name change) and “compile” it to ES5.

      Now it’s some Convoluted mess of plugins that tries to do everything everyone ever wanted, while actually doing nothing out of the box.

      So, Browserify is okay, and so was Babel but before it changed its name. But it was ruined forever because you now have to tell it what version of JS you're writing? Yes, that's right; as of version 6, when you initialize Babel, one of the parameters you must pass is a string (like 'es-2016') indicating what transformation you want to apply.

      That’s right. All you guys using React like it’s the only way to solve every problem ever are using it because Facebook couldn’t build a fucking notification icon.

      The confident declaration of the ignoramus: I don't understand what problem this is meant to solve, but clearly I could have done it better myself!

      I won't go on. I think I recognize the sort of programmer the author is. We've all probably worked with that guy at some point — the guy who considers the style guide beneath his dignity, who writes inscrutable, idiosyncratic code to solve simple problems and doesn't understand why his genius is unappreciated, who sneeringly insists on writing manually indexed for loops when forEach has been around for years and insists that his way is faster (despite the fact that he's never bothered to measure, it's not a bottleneck anyway, and everyone on the team has had to clean up his off-by-one errors).

      If he's a supporter of jQuery, it's only because it's gone out of style. When it was new, he asked why we would make our users download an extra library when the base engine does everything we need. He mocked the “magpies” who tried out Prototype, Dojo, and MooTools before settling on the de facto standard. Remember when we did all this by hand instead of letting tools get between us and the code? I do, and it sucked. I hope he gives up on the web altogether and starts writing buffer overflow bugs for the kernel or something so I never have to work with him.

  5. Obligatory by Anonymous Coward · · Score: 2, Informative

    why use jQuery when VanillaJS loads faster and is proven bug free?
    VanillaJS is used by more websites than jQuery.

    1. Re:Obligatory by KiloByte · · Score: 2

      There's another JavaScript framework I'd heartily recommend.

      --
      The creatures outside looked from Alt-Right to Antifa; but already it was impossible to say which was which.
    2. Re:Obligatory by Anonymous Coward · · Score: 0

      Enjoy your early 90s internet.

    3. Re:Obligatory by DrXym · · Score: 1

      Why use any framework when a lot of these fundamental libraries only exist to paper over the cracks in JavaScript. Fix JavaScript.

  6. But Linux is so cool. by Bing+Tsher+E · · Score: 1

    The Linux Foundation serves a good purpose.

    Javascript???

    Isn't that just something hackers use to corrupt websites with?

  7. Wrong icon by Anonymous Coward · · Score: 2, Insightful

    Please stop using Java's coffee cup icon for Javascript....

    1. Re:Wrong icon by Anonymous Coward · · Score: 0

      This isn't Java's coffee cup icon, it is Slashdot's Java coffee cup icon. Are you saying that JavaScript isn't named after Java coffee?

    2. Re:Wrong icon by Anonymous Coward · · Score: 0

      Click on that cup, and you'll see stories filtered for Java, not JavaScript.

  8. NOT EVEN ONCE by Anonymous Coward · · Score: 0

    ARRRRRGGGGGHHHHH!

    What the Linux Foundation should do is help organize The anti-javascript League.
    With secret star chamber trials and heretical website designers disappearing in the night.

    1. Re:NOT EVEN ONCE by tepples · · Score: 1

      Let me try to guess the Linux Foundation's reasoning: Without JavaScript, developers are more likely to make Windows-exclusive apps instead of web apps that can be run in a browser on X11/Linux.

    2. Re:NOT EVEN ONCE by Anonymous Coward · · Score: 0

      With secret star chamber trials and heretical website designers disappearing in the night.

      This, a thousand times this. Send them to the Forth re-education camps!

  9. Depends on your JS whitelisting criteria by tepples · · Score: 1

    If by "noscript.net" you meant whitelisting only those applications with a legitimate need for script, I'd agree. But if by "noscript.net" you meant that no application has a legitimate need for script, I'd have to disagree.

    Would you prefer that JavaScript applications be instead served as static HTML pages styled with CSS, with all logic server-side? A web-based paint program, for example, would need to use a server-side image map instead of Canvas and operate by click-wait-click-wait-click instead of dragging. A web-based video game would have to be turn-based. And a Canvas-based vector animation viewer (which is at least better than Flash) would have to render the sequence of frames to WebM on the server side, which bloats the video by a factor of ten in my tests.

    Or would you prefer that applications be instead written in the platform's preferred language and UI library? Good luck running a Mac app written in Swift and using Cocoa Touch API on your Windows PC or a Windows app written in C# and using WPF on your Mac.

  10. Enjoy your malware-ridden modern one by Anonymous Coward · · Score: 0

    See subject: Javascript's a HUGE avenue to infestation by malicious code - especially in ads! I surf, by default (via Opera's by site preferences) FAR faster + FAR safer minus javascript being active (only permitted on "exception" sites that do not function minus it (e.g. - "ecommerce" type sites like online shopping &/or banking typically that demand database accesses - however, THAT is largely still a rarity, even on "the modern" bug infested web).

    APK

    P.S.=> I blow that script crap away by cutting off the source of the scripts themselves via:

    APK Hosts File Engine 9.0++ SR-4 32/64-bit https://www.google.com/search?hl=en&source=hp&biw=&bih=&q=%22APK+Hosts+File+Engine%22+and+%22start64%22&btnG=Google+Search&gbv=1/

    (Ads = snippets of script downloaded to YOUR END as the end user to process (makes me miss WinCGI/CGI-bin seeing the results of javascript misuse in SO many areas online))... apk

    1. Re:Enjoy your malware-ridden modern one by Anonymous Coward · · Score: 0

      )only permitted on "exception" sites that do not function minus it (e.g. - "ecommerce" type sites like online shopping &/or banking typically that demand database accesses - however, THAT is largely still a rarity, even on "the modern" bug infested web)

      So then you do use javascript.

  11. Linus's thoughts? by slapout · · Score: 1

    I wonder what Linus thinks of Javascript

    --
    Coder's Stone: The programming language quick ref for iPad
    1. Re:Linus's thoughts? by Anonymous Coward · · Score: 0

      "JavaScript has been the single worst language we have ever dealt with. So, JavaScript, FUCK YOU!"
        - Linus

  12. VERY sparingly (w/ good reasons I noted) by Anonymous Coward · · Score: 0

    See subject: On GREAT occasion I do (in other words, rarely) - I'm not into being tracked, slowed down, or infected by malscript.

    * It's not worth it to me on 99% of sites...

    APK

    P.S.=> Put it THIS way - I haven't been infected by anything since 1994 or so (& I can't help but think it's due in part to NOT using javascript (especially where it's NOT needed for functionality - I'm mostly on sites to read & learn is why))... apk