MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1f9kdoc/thatsevil/llmc3vy
r/ProgrammerHumor • u/[deleted] • Sep 05 '24 • 2
517 comments sorted by
View all comments
2.0k
[object Object] is my personal favourite
[object Object]
546 u/[deleted] Sep 05 '24 [removed] โ view removed comment 123 u/_undefined_user Sep 05 '24 I was summoned? 217 u/Luccacalu Sep 05 '24 I hate this I hate this I hate thisEverytime I see [object Object] on my log I lose a day of life 34 u/Unknown6656 Sep 06 '24 On one hand I pity you.On the other hand, you deserve that when using weakly-typed programming languages. 7 u/CatProgrammer Sep 06 '24 The real issue is not having a good default string representation for objects. Or not erroring out when it does not exist so you at least get a stack trace.ย 30 u/DesignStrategistMD Sep 05 '24 ๏ฟผ is actually way more difficult to debug 97 u/No-Bit7559 Sep 05 '24 [Object object] ๐ค๐ 263 u/antonw51 Sep 05 '24 edited Sep 05 '24 JavaScript objects turned to strings using .toString() are '[object Object]', not '[Object object]'Edit: On second thought, is that supposed to be a joke? I'm not sure. 6 u/theneedfortheseed Sep 05 '24 Roger, roger. or roger, Roger? 21 u/No-Bit7559 Sep 05 '24 oh well, you learn something everyday! Thanks for pointing out. 61 u/louis_A12 Sep 05 '24 Why would you try to correct it in the first place? 4 u/chin_waghing Sep 05 '24 Honestly? I have no clue. I always use [object Object] 1 u/minislel Sep 05 '24 ๐คโ๏ธ 4 u/Laundry_Hamper Sep 05 '24 ย ย ๐๐คโ๏ธ 1 u/the_ultimatenerd Sep 05 '24 why correct it if youโre going to be wrong? 1 u/Corporate-Shill406 Sep 05 '24 Serves you right for running Node.JS on the backend for form submission when like 10 lines of PHP works fine
546
[removed] โ view removed comment
123 u/_undefined_user Sep 05 '24 I was summoned?
123
I was summoned?
217
I hate this I hate this I hate this
Everytime I see [object Object] on my log I lose a day of life
34 u/Unknown6656 Sep 06 '24 On one hand I pity you.On the other hand, you deserve that when using weakly-typed programming languages. 7 u/CatProgrammer Sep 06 '24 The real issue is not having a good default string representation for objects. Or not erroring out when it does not exist so you at least get a stack trace.ย
34
On one hand I pity you.
On the other hand, you deserve that when using weakly-typed programming languages.
7 u/CatProgrammer Sep 06 '24 The real issue is not having a good default string representation for objects. Or not erroring out when it does not exist so you at least get a stack trace.ย
7
The real issue is not having a good default string representation for objects. Or not erroring out when it does not exist so you at least get a stack trace.ย
30
๏ฟผ is actually way more difficult to debug
97
[Object object] ๐ค๐
263 u/antonw51 Sep 05 '24 edited Sep 05 '24 JavaScript objects turned to strings using .toString() are '[object Object]', not '[Object object]'Edit: On second thought, is that supposed to be a joke? I'm not sure. 6 u/theneedfortheseed Sep 05 '24 Roger, roger. or roger, Roger? 21 u/No-Bit7559 Sep 05 '24 oh well, you learn something everyday! Thanks for pointing out. 61 u/louis_A12 Sep 05 '24 Why would you try to correct it in the first place? 4 u/chin_waghing Sep 05 '24 Honestly? I have no clue. I always use [object Object] 1 u/minislel Sep 05 '24 ๐คโ๏ธ 4 u/Laundry_Hamper Sep 05 '24 ย ย ๐๐คโ๏ธ 1 u/the_ultimatenerd Sep 05 '24 why correct it if youโre going to be wrong?
263
JavaScript objects turned to strings using .toString() are '[object Object]', not '[Object object]'
.toString()
'[object Object]'
'[Object object]'
Edit: On second thought, is that supposed to be a joke? I'm not sure.
6 u/theneedfortheseed Sep 05 '24 Roger, roger. or roger, Roger? 21 u/No-Bit7559 Sep 05 '24 oh well, you learn something everyday! Thanks for pointing out. 61 u/louis_A12 Sep 05 '24 Why would you try to correct it in the first place? 4 u/chin_waghing Sep 05 '24 Honestly? I have no clue. I always use [object Object] 1 u/minislel Sep 05 '24 ๐คโ๏ธ 4 u/Laundry_Hamper Sep 05 '24 ย ย ๐๐คโ๏ธ
6
Roger, roger. or roger, Roger?
21
oh well, you learn something everyday! Thanks for pointing out.
61 u/louis_A12 Sep 05 '24 Why would you try to correct it in the first place?
61
Why would you try to correct it in the first place?
4
Honestly? I have no clue. I always use [object Object]
1
๐คโ๏ธ
4 u/Laundry_Hamper Sep 05 '24 ย ย ๐๐คโ๏ธ
ย ย ๐๐คโ๏ธ
why correct it if youโre going to be wrong?
Serves you right for running Node.JS on the backend for form submission when like 10 lines of PHP works fine
2.0k
u/chin_waghing Sep 05 '24
[object Object]is my personal favourite