How to write good ES6 JS: Only use `const`. When that fails, switch to `let`. Don’t use `var` or global scope. Also, avoid `this`.
-
-
@wycats Easier if I just blog about it, but it’s mostly personal style. This resonates with me: https://github.com/reactjs/react-future/blob/master/01%20-%20Core/03%20-%20Stateless%20Functions.js … -
@tdreyno I find it over-simplistic, but I also like thinking of components like functions.
End of conversation
New conversation -
-
-
@wycats And, yeah, ClojureScript experience. I prefer to compose without class extension. -
@tdreyno I think if you like clojurescript you should write clojurescript :p -
@wycats Clients, bro :) and the difficulty of on-ramping a team into new language/concepts -
@tdreyno trying to turn JavaScript into clojurescript will have the same problems ;) people you're on ramping will know classes. -
@wycats No, people I’m on-ramping know how they taught Classes (usually Java) in school. Which is different enough from JS to matter a lot.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.