Logo
Build time: When coffee becomes code.
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Azure Azure
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • 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 357.2K views 1 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

World's Okayest Game Developer Coffee Mug Funny Gift, 11-Ounce White

World's Okayest Game Developer Coffee Mug Funny Gift, 11-Ounce White

Affiliate
$14.95
The future of AI

The future of AI

Javascript
123.2K views 2 years ago
Who on earth would use x-=-1

Who on earth would use x-=-1

Programming
99.9K views 5 years ago