Logo
There are 10 types of people in this world. Those who understand binary and those who don't.
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • Csharp Csharp
  • All Categories
As an Amazon Associate ProgrammerHumor.io earns from qualifying purchases.

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

Boolean conversion Memes

Posts tagged with Boolean conversion

Is There A Better Way To Do This

Javascript Programming Debugging Typescript
1 year ago 254.0K views 0 shares
Is There A Better Way To Do This
Ah, the classic "let me check every possible capitalization pattern" approach! This developer is manually checking for true , True , TRue , TRUe and then the same for false variants instead of just using toLowerCase() once and comparing to a standard value. The function even returns maybe if neither pattern matches, which is both hilarious and terrifying for Boolean logic. Somewhere, a computer science professor is feeling a disturbance in the force. This is the kind of code that makes code reviewers develop eye twitches and start muttering "string.toLowerCase() === 'true'" in their sleep.

Today's picks

AI Vs Legacy

AI Vs Legacy

Programming
568.0K views 29 days ago
VSDINSIDE Macro Pad, Streaming Deck Stream Controller Soundboard Keypad, Programmable Keys USB Shortcut Keyboard for Gamer Streamer, Audio Mixer for OBS, YouTube, Office Desk Setup, PC, Mac

VSDINSIDE Macro Pad, Streaming Deck Stream Controller Soundboard Keypad, Programmable Keys USB Shortcut Keyboard for Gamer Streamer, Audio Mixer for OBS, YouTube, Office Desk Setup, PC, Mac

Affiliate
$109.99
Refactoring: The Art Of Making Simple Things Complicated

Refactoring: The Art Of Making Simple Things Complicated

Programming
252.1K views 10 months ago