Better HN
topnewbestaskshowjobs
Log inSign up

erikreppen

3 karma · joined Jul 20, 2011 (15y ago) · 2 submissions

Submissions

comment 15y ago · link · parent

Dart. JavaScript, for Java pussies. The people who wrote Closure don't know enough about JavaScript to be in a position to criticize or replace it.

comment 15y ago · link · parent

Knowing the ins and outs of the DOM API implementations can get a bit arcane but optimizing JS is mostly about work avoidance and making sure you know how to make the native-code-implemented methods work for you to avoid putting extra work on the JIT/interpreters. You have to maintain a knowledge-base to be strong at it, but it can be very rewarding to see how much more you can get out of your code with a little bit of thought and study. The analogy also holds in that JS is extremely flexible and denies you very little. You can design and code to most any paradigm you want although I suspect attempting to implement static typing would get a little silly where numbers are concerned.