Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Does anyone still write plain JS?

Oh yeah. JSDoc for type docs has saved me a ton of time fighting with Typescript. I also just think TS is ugly and verbose and personally don’t care for using it.

With FE JS I am usually using types to define the params/returns of functions, or defining the shape of an object to avoid unexpected undefineds.

With JSDoc you get IDE diagnostics for your types when defined without having to appease TS’ particular rules.

For your answer I genuinely suggest running through the intro docs for a few of them to see what clicks.

Vue is alright. React is okay.

If you’re keen to learn a new language and/or have Lisp experience, ClojureScript and re-frame are a pleasure to work with



Then you will write a ton of unit tests, read them and realize: "all these type checks are exactly what TypeScript is doing".




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: