Echo JS 0.11.0

<~>

tracker1 comments

tracker1 3612 days ago. link 1 point
Kind of wish auth0-lite was in github... Would also be interesting to get a followup Q&A on his impressions in using React, and iirc Redux.

I do find it interesting how much he's leveraging AWS' services, and Lambda in particular.  Also, given that he's using go, curious if the startup for lambda is reduced, and by how much.  I'd be more interested in seeing what steps Amazon is taking to improve Lambda startup time, for better scaling.
tracker1 3617 days ago. link 1 point
I had to learn about NgZone while trying to wire up ng2's router with a redux store.  It worked okay, but wasn't entirely happy with it...
tracker1 3617 days ago. link 2 points
Not sure that I like monkey patching require quite like this... and tbh if you're using babel (for any number of reasons, even on the latest node), then you can already get encapsulation with "use strict";
tracker1 3620 days ago. link 1 point
It's funny, that when Apple announced the JS Automation APIs, I didn't quite understand why it wasn't an npm/node module in the first place... other than NIH for the engine.
tracker1 3621 days ago. link 1 point
It's relevant because code style, and project structure are as important as raw performance, especially given, that most applications don't need absolute responsiveness, or 500+ constantly updating fields/components from a feed.
tracker1 3624 days ago. link 1 point
I'm still not fond of the vue.js templating over React's JSX.  To me, JSX feels closer to HTML, and having the component rendering *in* the component instead of as a weird binding side effect just feels better to me.
tracker1 3624 days ago. link 1 point
Beyond this, is iirc React gives warnings in the console when you run it outside of production mode.
tracker1 3624 days ago. link 2 points
Is an async function just nicer syntactic sugar for a generator with a run(..) utility driving it?
    No.

That's not quite accurate... most implementations are using generator semantics under the covers afaik... as such a function can't be async and a generator... and I don't think that will ever be possible/practical.

That said, if you were writing your own custom scheduler, the generator syntax and being able to yield nothing would be useful... by the same token, you could create a defer method, to be used inside an async function `await defer();`, I also wrap setTimeout in a sleep function so that I can `await sleep(500)` or similar...

    const sleep = ms => new Promise(resolve=>setTimeout(resolve, ms));
    const defer = () => run(*() => { yield; });
tracker1 3626 days ago. link 1 point
One *HUGE* niggle... I would *NEVER* outsource authentication records to a small service like auth0.  I have trouble enough trusting Azure's Active Directory hosting, let alone the entire authentication and storing of user account logins.

What happens when/if auth0 folds up shop?  What happens to your user accounts?

It's just a recipe for a huge potential risk of failure.
tracker1 3626 days ago. link 3 points
I've actually been a pretty big fan of JS since very early on.  I remember using it with Netscape's server in the 90's, then again with classic ASP sharing business logic client and server long before node... for a while I kind of jumped ship for early ASP.Net, but there was so much friction and performance was pitiful for the overhead.

By 2003-2004 I was ready to jump back into JS, Firebird^wFirefox was coming into vogue, and Ajax wasn't there yet.  However, many of the DOM differences had gone away and by the time we got jQuery, it was already gotten better.  The Good Parts put to book form what I'd known about JS for years before.  After node and npm came into being, it got so much better.  I know setting up a webpack config can be cumbersome, but once you pass that hurdle, the rest of an app's development can be so much better[1].  I love React + Redux + modules for application development in the browser, and feel it should be done this way.  I've seen many technologies come and go, adopted some, and passed over others.  In the end, we're hitting a point where things actually feel like the right way to do things... less friction, easier refactoring.
[more]