It's even worse than it appears.
Thursday July 9, 2020; 12:19 PM EDT
  • Following up on yesterday's post where I talk about striving for simplicity in using JavaScript, my friend Allen Wirfs-Brock, who has been involved in JavaScript language design for many years, and was editor of the ES6 spec, responded thus:#
    • Because of JavaScript’s "don’t break existing code" policy, often the only way to fix an existing problematic features is to leave it alone and add a better alternative. This inevitably leads to profiles that include the better features and leaves out the deprecated ones. #
    • You probably don’t use eslint , but most commercial JS devs seem to. There are probably thousands of configuration profiles for it that enforce various style guides and and subset preferences. #
    • For example JavaScript Standard Style is popular but controversial both because of its self-assumed name and because of the positions it takes on semicolon usage and other conventions.#
    • Regarding choice of function forms, my preference is to use the function hello () {} form in most situations where I wanted to define a named function, both global and local. I’d generally reserve arrow functions for cases where I’m passing an anonymous function as an argument or otherwise using it as a first class value. #
    • I’d probably only use const hello= () => {}; in situations where I need to name a function that needs to reference the this binding of its surrounding environment.#

© 1994-2020 Dave Winer.

Last update: Tuesday July 14, 2020; 4:50 PM EDT.

You know those obnoxious sites that pop up dialogs when they think you're about to leave, asking you to subscribe to their email newsletter? Well that won't do for Scripting News readers who are a discerning lot, very loyal, but that wouldn't last long if I did rude stuff like that. So here I am at the bottom of the page quietly encouraging you to sign up for the nightly email. It's got everything from the previous day on Scripting, plus the contents of the linkblog and who knows what else we'll get in there. People really love it. I wish I had done it sooner. And every email has an unsub link so if you want to get out, you can, easily -- no questions asked, and no follow-ups. Go ahead and do it, you won't be sorry! :-)