Jimbabwe

joined 2 years ago
MODERATOR OF
[–] Jimbabwe@lemmy.ml 2 points 2 years ago (3 children)

Typescript is Javascript with extra rules added to keep you, the developer, honest and explicit. The main way it does this is by enforcing types. This is a whole subject in and of itself, so here’s a lazy hand-wavy example from an internet stranger:

// regular js You, the developer: “hey js compiler, I’m gonna make a new array” JS compiler: “Cool, dude!” You: “Now please push ‘cat’, 5, NaN, and Date.new() onto the array” JS compiler: “No problem my guy (or girl)! You probably know what you’re doing!”

// typescript You, the developer: “hey js compiler, I’m gonna make a new array” Typescript: WHAT. THE. FUCK. Just like that?? An array of what, exactly?! Do you even know?? You’re grounded, mister. Don’t ever try to pull that shit again. The FUCKING nerve.”

Basically you and the compiler are co-parenting a removed js baby and you can pick between deadbeat dad or helicopter Karen mom.

[–] Jimbabwe@lemmy.ml 2 points 2 years ago (2 children)

This article is 2 years old

[–] Jimbabwe@lemmy.ml 31 points 2 years ago (2 children)

This reads like it was written by an AI trained exclusively on Indian call center telemarketers

[–] Jimbabwe@lemmy.ml 7 points 2 years ago

Traitors get hanged.

[–] Jimbabwe@lemmy.ml 9 points 2 years ago

Hey buddy, I paid $10k for this black market prepuce and not you, my ex-wife, my estranged children, my former employer or the judge who presided over the divorce are going to convince me it didn’t belong to Jesus Christ, okay?!

view more: ‹ prev next ›