Echo JS 0.11.0

<~>

tracker1 comments

tracker1 3459 days ago. link 2 points
Interesting, but a *lot* of boilerplate...  it's worth noting that if you want typescript wit React, you could get even more benefits...
tracker1 3460 days ago. link 1 point
Nice usage of newer APIs to check for the font...

That said, I really appreciate the work that went into react-icons, to take several open icon libraries (including FontAwesome's) and normalize them into SVGs and wrap them in a React library.  This way if you only use 5 icons, you don't load the whole font, and don't have to setup a custom font builder toolchain.
tracker1 3460 days ago. link 2 points
If I get a chance to get my new blog tooling finished... Though, I guess I could write something up on Medium in the interim.
tracker1 3460 days ago. link 4 points
Although it touches on it... it's a bad example... I tend to prefer early return wherever possible, and putting the shortest conditional group higher.  I feel that "else" is usually a code smell.

Likewise, I will sometimes use continue to avoid additional logic vs. a larger nested conditional block.

I find that the flatter the code the better, and that being able to see everything you need to see on screen, where practical is very important... shorter methods, etc.
tracker1 3463 days ago. link 1 point
One more minor disadvantage is that fetch can't make synchronous requests, which means it can't be used to implement, for example SCORM directly on the server... though you could create a caching interface that did use fetch.
tracker1 3463 days ago. link 3 points
LOL at the reference to npm being "oh, like Bower" which is funny because you need node+npm to install Bower... something I always found incredibly amusing.  and the biggest knock against Bower in the first place.

The rest of the rant is a little funny, but seriously... for the use case, jQuery would probably be fine...  I'd probably use babel with the polyfills, and run through that.
tracker1 3463 days ago. link 1 point
No, React is still better...  React + Redux + redux-thunk + fetch (with webpack/babel) is a pretty hard combo to beat.
tracker1 3464 days ago. link 1 point
It looks like there's definitely a push to get the async bits all in time... I think object rest/spread and object props are both pretty important in terms of cleanliness and usability.
tracker1 3464 days ago. link 1 point
It's been in stage1-2 for quite a while now.... Hoping this makes it in for EcmaScript 2017 cutoff.
tracker1 3465 days ago. link 2 points
And isn't it wild that 3 of these editors are based on Electron, which is OMG, JavaScript!
[more]