this post was submitted on 14 Nov 2023
812 points (94.7% liked)

Programmer Humor

32000 readers
675 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Presi300 -3 points 10 months ago (11 children)

As someone who is relatively new to webdev stuff, I gotta ask... what is the point of typescript? Like, is it faster than JS, does it have more functions or smth? To me it just looks like JS with extra steps and a really, REALLY cursed way to declare variables.

[–] [email protected] 5 points 10 months ago (4 children)

No, it is slower than JS but it can be compiled to JS. The point of typescript is bringing static (or generally talking, predictable) types to variables, so that treating erroneously a number as a string should be more difficult. In a large codebase, it's easy to make mistakes and debugging is not instantaneous but it needs time. Typescript helps here. You write more code but it helps you out later

[–] Presi300 -4 points 10 months ago (2 children)

TS syntax is still the most cursed thing I've ever seen

[–] stinodes 9 points 10 months ago (1 children)

Then it just sounds like you've not written any typed languages yet

[–] Presi300 2 points 10 months ago

I have some knowledge on C# and I've used C++ before... I really like C# (Ik it's not technically fully statically typed but it gets the point across), ASP.net just has too many hoops to jump through just to get a project started, it's kinda annoying.

load more comments (1 replies)
load more comments (7 replies)