7,416 karma · joined Oct 23, 2009 (17y ago) · 1,582 submissions
Email: charles@codemix.com
comment 13y ago · link · parent
2. The market isn't saying JavaScript needs to go, JavaScript skills are high in demand, more so than ever.
3. This is the crux of your misunderstanding. I agree it would be nice if browsers supported e.g. LLVM out of the box. But they don't. And for political reasons they won't. If a company as large and powerful as Google cannot push NaCl adoption at all in other browsers (and NaCl was announced in 2008, so we're already half way to 10 years), how will you get them to adopt $YourVMofChoice? This is where ASM.js really wins - it is a subset of JavaScript, so it already works in other browsers, albeit without the performance boost and it is much easier for browser vendors to implement support for ASM.js than it is a whole new VM. Being backwards compatible means more web developers are likely to use it which will put pressure on other browser vendors to implement it. No one is arguing that ASM.js is a better technical solution to the problem, but it is a much better practical solution to the problem.
4. So this is another thing. Most of the people who are against ASM.js seem to dislike JavaScript the language. But ASM.js would free you from JavaScript almost entirely. The only time you'd see it is when you're debugging the "bytecode", and surely human readable bytecode is nicer than whatever something like LLVM spits out? Anyway, it seems like slightly curious reasoning.
comment 13y ago · link · parent
comment 13y ago · link · parent
Right, but you can still address this when you're negotiating the terms of your employment.
> Certainly most companies will not grant you a blanket right to open source all of your work for them
agreed, but many companies will be ok with open sourcing individual components, especially if it's done so under their name.
My point is this is another tool for you to use at negotiation time when they've reached a limit on price / other benefits.
comment 13y ago · link · parent
comment 13y ago · link · parent
<a ng-click="modal.saved=true;dismiss()">...</a>
is any different to <a onClick="thisIsAnAntiPattern()">...</a>
I'm all for declarative code but isn't stuffing javascript in html attributes something we learnt not to do about 10 years ago? Why the resurgence?comment 13y ago · link · parent
###
@it should return true
expect(foo()).to.be.true
###
foo = -> true
and the preprocessor extracts the test from the comment and associates it with the foo declaration.comment 13y ago · link · parent
###
comment blocks
###
instead and I find that more readable, especially when dealing with indented code, e.g. a class body.Edit - here's an example of some coffeescript written in this "illiterate" way, i'm using it with a (work in progress) preprocessor that spits out tests, html, markdown etc - https://gist.github.com/phpnode/2bf86b9633032a51d036
comment 13y ago · link · parent
comment 13y ago · link · parent
comment 13y ago · link · parent
edit: ok now I get it, I had a look at your website. You like Closure so jQuery must suck, right? Also I would be in the hospital after 5 shots....
comment 13y ago · link · parent
comment 13y ago · link · parent
What does that mean/how does it affect me?
It means that only people who have specifically turned "showdead" on can see your posts. No one can reply to you posts directly. Your upvotes do nothing and don't count. But crucially, to you, everything seems completely normal.
And howd that happen?
An administrator decided that your first ever comment didn't fit the tone of this site (which it didn't, but well, you were new), so they decided to instantly and silently ban your account forever. So you have been commenting, for a year, and basically no one has seen your posts. I feel really bad about that and I hate this objectionable practise.