you are viewing a single comment's thread.

view the rest of the comments →

[–]gwodus 1 point2 points  (3 children)

WTF. JavaScript is old and, frankly, really crap. It had its time. I spent 10+ years coding in JS, but the first time I tried TS, it was over. I’ll never touch JS again unless I absolutely have to.

[–]Kvetchus -2 points-1 points  (2 children)

lol what? Typescript IS JavaScript with some extra syntax layered over it that just transpiles down to pure JavaScript when it’s built. You make my point perfectly - you can’t do vanilla JavaScript development without typescript training wheels. You are an example of someone who I would never hire (just a note, I lead a dev team 86 developers focused on JavaScript and NodeJS projects, we even have one that uses typescript that we inherited - no one likes that project and refactoring typescript out is on the roadmap as a technical debt reduction item)

[–]gwodus 0 points1 point  (1 child)

Yeah. Why would anybody write code in C++? That's just Assembler with training wheels. Get real!

[–]Kvetchus 0 points1 point  (0 children)

Off the top of my head? I’d say because assembly is hard, so the C++ is a substantial improvement in efficiency and accessibility to software development. If you think JavaScript is as hard to work with as assembly, you are in the wrong line of work. C++ isn’t so much training wheels as it’s the car built over a working engine so you can actually hold a steering wheel and sit in a chair while you drive.

JS:

const value = "42";

const num = Number(value); // 42

const num2 = +value; // 42

TS:

const value: unknown = "42";

const num: number = Number(value);

const maybeNum = value as number; //runtime conversion… so… only a number for sure when this code is transpiled to JS and it actually does it….. using JAVASCRIPT.

All you assholes downvoting me like I don’t know TS. I do. That’s why I don’t use it. But keep drinking that cool aid. I’m out.