3 ms·
Well, either that or polyfill. Transpiling to JS may be a product of other motives (Typescript, Svelte, Elm etc.) While Ruby is pretty and all, I don't find th
by hootbootscoot 7y ago
Well, either that or polyfill. Transpiling to JS may be a product of other motives (Typescript, Svelte, Elm etc.)
While Ruby is pretty and all, I don't find that I'm enjoying the lie that is ES6, and don't even get me started on classes in JS, etc.
Bottom line, JS isn't my favorite language, but I'm not dying reading/writing ES5, (nor does ES6 look lovely when I know that it's lying to me) and the advantages outweigh the disadvantages...
I'm questioning a lot of the group-think decisions.
State management? What is "a variable"?
Many times the cure is worse than the disease...
- partymck 7y agoAnother option is ignoring IE11. Then you don't need webpack, npm, babel, and you can still use modern features. Something like htm [1] + ES6 modules is the best of both worlds IMO. State management? Let React/Vue handle it [2]. No need for Redux/Vuex etc Need to support IE11? Then yeah, I agree, go back to ES5. [1] https://www.npmjs.com/package/htm#example https://www.npmjs.com/package/htm#example [2] https://twitter.com/ryanflorence/status/905584958835638272 https://twitter.com/ryanflorence/status/905584958835638272
- root_axis 7y ago> Transpiling to JS may be a product of other motives (Typescript, Svelte, Elm etc.) I'm not sure what you mean. Are you saying those tools should be avoided too or are you saying they are an exception to the "avoid complexity" rule? >While Ruby is pretty and all, I don't find that I'm enjoying the lie that is ES6, and don't even get me started on classes in JS, etc. I don't understand what you mean. What does Ruby have to do with anything? Also, what do you mean by lie? > Bottom line, JS isn't my favorite language Ok. That's fine. So what? > the advantages outweigh the disadvantages Would you care to elaborate on this? What would you consider to the be the advantages and what makes the complexity disadvantage outweigh them? > I'm questioning a lot of the group-think decisions. What is there to question? Don't use tools just because other people are using them, when you encounter a specific problem you want to solve, evaluate the available tools for solving it. > State management? What is "a variable"? I'm not sure what you're asking here. Are you asking why people use state managers when building js applications on the web?