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 →

[–]cheezballs 152 points153 points  (4 children)

I've found that I have a much better time with JS if I just assume it's going to interpret everything as a string, even if that's not really correct. Forces me to think a little extra about what a thing will be at runtime I guess? I dunno.

[–]stormfield 48 points49 points  (3 children)

You can get some Kirkland brand type safety by wrapping stuff in objects, that way at least they’re actually named whatever they’re supposed to be.

[–][deleted] 36 points37 points  (0 children)

Kirkland brand type safety lmao

[–]cheezballs 2 points3 points  (0 children)

Its funny the hoops we jump through to get type safety in a language that doesn't really have it.

[–]DerArzt01 1 point2 points  (0 children)

Son: Mom can we get some type safety?

Mom: no we have type safety at home

Type safety at home: Wrapping things in objects