Echo JS 0.11.0

<~>
t00naf1sh 2829 days ago. link 2 points
Very interesting, although I was upset by the React code the author wrote. He compares LoC between React and Marko, while writing pointless extra lines in React. I've edited his code snippet on CodePen - http://codepen.io/anon/pen/YZOqew?editors=0010 . Now it is only 29 lines long, the difference mainly being the fact that there has to be a "Render" method which adds 4 lines (open, close, return open, return close), and that state has to be changed in the setState method - most people would consider immutable state as an advantage. Sure, the code is still longer, but not by ~40% like the author made it out to be.

Replies