洪 民憙 (Hong Minhee) :nonbinary:'s avatar
洪 民憙 (Hong Minhee) :nonbinary:

@hongminhee@hollo.social

Is anyone still sticking to instead of using ? If so, why are you sticking with it? Please let me know your reasons!

Radomír Žemlička's avatar
Radomír Žemlička

@Razemix@mamutovo.cz · Reply to 洪 民憙 (Hong Minhee) :nonbinary:'s post

@hongminhee For simple prototypes or small projects, where transpilation would be an unnecessary hassle (think single HTML file and JS with no or minimal dependencies), yeah. But for anything larger, TypeScript is the way to go. I cannot imagine maintaining a large project in pure JS.

gosha's avatar
gosha

@gosha@merveilles.town · Reply to 洪 民憙 (Hong Minhee) :nonbinary:'s post

@hongminhee I think Basecamp (and by extension, the Ruby on Rails defaults) have switched from TS back to JS a couple of years back. If I remember correctly, the rationale was that in their usecase (~lightweight UI on top of a Rails backend), types added more complexity than they solved problems.

marius's avatar
marius

@mariusor@metalhead.club · Reply to 洪 民憙 (Hong Minhee) :nonbinary:'s post

@hongminhee I don't want another tool that needs to be added to the build pipeline.

I would perhaps change my mind if there was a typescript compiler that can be used using the default go tooling.

Abhinav 🌏's avatar
Abhinav 🌏

@abnv@fantastic.earth · Reply to 洪 民憙 (Hong Minhee) :nonbinary:'s post

@hongminhee JavaScript is easier to generate than TypeScript (for compiler backends).

sarah tonin :wlfBlep:'s avatar
sarah tonin :wlfBlep:

@SRAZKVT@tech.lgbt · Reply to 洪 民憙 (Hong Minhee) :nonbinary:'s post

@hongminhee i don't feel like having a dependance on microsoft, they have already time and time again shown themselves untrustworthy for me. if there were multiple implementations and design was seperated, i would use it, but until then, it's a no for me

Evan Prodromou's avatar
Evan Prodromou

@evan@cosocial.ca · Reply to 洪 民憙 (Hong Minhee) :nonbinary:'s post

@hongminhee I don't like having to mess with extra build steps. I like typescript but not enough to justify the hassle.

Instead, I use asserts at the beginning of methods to check argument values and types, and sometimes for return values.

Along with good test coverage, I feel like this gives me some of the benefits of type declarations.

洪 民憙 (Hong Minhee) :nonbinary:'s avatar
洪 民憙 (Hong Minhee) :nonbinary:

@hongminhee@hollo.social · Reply to 洪 民憙 (Hong Minhee) :nonbinary:'s post

FYI, the latest Node.js can run TypeScript code directly without a build process using the node script.ts command.

500 Internal Server Error's avatar
500 Internal Server Error

@bootlegrydia@treehouse.systems · Reply to 洪 民憙 (Hong Minhee) :nonbinary:'s post

@hongminhee only some legacy jquery stuff which no one bothers to migrate to modern web frameworks but still being provided to clients

Boyd Stephen Smith Jr.'s avatar
Boyd Stephen Smith Jr.

@BoydStephenSmithJr@hachyderm.io · Reply to 洪 民憙 (Hong Minhee) :nonbinary:'s post

@hongminhee I still write JS because it has a specification. When I adventure into implementation-defined languages for the browser, I use

I had great hopes for TypeScript when they were still maintaining the specification, but I dropped it once their solution to implementation drifting from specification was to retire the specification.

---

Also, I come from the camp that the only real type system is a static type system, like Pierce in "Types and Programming Languages".