News for hackers. Stuff that matters.
Re:Future of TypeScript on ESLint by oh_sigh on Friday January 18, 2019 @08:14PM (#18944619)
4000 LOC a day, every day, for 3 months? I hope that's a lot of boiler plate!
Re:Future of TypeScript on ESLint by idontpost on Friday January 18, 2019 @08:38PM (#18944710)
Depends on his coding style.

You can write Typescript like Java. You can also write it (almost) like Clojure. It's really very flexible, but without most of the insanity that flexibility causes in normal JS.

Re:Future of TypeScript on ESLint by Scarbutt on Friday January 18, 2019 @09:22PM (#18944909)
Typescript has a standard library like clojure for manipulating data? like the lodash of the JS world.

I would be surprised (without golfing of course) if typescript can match clojure's conciseness.

Re:Future of TypeScript on ESLint by idontpost on Sunday January 20, 2019 @08:07PM (#18956748)
I didn't say it could match it. I don't think it can, but you can write it very concisely if you choose to.

There's not a big difference in concisesness or readability between Clojure threading macros and JS promise chaining, for example:

(-> (do x) then-do-y then-do-z then-do-q)

vs

doX() .then(doY) .then(doZ) .then(doQ);

Of course, the Clojure version is more flexible, and the ability to define DSLs very simply allows for further conciseness, but that's all beside the point. My point is just that Typescript can be written very concisely or very verbosely, depending on your own coding style.

Re:Future of TypeScript on ESLint by dragonshed on Saturday January 19, 2019 @03:04AM (#18945920)
No, typescript adds as little as possible to support its language features. You'll need to rely on js libraries or browser features for the API.