HackerTrans
TopNewTrendsCommentsPastAskShowJobs

jashkenas

no profile record

Submissions

Why Taxpayers Pay McKinsey $3M a Year for a Recent College Graduate Contractor

mattstoller.substack.com
781 points·by jashkenas·قبل 7 سنوات·310 comments

comments

jashkenas
·قبل 16 سنة·discuss
For what it's worth, there are tools that can help you avoid the bad parts. JSLint won't let you forget a "var" or "===" ... and if you use CoffeeScript, it's not possible to forget "var" or "===", because there aren't any.
jashkenas
·قبل 16 سنة·discuss
Not to be combative, but I think what he means is this: Although it's perfectly easy to use JavaScript from Objective-J, the same is not true in reverse. ObjJ generates code that looks like this:

    objj_msgSend(objj_msgSend(CPIndexSet,"alloc"),
      "initWithIndexSet:",_selectedRowIndexes);
... where objj_msgSend is how the Objective-J "interpreter" does it's magic. If I wanted to use a library that was originally written in Objective-J, from JavaScript, I'd have a hell of a hard time calling it correctly, unless the library author took special care to make it JavaScript-compatible in the first place. The syntaxes may not collide, but the semantics certainly don't match up.

On the other hand, you'd never know that you were calling a CoffeeScript library from JS, unless you inspected the source, and vice-versa. In that sense, they're interoperable.