1
27

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.

2
51
Average CSS (lemm.ee)

cross-posted from: https://lemm.ee/post/36467447

I am not allowed to credit the site that has this disaster. Its owner said "Nobody should see that"

3
12
code golfing hurrah (kbin.melroy.org)
4
17
C++23 has fixed space! (kbin.melroy.org)
submitted 3 months ago* (last edited 3 months ago) by Aatube@kbin.melroy.org to c/programming_horror@programming.dev
5
2
float as table id (twitter.com)
submitted 5 months ago* (last edited 5 months ago) by drsensor@programming.dev to c/programming_horror@programming.dev

6
43

I was looking through various RCON tools and found this. Someone does not like commit messages.

7
7
submitted 5 months ago* (last edited 5 months ago) by stale_cheetos@sh.itjust.works to c/programming_horror@programming.dev

For those unfamiliar with JS: subValue (the first argument in the forEach callback) is the value contained at arr[index].

8
72
submitted 5 months ago* (last edited 5 months ago) by blotz@lemmy.world to c/programming_horror@programming.dev
// At this point, I'd like to take a moment to speak to you about the Adobe PSD 
// PSD is not a good format. PSD is not even a bad format. Calling it such would be an
// insult to other bad formats, such as PCX or JPEG. No, PSD is an abysmal format. Having
// worked on this code for several weeks now, my hate for PSD has grown to a raging fire
// that burns with the fierce passion of a million suns.
// If there are two different ways of doing something, PSD will do both, in different
// places. It will then make up three more ways no sane human would think of, and do those
// too. PSD makes inconsistency an art form. Why, for instance, did it suddenly decide
// that *these* particular chunks should be aligned to four bytes, and that this alignement
// should *not* be included in the size? Other chunks in other places are either unaligned,
// or aligned with the alignment included in the size. Here, though, it is not included.
// Either one of these three behaviours would be fine. A sane format would pick one. PSD,
// of course, uses all three, and more.
// Trying to get data out of a PSD file is like trying to find something in the attic of
// your eccentric old uncle who died in a freak freshwater shark attack on his 58th
// birthday. That last detail may not be important for the purposes of the simile, but
// at this point I am spending a lot of time imagining amusing fates for the people
// responsible for this Rube Goldberg of a file format.
// Earlier, I tried to get a hold of the latest specs for the PSD file format. To do this,
// I had to apply to them for permission to apply to them to have them consider sending
// me this sacred tome. This would have involved faxing them a copy of some document or
// other, probably signed in blood. I can only imagine that they make this process so
// difficult because they are intensely ashamed of having created this abomination. I
// was naturally not gullible enough to go through with this procedure, but if I had done
// so, I would have printed out every single page of the spec, and set them all on fire.
// Were it within my power, I would gather every single copy of those specs, and launch
// them on a spaceship directly into the sun.
//
// PSD is not my favourite file format.
9
63

Jesus Christ, just add an if statement for even or odd!

10
65
11
195
submitted 7 months ago* (last edited 7 months ago) by andioop@programming.dev to c/programming_horror@programming.dev
12
92
13
91
14
81

what do i do in this position ?

15
52
submitted 10 months ago* (last edited 10 months ago) by akash_rawal@lemmy.world to c/programming_horror@programming.dev
16
19
17
18
18
3
19
45
20
26
21
17
Very useful filtering (programming.dev)
22
24

no words

23
19
24
27
25
8
UI from hell (lemmygrad.ml)

This is more UX horror than programming horror, but this seems like the right community for this. I had to help make this shit.

There was a list of bank transactions that you could scroll through, and you could expand a transaction and change some of its details. If you change its category, a list of checkboxes will show up for applying the category change to other transactions that are similar. This list also was scrollable. There was a scrollable list inside a scrollable list. Neither of these scrollable lists had a scrollbar.

The button on the expanded transaction for saving the changes triggered not one, not two, but three API calls. Everything’s peachy if all the calls succeed or they all fail, but what do you show the user if it some fail and some succeed? Who the fuck knows.

view more: next ›

Programming Horror

1634 readers
1 users here now

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

Rules

Credits

founded 1 year ago
MODERATORS