MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1bjjkm6/arejsdevsactuallysane/kvs8b80/
r/ProgrammerHumor • u/jarulsamy • Mar 20 '24
554 comments sorted by
View all comments
Show parent comment
19
The issue is that en object when cast to string would produce a descriptive string such as "[Object object]" which would only make sense inside a printing / logging / debugging function.
1 u/[deleted] Mar 21 '24 The issue is you are not checking for data types on runtime 1 u/Terewawa Mar 22 '24 Data type checking at runtime is a lousy practice.If you want to enforce data types use Typescript.
1
The issue is you are not checking for data types on runtime
1 u/Terewawa Mar 22 '24 Data type checking at runtime is a lousy practice.If you want to enforce data types use Typescript.
Data type checking at runtime is a lousy practice.If you want to enforce data types use Typescript.
View all comments
Show parent comment
19
u/Terewawa Mar 20 '24
The issue is that en object when cast to string would produce a descriptive string such as "[Object object]" which would only make sense inside a printing / logging / debugging function.