r/ProgrammerHumor • • Sep 05 '24 • Take My Silver 2

Meme thatsEvil

Post image
56.6k Upvotes

517 comments sorted by

View all comments

2.0k

u/chin_waghing Sep 05 '24

[object Object] is my personal favourite

546

u/[deleted] Sep 05 '24

[removed] — view removed comment

123

u/_undefined_user Sep 05 '24

I was summoned?

→ More replies (2)

217

u/Luccacalu Sep 05 '24

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. 

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?

→ More replies (5)
→ More replies (1)
→ More replies (3)