Echo JS 0.11.0

<~>

janjarfalk comments

janjarfalk 2342 days ago. link 4 points
Yes, but. Before you learn class based ES6 you have to learn prototype based ES5. And before you learn ES5 you need to understand the engine and C++. And before you learn C++ you need to learn assembly and machine code. It is very important to learn the basics/roots first. So yeah... you need to learn Java as well.

I think it is bullshit.

We would have absolutely zero interesting musicians if you had to start with scales. No one would be speaking German if you had to start with grammar.

And... I think you should start your programming journey by borrowing, stealing and copying. Because that way you will be able to create something from day 1... and that is fun and addictive. Inventing better wheels and the rest will come by itself in due time.


And by the way. Go to Germany, say "zwei Bier bitte", give the second beer to a stranger and you will be speaking German in no time. The grammar can come later.
[comment deleted]
janjarfalk 2801 days ago. link 2 points
I'm not sure this is good advice.

I'm a fan of something called high cohesion and loose coupling. It's a concept where you strive for putting related code together and keeping modules as independent as possible.

When you put related code together and let the dependencies be obvious you usually get code that is easy to grasp. The advice in the article makes dependencies not so obvious... both for me and my tooling.

The advice in the article also make all components dependent on a global namespace which make them harder to share and remove.

Also... what happens when an updated version of Vue comes with a prototype property named like one of your dependencies. ...Boom?
janjarfalk 3133 days ago. link 2 points
"One surprising take away is how much work and collective knowledge was required to bring out better performance from React, while Vue was fairly well optimised from the get-go." 

Putting React in production mode, which affected your benchmark the most, isn't hard work.

My, not so surprising, take away from your benchmark is that the performance difference in your test is irrelevant. You did a lot more updates than the user needed to see and both Vue and React did splendid.
janjarfalk 3135 days ago. link 3 points
I would and I'm sure he has. He made some mistakes and now he's correcting them. Awesome!