Logo
Perl: Write-only programming language.
  • 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

Anymatch Memes

Posts tagged with Anymatch

Validate Huang Statements

Java
6 hours ago 15.7K views 0 shares
Validate Huang Statements
Senator asks for a boolean. Witness returns a paragraph that starts with "in the context of." That's not a bool, that's a String with a lawyer attached. The Java fix is thorough. It builds an immutable map of five statements, streams the values, and uses anyMatch to see if any of them is true. Two are, so the method returns true . Whether that's the right answer depends on whether you think "one of his statements was true" means "bullshit." The method name says yes. The logic is a bit of a stretch. Also, Map.of with hardcoded keys "a" through "e" is the most honest part. Nobody has ever named a variable well while they were angry. And return true would have done the same job with far less ceremony.

Today's picks

fanxiang SSD Enclosure, M.2 NVMe PCIe to USB C Adapter/Reader, USB 3.2 Gen 2 (10 Gbps), Solid State Drive External Enclosure for 2230 NVMe SSDs, Supports M and B&M Keys, MP88

fanxiang SSD Enclosure, M.2 NVMe PCIe to USB C Adapter/Reader, USB 3.2 Gen 2 (10 Gbps), Solid State Drive External Enclosure for 2230 NVMe SSDs, Supports M and B&M Keys, MP88

Affiliate
$17.99
ChatGPT will replace every dev

ChatGPT will replace every dev

Programming
107.5K views 2 years ago
Do you even spaghet?

Do you even spaghet?

Programming
100.2K views 2 years ago