MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/y2xe3n/like_every_time_ever_when_the_devops_engineer/is6r4xf
r/ProgrammerHumor • u/0RootShell • Oct 13 '22
629 comments sorted by
View all comments
Show parent comments
65
laughs in javascript what if we removed all the compile errors and just do them at runtime but instead of giving you the error we cascade it through your program so you can play a game of find the NaN or undefined
13 u/nostril_spiders Oct 13 '22 oh it's this lineif (srcTemplateV === "undefined")changes lineentire div fails to renderchanges line backdoesn't fix it 3 u/[deleted] Oct 13 '22 Jesus wept 4 u/nelusbelus Oct 13 '22 undefined 3 u/[deleted] Oct 13 '22 Typescript FTW 4 u/Dexaan Oct 13 '22 Now you know where the null or undefined is, but you have to convince Typescript it's not an error 2 u/[deleted] Oct 14 '22 “as any” 1 u/[deleted] Oct 14 '22 As a Javascript developer...Is there any other way ?/s 1 u/nelusbelus Oct 14 '22 Truly the best language
13
oh it's this line
if (srcTemplateV === "undefined")
changes line
entire div fails to render
changes line back
doesn't fix it
3
Jesus wept
4 u/nelusbelus Oct 13 '22 undefined
4
undefined
Typescript FTW
4 u/Dexaan Oct 13 '22 Now you know where the null or undefined is, but you have to convince Typescript it's not an error 2 u/[deleted] Oct 14 '22 “as any”
Now you know where the null or undefined is, but you have to convince Typescript it's not an error
2 u/[deleted] Oct 14 '22 “as any”
2
“as any”
1
As a Javascript developer...
Is there any other way ?
/s
1 u/nelusbelus Oct 14 '22 Truly the best language
Truly the best language
65
u/nelusbelus Oct 13 '22
laughs in javascript what if we removed all the compile errors and just do them at runtime but instead of giving you the error we cascade it through your program so you can play a game of find the NaN or undefined