335
submitted 2 years ago* (last edited 2 years ago) by AlmightySnoo@lemmy.world to c/programmerhumor@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] thatwill@lemmy.world 13 points 2 years ago

If you're trying to directly compare different variable types in any language without strong typing, you're going to have edge-case results which you might not expect.

My "coding like a moron" message still stands. PHP isn't a strongly typed language and it doesn't tell you off for trying stupid stuff like comparing a string with an int. Nor do other languages like JavaScript.

[-] kimpilled@infosec.pub 4 points 2 years ago

Also using duck typing fails against php is pretty funny when it’s being compared against JAVASCRIPT of all things.

this post was submitted on 14 Jul 2023
335 points (91.0% liked)

Programmer Humor

37265 readers
37 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS