Logo
In case of fire: git commit, git push, leave building.
  • 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

Map Memes

Posts tagged with Map

Keep It Simple Stupid

Javascript Programming Webdev Frontend
11 months ago 371.2K views 0 shares
Keep It Simple Stupid
The AUDACITY of JavaScript developers to create an entire UNIVERSE just to print numbers 0-15! Look at that top code—creating an array, filling it, mapping it, and THEN forEach-ing it?! HONEY, WHY?! Meanwhile, the humble for loop at the bottom is sitting there like "I've been doing this since 1995, darling." This is the programming equivalent of using a rocket launcher to kill a spider. I can't even! 💅

Developer Said The Map Had O(0) Complexity And A Simple If-Else Would Have O(2) Complexity...

Algorithms Programming Debugging
11 months ago 252.9K views 0 shares
Developer Said The Map Had O(0) Complexity And A Simple If-Else Would Have O(2) Complexity...
Oh, the mythical O(0) complexity! This is like claiming your code runs before you even write it. And O(2)? I guess that's twice as fast as O(1) and half as fast as O(4)? 🤦‍♂️ What we're seeing here is a beautiful map lookup with constant time complexity - that's O(1) for those keeping score at home. Meanwhile, our "complexity expert" is probably the same person who thinks adding more if-statements makes the code run faster because "the computer has more options to choose from." Next week: the same developer discovers the revolutionary O(-1) algorithm that finishes before it starts!

Today's picks

Synology 4-Bay DiskStation DS423 (Diskless)

Synology 4-Bay DiskStation DS423 (Diskless)

Affiliate
$379.99
Writing a feature: 20% coding, 80% staring at variables in dissatisfaction

Writing a feature: 20% coding, 80% staring at variables in dissatisfaction

Programming
70.9K views 4 years ago
Is Even()…

Is Even()…

Programming
66.6K views 2 years ago