this post was submitted on 07 Oct 2025
170 points (91.3% liked)

Programmer Humor

26827 readers
2400 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] CrackedLinuxISO@lemmy.dbzer0.com 27 points 4 days ago* (last edited 4 days ago) (2 children)

Gary should learn about Lazy and stop reinventing the wheel.

I put blame on any of his senior coworkers who didn't use this as a teaching opportunity during PR.

[–] dax@feddit.org 7 points 4 days ago

Or just services.AddSingleton<X>. There's plenty to criticize in C#, or any language, but this ain't it. Most of the new language features just make the code shorter without loosing clarity. Really liking newer C# versions.

[–] GreenMartian@lemmy.dbzer0.com 6 points 4 days ago

Also, Lazy is thread safe. Gary's code is not.