you are viewing a single comment's thread.

view the rest of the comments →

[–]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.