4 ms·
Would someone who knows HTML/CSS/RoR better of learning Dart or JS next?
by davidedicillo 13y ago
Would someone who knows HTML/CSS/RoR better of learning Dart or JS next?
- dragonwriter 13y agoWithout any additional special assumptions about the someone and their particular circumstances, learning JS is probably a lower risk investment, learning Dart is probably higher risk and higher potential payoff; thinking only in terms of future income potential.
- camus2 13y agoEven if you use language X that compiles to javascript ,you still need to learn javascript, Or it's a bit like learning rails without understanding ruby.
- sek 13y agoNo, Dart is not CoffeScript. It really compiles, so you don't have to worry about it. The languages are so similar that stuff that is fast in Dartium will work pretty fine in JS.
- RobAtticus 13y agoI don't need to learn assembly to use C. I don't need to learn the JVM bytecode to use Java. Sure for special cases knowing those things can help get the very best out of your code, but for the other 99% of the time, it is not necessary. (Edit: Not that I recommend Dart over JS necessarily, but I don't agree with your argument.)
- coldtea 13y ago>I don't need to learn assembly to use C. I don't need to learn the JVM bytecode to use Java. But you DO need to learn Javascript to use Dart on web apps, so the comparison is irrelevant.
- chrisbuc 13y agoWhy do you need to learn JavaScript to use Dart? You need to understand the DOM and the browser APIs (presented through Dart libraries), and HTML, CSS, but you very much don't need to know a jot of JavaScript to build and deploy Dart or dart2js applications. Even the Dart2js output has sourcemaps letting you view source in the original Dart.
- FuzzyDunlop 13y agoYou can do Rails to a fair extent without really knowing Ruby, and just fumbling through it with a bunch of gems and messy code. In some ways it can be the gateway to learning Ruby itself, if you were so inclined to do so. For things like CoffeeScript, which are fairly thin layers over another language, I'd always advise to just learn JS first. Dart and Clojurescript though are so far removed from their compilation target that you don't really need to know the JS, as long as there's good library support for what you want to do. In the case of clojurescript the interop is so seamless that it puts the focus on learning the APIs, which is where the true complexity lies. Of course, and even more so with typing, you also have the compiler to back you up.
- libria 13y agoI really like Dart and hope it - or something like it - replaces javascript soon, but I'd heavily recommend learning javascript instead. I'll be quite some time, if ever till Dart is even 1/4 of the client side market. Even if you did learn Dart, you'd inevitably have to include external javascript libraries, so you'll have to know javascript anyway. And Google is still actively promoting javascript in things like AppScript and Angular js.