this post was submitted on 25 Jan 2025
1466 points (99.1% liked)

Programmer Humor

20188 readers
1709 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] ivn@jlai.lu 5 points 4 days ago (1 children)

I've never seen the !0 and !1, it is dumb and indicates either young or terrible devs.

Boolean(window.chrome) is the best, !!window.chrome is good, no need to test if it's equal to true if you make it a boolean beforehand.

[โ€“] RedStrider@lemmy.world 1 points 10 hours ago

i just added the === true for clarity