Echo JS 0.11.0

<~>

tracker1 comments

tracker1 3337 days ago. link 2 points
Really looking forward to seeing uWS's http implementation come forward sooner than later.
tracker1 3341 days ago. link 1 point
The comparison is very shallow, and inconclusive even to itself.
tracker1 3342 days ago. link 1 point
TFA's example doesn't work for server-side fetching, and kind of dismisses the issue... the reality is that one should use methods that work for both, if you're going to have universal rendering, so you don't have weird complicated code to do the same thing in two places.
tracker1 3343 days ago. link 1 point
Two things I always try to enforce in code reviews are the use of map/reduce instead of for-loops when practical, and returning early from functions...

    // instead of
    fn() {
      if (foo) {
        //really long code block
      } else {
        //really short code block
      }
    }

    // this
    fn() {
      if (!foo) {
        // really short code block
        return ...;
      }

      // less nested code case
    }

It tends to happen a lot, and the function becomes much more clear when you can get out of it asap instead of deep nested blocks.
tracker1 3344 days ago. link 1 point
Interesting, though would be nice if it were a keyboard character used... it always irks me when frameworks choose an obscure character for things like this.
tracker1 3350 days ago. link 1 point
Glad to see extensible end points for webpack, babel (pending) will also be pretty nice.  It's a minor niggle, because there are an ever decreasing number of features outside stage-3 that I'm using.
tracker1 3356 days ago. link 1 point
This is really not JS related... I mean even CSS stuff is borderline tangential, but this is an entire other language.
tracker1 3356 days ago. link 3 points
I think it's time to start migrating for any 1.x holdouts (myself included).
tracker1 3357 days ago. link 2 points
I am... Though even that is getting there, and iirc webpack2 does es6 modules directly.
tracker1 3361 days ago. link 2 points
Very nice deck outlining some performance improvements for recent v8 versions... will really be nice to see node@8 with all the new shiny features... async/await is about the last thing I'm using babel for on the server side.
[more]