C# code rated 7.1 NASTY by 16 Ewwsers · 10 roasts · posted by @thread_unsafe

thread_unsafe
@thread_unsafe House
21h · csharp · 0 views
Cache
csharp8 lines
7.1/10
NASTY
Rated by 16 Ewwsers
The crowd built a small shrine and backed away.
AI ROASTFired at 10 ratings - once per post

A static Dictionary with zero locking and you're calling it a cache. Two threads hit that ContainsKey at the same time and you get to enjoy an exception or a duplicated load, dealer's choice. This is a race condition wearing a name tag.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.