MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/whml4h/i_think_she_might_have_javascriptinduced_ptsd/ij7g8j1
r/ProgrammerHumor • u/FrogOfDreams • Aug 06 '22
1.1k comments sorted by
View all comments
Show parent comments
8
You could also use ‘1’ + 2. The first variable is what’s used to define the type coercion in the second.
9 u/Acrobatic_Cod_3563 Aug 06 '22 Thanks, I didn't know that there is yet another reason to hate Javascript 1 u/queen-adreena Aug 06 '22 What would you prefer it to do? 3 u/Acrobatic_Cod_3563 Aug 06 '22 I would prefer the linter/compiler to tell me that concatenating a string with an integer is stupid. 3 u/queen-adreena Aug 06 '22 JavaScript doesn’t require a linter or a compiler to execute. So now what? 1 u/Acrobatic_Cod_3563 Aug 06 '22 JS doesn't require a compiler? Are you sure about that? 2 u/queen-adreena Aug 06 '22 Not as in a build step. The browser engine compiles it. But that’s too late for you to see an error. 2 u/Acrobatic_Cod_3563 Aug 06 '22 Thats the point of my comment, isn't it?I wan't to see my errors before they occure. 2 u/queen-adreena Aug 06 '22 So you only want JavaScript to be allowed to be written in an approved dev suite?I guess it solves the edge case here. Breaks every other Javascript script on the web though… 0 u/Acrobatic_Cod_3563 Aug 06 '22 I want JavaScript to die and be replaced by TypeScript. → More replies (0) 2 u/ironykarl Aug 06 '22 A linter will tell you that -1 u/Acrobatic_Cod_3563 Aug 06 '22 Only if it is configured correctly
9
Thanks, I didn't know that there is yet another reason to hate Javascript
1 u/queen-adreena Aug 06 '22 What would you prefer it to do? 3 u/Acrobatic_Cod_3563 Aug 06 '22 I would prefer the linter/compiler to tell me that concatenating a string with an integer is stupid. 3 u/queen-adreena Aug 06 '22 JavaScript doesn’t require a linter or a compiler to execute. So now what? 1 u/Acrobatic_Cod_3563 Aug 06 '22 JS doesn't require a compiler? Are you sure about that? 2 u/queen-adreena Aug 06 '22 Not as in a build step. The browser engine compiles it. But that’s too late for you to see an error. 2 u/Acrobatic_Cod_3563 Aug 06 '22 Thats the point of my comment, isn't it?I wan't to see my errors before they occure. 2 u/queen-adreena Aug 06 '22 So you only want JavaScript to be allowed to be written in an approved dev suite?I guess it solves the edge case here. Breaks every other Javascript script on the web though… 0 u/Acrobatic_Cod_3563 Aug 06 '22 I want JavaScript to die and be replaced by TypeScript. → More replies (0) 2 u/ironykarl Aug 06 '22 A linter will tell you that -1 u/Acrobatic_Cod_3563 Aug 06 '22 Only if it is configured correctly
1
What would you prefer it to do?
3 u/Acrobatic_Cod_3563 Aug 06 '22 I would prefer the linter/compiler to tell me that concatenating a string with an integer is stupid. 3 u/queen-adreena Aug 06 '22 JavaScript doesn’t require a linter or a compiler to execute. So now what? 1 u/Acrobatic_Cod_3563 Aug 06 '22 JS doesn't require a compiler? Are you sure about that? 2 u/queen-adreena Aug 06 '22 Not as in a build step. The browser engine compiles it. But that’s too late for you to see an error. 2 u/Acrobatic_Cod_3563 Aug 06 '22 Thats the point of my comment, isn't it?I wan't to see my errors before they occure. 2 u/queen-adreena Aug 06 '22 So you only want JavaScript to be allowed to be written in an approved dev suite?I guess it solves the edge case here. Breaks every other Javascript script on the web though… 0 u/Acrobatic_Cod_3563 Aug 06 '22 I want JavaScript to die and be replaced by TypeScript. → More replies (0) 2 u/ironykarl Aug 06 '22 A linter will tell you that -1 u/Acrobatic_Cod_3563 Aug 06 '22 Only if it is configured correctly
3
I would prefer the linter/compiler to tell me that concatenating a string with an integer is stupid.
3 u/queen-adreena Aug 06 '22 JavaScript doesn’t require a linter or a compiler to execute. So now what? 1 u/Acrobatic_Cod_3563 Aug 06 '22 JS doesn't require a compiler? Are you sure about that? 2 u/queen-adreena Aug 06 '22 Not as in a build step. The browser engine compiles it. But that’s too late for you to see an error. 2 u/Acrobatic_Cod_3563 Aug 06 '22 Thats the point of my comment, isn't it?I wan't to see my errors before they occure. 2 u/queen-adreena Aug 06 '22 So you only want JavaScript to be allowed to be written in an approved dev suite?I guess it solves the edge case here. Breaks every other Javascript script on the web though… 0 u/Acrobatic_Cod_3563 Aug 06 '22 I want JavaScript to die and be replaced by TypeScript. → More replies (0) 2 u/ironykarl Aug 06 '22 A linter will tell you that -1 u/Acrobatic_Cod_3563 Aug 06 '22 Only if it is configured correctly
JavaScript doesn’t require a linter or a compiler to execute. So now what?
1 u/Acrobatic_Cod_3563 Aug 06 '22 JS doesn't require a compiler? Are you sure about that? 2 u/queen-adreena Aug 06 '22 Not as in a build step. The browser engine compiles it. But that’s too late for you to see an error. 2 u/Acrobatic_Cod_3563 Aug 06 '22 Thats the point of my comment, isn't it?I wan't to see my errors before they occure. 2 u/queen-adreena Aug 06 '22 So you only want JavaScript to be allowed to be written in an approved dev suite?I guess it solves the edge case here. Breaks every other Javascript script on the web though… 0 u/Acrobatic_Cod_3563 Aug 06 '22 I want JavaScript to die and be replaced by TypeScript. → More replies (0)
JS doesn't require a compiler? Are you sure about that?
2 u/queen-adreena Aug 06 '22 Not as in a build step. The browser engine compiles it. But that’s too late for you to see an error. 2 u/Acrobatic_Cod_3563 Aug 06 '22 Thats the point of my comment, isn't it?I wan't to see my errors before they occure. 2 u/queen-adreena Aug 06 '22 So you only want JavaScript to be allowed to be written in an approved dev suite?I guess it solves the edge case here. Breaks every other Javascript script on the web though… 0 u/Acrobatic_Cod_3563 Aug 06 '22 I want JavaScript to die and be replaced by TypeScript. → More replies (0)
2
Not as in a build step. The browser engine compiles it. But that’s too late for you to see an error.
2 u/Acrobatic_Cod_3563 Aug 06 '22 Thats the point of my comment, isn't it?I wan't to see my errors before they occure. 2 u/queen-adreena Aug 06 '22 So you only want JavaScript to be allowed to be written in an approved dev suite?I guess it solves the edge case here. Breaks every other Javascript script on the web though… 0 u/Acrobatic_Cod_3563 Aug 06 '22 I want JavaScript to die and be replaced by TypeScript. → More replies (0)
Thats the point of my comment, isn't it?I wan't to see my errors before they occure.
2 u/queen-adreena Aug 06 '22 So you only want JavaScript to be allowed to be written in an approved dev suite?I guess it solves the edge case here. Breaks every other Javascript script on the web though… 0 u/Acrobatic_Cod_3563 Aug 06 '22 I want JavaScript to die and be replaced by TypeScript. → More replies (0)
So you only want JavaScript to be allowed to be written in an approved dev suite?
I guess it solves the edge case here. Breaks every other Javascript script on the web though…
0 u/Acrobatic_Cod_3563 Aug 06 '22 I want JavaScript to die and be replaced by TypeScript. → More replies (0)
0
I want JavaScript to die and be replaced by TypeScript.
→ More replies (0)
A linter will tell you that
-1 u/Acrobatic_Cod_3563 Aug 06 '22 Only if it is configured correctly
-1
Only if it is configured correctly
8
u/queen-adreena Aug 06 '22
You could also use ‘1’ + 2. The first variable is what’s used to define the type coercion in the second.