Logo
git commit -m 'Fix bug' --no-verify
  • 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

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

Concurrent-dictionary Memes

Posts tagged with Concurrent-dictionary

The Best Way To Make An Infinite Loop

Csharp Programming Debugging
1 hour ago 32.5K views 0 shares
The Best Way To Make An Infinite Loop
Someone discovered that C#'s ConcurrentDictionary.AddOrUpdate() method is basically a cheat code for infinite loops. Instead of the boring while(true) , they're using a lambda that ignores the key, ignores the current value, and just... keeps updating the same dictionary entry forever. The lambda returns value , which triggers another update, which calls the lambda again, which returns value , which... you get it. The genius part? The IDE shows "No issues found" because technically this is perfectly valid code. It's like telling your compiler "I'm not stuck in an infinite loop, I'm just very enthusiastic about updating this dictionary!" The output window spamming "Hello, World!" is chef's kiss—proof that sometimes the most cursed solutions are also the most creative. Pro tip: Don't actually do this unless you want your code reviewer to question your life choices and your CPU to file a restraining order.

Spotlight

GearScouts.com

Stop scrolling, start exploring! Find the gear that'll get you off the couch and into the wild. Compare power stations for off-grid adventures, flashlights for midnight hikes, and essentials that make the outdoors your playground. Get Outside →

Apple 2025 MacBook Pro Laptop with M5 chip with...

Apple 2025 MacBook Pro Laptop with M5 chip with...
Ad Each purchase helps us pay for the electricity to keep our infinite loops running. ♾️