Hacker News new | ask | show | jobs
by bengoodger 4841 days ago
I've only written a small amount of dart so far, but speaking as as a cranky C++ developer with not much recent experience with web development, having a thicker standard library is very useful. Specifically the platform has grown so much over the years it's hard as a newcomer to discover the well lit path. With dart:html for example, it's much more straightforward - they have done a lot of work simplifying the very broad set of DOM APIs. I understand there are various JS libraries that provide this, but as a newbie which one do I pick?
1 comments

jQuery if you'd like to support older browsers, Zepto if not and you are targeting mobile.

By the way, dartlang.org includes this tongue-in-cheek statement: One area where the DOM has a bunch of baggage is finding elements. Today’s DOM has a pile of methods for finding stuff. All of this piled up before jQuery appeared on a mountaintop to give us the revelation that Thou Shalt Find Nodes By Using CSS Selectors. With the One True Way in hand, we’ve stripped it down to just two (!) methods: query() and queryAll().