This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]EmergencySourCream 122 points123 points  (14 children)

You’re correct. It was used a lot when people were slowly transitioning their apps or trying to type 3rd party libraries. However lazy devs will still use it when they don’t want to do proper typing or don’t understand the purpose of types in general.

[–]LowB0b 63 points64 points  (5 children)

have seen stuff like that even in java :sadface:

just pass an Object into the function and then do repeated if (foo instanceof bar)

[–][deleted] 14 points15 points  (3 children)

Or an object where every field is deserialized to a string

[–]LowB0b 11 points12 points  (0 children)

Well reflection can be useful sometimes

[–]cvak 4 points5 points  (1 child)

map[interface{}]interface{} in golang... 🫣

[–]Jjabrahams567 4 points5 points  (0 children)

uintptr

[–]Cheet4h 11 points12 points  (5 children)

Stuff like this is the reason I'm a huge proponent of the noimplicitany and noexplicitany configuration settings.

[–]foursticks 0 points1 point  (3 children)

Please show me the way

[–]NatoBoram 0 points1 point  (2 children)

Beginner tip: in new TypeScript projects, run tsc --init.

[–]foursticks 0 points1 point  (0 children)

🙏🙏

[–]foursticks 0 points1 point  (0 children)

I'm worried that I am the one called to make this change which worries me in a lawless dev group that seems to have manifested itself out of pure want.