Live data from Hacker News

TypeScript Seals My Penchant for JavaScript

cycligent.com

111–120 of 133 posts

Re: TypeScript Seals My Penchant for JavaScript

#111
post #58

Earlier quoted context omitted.

See PureScript and Elm. Dart is surely more concise, but not very innovative.

Elm is extremely exciting. Whenever I get frustrated with js I fire up an elm app I have been working on just to see those beautiful compiler errors. Seriously though, Elm's error reporting is best in class.

It's nice to fire up an old Elm app and be able to make changes immediately.

Not just because of the compiler errors, but also because of its other limitations, like having your effects isolated via `Cmd`s and ports.

Re: TypeScript Seals My Penchant for JavaScript

#112
post #56

Earlier quoted context omitted.

Best thing about JavaScript is the speed of development. Once you master it, all other languages & ecosystems feel verbose, archaic. Modern JS (ES2015+) combined with a code style (Standard, Airbnb) is beautiful, sometimes more so than Python. Bad modules isn't a problem inherent to JS. NPM has its faults, but the JS community is the largest, and the fastest moving of all. Everything you need already exists, and it's…

"Best thing about JavaScript is the speed of development. Once you master it, all other languages & ecosystems feel verbose, archaic." That is pure opinion.

I'm a little skeptical that you have mastery of "all other languages" such as to compare.

Re: TypeScript Seals My Penchant for JavaScript

#113
post #95

Earlier quoted context omitted.

I find it more readable than lambda function syntax personally. And still way nicer than messing around in JavaScript.

Sorry, I edited my comment and you may have missed it. How would you emulate multi-line closures in Python? A free function which you can pass to a higher order function is not a closure. I think you would need to create a functor, and that becomes even more verbose.

What do you mean by closure in this case?

Re: TypeScript Seals My Penchant for JavaScript

#114
post #91

Earlier quoted context omitted.

Stronger typing than clojure? You gotta check out clojure.spec which is built into the language itself.

Ah, I'm not that familiar with Clojure. Is that commonly used? Are there any good examples of complex properties you can capture with its type system?

See for yourself, Stuart Halloway (clojure committer) can explain it much better than me: https://www.youtube.com/watch?v=VNTQ-M_uSo8

Re: TypeScript Seals My Penchant for JavaScript

#115
post #90

Earlier quoted context omitted.

It does not make a difference whether the language is bad or the tool is bad because if in this case npm is a de facto tool for the ecosystem you will have to use it. Same with java: it is not the language which is problematic but the "enterprise" projects which need all kinds of factories/builders/etc which make development incredibly slow.

Oh, I'm sorry, I didn't get the memo that says if you work in Javascript you have to use npm. Did that become mandatory in ES2015 or ES2016? But again, you are blaming the tool for the bad things people do with the tool.

Are you using npm? How many js developers use it around you? 90%? 95%? As I said in my previous comment it does not make difference in the end whether the tool is bad or the language. If I have to use that tool to leverage the good parts of the ecosystem (eg. use all the libraries in nmp) I can either choose not to use it and lose the the advantages of it or choose to use it and have a crap software which is in the hands of a private company and who can take over my packages (even which I have published years ago) without question.

Re: TypeScript Seals My Penchant for JavaScript

#116

Earlier quoted context omitted.

Sorry, I edited my comment and you may have missed it. How would you emulate multi-line closures in Python? A free function which you can pass to a higher order function is not a closure. I think you would need to create a functor, and that becomes even more verbose.

What do you mean by closure in this case?

Closures are functions that can capture values/references visible in the scope where the function is defined/instantiated. They are basically a short hand way of creating function objects, functions which have data members.

Re: TypeScript Seals My Penchant for JavaScript

#117

Earlier quoted context omitted.

Some people like types, other people don't. Some people like indenting with 4 spaces, other like 2. I was a die hard 4 space guy until today, when I was debugging a bunch of 2 space code and decided I like it better.

I have a solution for hardcoded spaces that is sure to blow your mind.

8 charwidth tabs in Go are a sight to behold - what decade is this?

Re: TypeScript Seals My Penchant for JavaScript

#118
post #49

Earlier quoted context omitted.

>* Oh come on, you're not even trying. He means, the type checking and refactoring capabilities that you want to have in a large team that relatively quickly changes composition. I.e. the kinds of teams you often find in enterprises.* I rarely find such large teams in enterprises. What I usually find is ad-hoc projects, some in VB6, some targeting IE6 in 2016 still, others in J2EE with "enterprise" application server…

> the same persons work in the same IT deps for decades... Guess I've found my solution to my persistent angst over the repeated 'old geeks are screwed' stories around here!

Well, of course. Old geeks are screwed on startups and startup-y companies.

The enterprise IT (and the financial sector, major organizations, etc) are the places where old geeks are quite ok -- if not to hire, surely to keep past 40 and 50 when they have already been working for you. The median age in an IT department in a large enterprise is much higher than in any SV startup.

Re: TypeScript Seals My Penchant for JavaScript

#119
post #57
post #38

Earlier quoted context omitted.

"Enterprise-level capabilities" doesn't mean anything still. Google is bigger than most enterprises, and they don't use any "enterprisey" stuff, not even in their Java.

Can people die from code written at Google?

Sure. E.g. flaw in Gmail exposes identities of harassed persons to their ex-spouses, etc.

Re: TypeScript Seals My Penchant for JavaScript

#120
post #110

Earlier quoted context omitted.

Android yes. It's a horrible mess. But I don't understand your point :-)

> they don't use any "enterprisey" stuff, not even in their Java. It doesn't get more enterprisey than that.

Ah right, i misparsed HN's significant whitespace and thought you were responding to me. Agree!
Post reply on HN