Echo JS 0.11.0

<~>

tracker1 comments

tracker1 3547 days ago. link 1 point ▲ ▼
I'm relatively sure the author has exposure to .Net as the tilde is used as project root the too.  It doesn't work out autosub for profile/home in node currently in any of the path or FS modules.
tracker1 3550 days ago. link 2 points ▲ ▼
Really looking forward to seeing uWS's http implementation come forward sooner than later.
tracker1 3554 days ago. link 1 point ▲ ▼
The comparison is very shallow, and inconclusive even to itself.
tracker1 3556 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 3557 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 3558 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 3563 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 3569 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 3570 days ago. link 3 points ▲ ▼
I think it's time to start migrating for any 1.x holdouts (myself included).
tracker1 3571 days ago. link 2 points ▲ ▼
I am... Though even that is getting there, and iirc webpack2 does es6 modules directly.
[more]