!programming_horror@programming.dev
Welcome to Programming Horror!
This is a place to share strange or terrible code you come across.
For more general memes about programming there's also Programmer Humor.
Looking for mods. If youre interested in moderating the community feel free to dm @Ategon@programming.dev
!programming_horror
@programming.devhttps://hackaday.com/2024/08/07/compiling-four-billion-if-statements/
With modern tools, you have to try very hard to do something stupid, because the tools (rightly) recognize you’re doing something stupid. [Andreas Karlsson] can speak to that first hand as he…
I have no idea how to title this post. Oh well.
A few years back I worked somewhere that had a large breach. Many practices changed in the wake of it. Developers actually had admin access prior to the change which was very nice. In an effort to restrict access but also let folks do their jobs they deployed some tool that would start all programs that "needed" admin access as an admin. This included cmd for the devs. So every time I opened cmd I had to be careful not to break something since there was no way to launch it without admin access after that change.
https://twitter.com/lynxluna/status/1748636246455595478
https://github.com/Fabricio-191/valve-server-query/commits/main/
An implementation of valve protocols (server, master servers and RCON) - Commits · Fabricio-191/valve-server-query
https://github.com/gco/xee/blob/master/XeePhotoshopLoader.m#L108