this post was submitted on 23 Jan 2025
513 points (96.9% liked)

Programmer Humor

32710 readers
547 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 13 points 1 day ago (1 children)

Which control panel? There's like 20 of them and a new worse one gets added every other year.

[–] finitebanjo 5 points 1 day ago* (last edited 1 day ago)

Honestly, the REAL control panel that was default in 7 is great and I wish they hadn't spent the last decade+ trying to cover it up with baby-game aero menus.

As for programming for it, yeah no luck. Microsoft can't even be bothered to document their fucking ASP dot net formdata, much less their actual OS menu system.

[–] [email protected] 10 points 1 day ago

I have no way of verifying this is real, but I wholeheartedly believe it.

[–] [email protected] 2 points 1 day ago

At least control panel is better than "Settings" trying to find shit in that is hell.

[–] sfxrlz 16 points 1 day ago (1 children)

So that’s why they shipped like every past systems’ control windows with every new version. Not for people’s convenience. Because of spaghett

[–] [email protected] 3 points 1 day ago

Nobody toucha my spaghett

[–] [email protected] 12 points 1 day ago

... This seems like standard GUI stuff. The interface component defined by some markup, with a hook to some programmatic behavior, and perhaps a corresponding resource ID

[–] themakara 4 points 1 day ago

I wanna believe that this is fake.

But I expect it is not.

[–] HStone32 54 points 2 days ago (3 children)

I've heard an ex microsoft employee said in a blog once that the windows team has no seniors. Anyone who has worked there for one or two years has left for better employers. Nobody knows how to refactor or maintain old codebases, so instead, they just write new things on top of the old things. The windows kernel has hardly changed since XP.

[–] [email protected] 2 points 1 day ago* (last edited 1 day ago) (1 children)

The windows kernel has hardly changed since XP.

Windows NNT when? Surely from a business/competition perspective they can't let Linux get that many years ahead of them in terms of kernel optimisations?

[–] [email protected] 1 points 1 day ago

thats what happens when short term profit is king I guess

[–] [email protected] 5 points 1 day ago

This sounds 100% credible, based on the outcomes we can see

[–] [email protected] 38 points 2 days ago (1 children)

This makes sense, most of that explanation in the screenshot reeks of novices working with something they don't understand.

[–] essteeyou 17 points 2 days ago (1 children)

Copying and pasting a current example and changing the names... yep.

Instead of making it worse you could extract it to a new file. Make an interface. Write a unit test. Anything.

The guy wonders why the file is 15k lines long and then describes exactly why.

[–] [email protected] 6 points 1 day ago (2 children)

Right? Like my dude, bare minimum at least write down those steps in a text document so you can reference it the next time you have to add something. Bonus points for putting it on some shared internal wiki or whatever Microsoft uses.

load more comments (2 replies)
[–] RichieRich 5 points 1 day ago

OH MY F... GOD! I knew it is witchcraft but I didn't knew that is is so awful!

[–] [email protected] 3 points 1 day ago* (last edited 1 day ago)

I'm now wondering if microsoft still even has the legacy control panel code.

[–] rtxn 148 points 3 days ago (3 children)

...maybe it's better that the Windows source code remain closed.

At the same time, I'd love to see the developers of the world glimpse at that eldritch cognitohazard and collectively go insane.

[–] [email protected] 70 points 2 days ago

Maybe we've been misunderstanding what Closed Source really is this whole time?

It's a codex holding back "eldritch cognitohazard" horrors that the technopriests of Microsoft have captured and tamed into an operating system. Releasing the source would release the beasts into our reality, much like the plot of John Carpenters In the Mouth of Madness.

Well, figured out one good reason for closed source, I guess. Let's not solve this LeMarchand's Box.

load more comments (2 replies)
[–] Supervisor194 83 points 2 days ago* (last edited 2 days ago) (9 children)

I don't think this is legit because even as I was reading it, I was expecting it to sound a lot worse than it ended up sounding. Like, it didn't sound great or anything, but it didn't sound nearly as fucked up as I would expect firsthand descriptions of piled-on legacy code to sound after almost 50 fucking years.

[–] slazer2au 46 points 2 days ago (2 children)

But did you read the last line? This isn't classic control panel, this is the new control panel.

[–] [email protected] 10 points 2 days ago

Sounds like classic junior engineer shit. “Let’s do a big rewrite!” Followed by everything going to shit because they don’t how to create good maintainable software architecture and for whatever reason there weren’t enough senior engineers around to show them the way.

load more comments (1 replies)
[–] [email protected] 9 points 2 days ago (1 children)

Seriously, it doesn’t sound great, but it sounds about what you might expect wiring up a new UI widget in WPF or whatever the latest thing for native Windows is. Sounds like what would happen if you started developing a Windows app using the Microsoft scaffolding and never applied any kind of software architecture beyond that and it just grew and grew into a big ball of mud. Exactly what I would expect given the quality of so many of their frameworks, and I say that as a professional dotnet software engineer.

[–] [email protected] 3 points 1 day ago* (last edited 1 day ago) (1 children)

The complete lack of error reporting in the compiler is a surprise though.

[–] [email protected] 3 points 1 day ago (1 children)

True, that is surprising and makes everything worse. It's probably controlled by a setting that none of those engineers knows how to change, based on the lack of knowledge described here.

[–] [email protected] 1 points 1 day ago* (last edited 1 day ago)

My guess is that a stack trace is being generated, but something further down the chain is consuming it, realizes there's an error, and just throws -1 instead of the stack trace itself.

Something like

try {
    compileThisDamnProgram()
} catch Exception {
    return -1
}
load more comments (7 replies)
[–] [email protected] 31 points 2 days ago (3 children)

pretty much every windows GUI framework is trash or a pain in the ass to deal with except for Avalonia (my beloved), but it's more cross platform.

I'm not sure if this is 100% real but it very well could be. although imo makes me think of skill issue (not because the system makes sense, but these problems don't really seem like problems to me, just minor set backs)

[–] [email protected] 3 points 1 day ago (1 children)

This is why everything is a goddamn web app now.

[–] [email protected] 1 points 1 day ago* (last edited 1 day ago)

well, no. everything is a god damn web app because everything runs browsers.

so why write native (device) applications if the device can run a browser ? just write code for the browser, which also runs on desktop. now you have a cross platform app without needing 5 different teams

load more comments (2 replies)
[–] [email protected] 0 points 1 day ago

Can confirm. I worked as a contract program manager for Microsoft with O365, Azure Gloval Ecosystrm, and yes, the dreaded Windows team. I wakk out out my last two Microsoft jobs in the middle of a shift. I would do it again.

[–] [email protected] 68 points 3 days ago (1 children)

I need more IRC screenshots in my life.

[–] [email protected] 82 points 2 days ago (2 children)

Yes but please OCR them because some of us are on mobile and get 1280 ⅔pixels width in landscape mode

[–] [email protected] 10 points 1 day ago* (last edited 1 day ago) (1 children)
  • receive text over the network

  • render text into pixels

  • mangle pixels through some convoluted Fourier transform to decrease quality

  • run even more complex pattern matching algorithm on mangled pixels to guess text represented

Can we add AI somewhere down that line?

[–] [email protected] 6 points 1 day ago

AI is often used to make the last step produce text that is closer to English. Whether that helps very much depends.

[–] [email protected] 84 points 2 days ago* (last edited 1 day ago) (4 children)

Quick OCR scan with minimal clean up, might help some people Edit: Cleanup work and colour coding thanks to [email protected]

[7:52 18 PM] 🟦 impressive

[7:52:22 PM] 🟩 the windows 10 UI development was the most enormous shitstorm i've seen in a while

[7:52:26 PM] 🟥 how hard is it to move some fucking settings menus

[7:52:30 PM] 🟩 many people have pointed out that the UI is upgraded piecemeal

[7:52:34 PM] 🟩 oh god

[7:52:36 PM] 🟩 you have no idea

[7:52:37 PM] 🟩 it's so hard

[7:52:41 PM] 🟥 whyyyyyyyy

[7:52:43 PM] 🟩 i tried to ADD A DROPDOWN

[7:52.56 PM] 🟩 DO YOU WANT ME TO DESCRIBE IN EXCRUCIATING DETAIL WHAT IT TAKES TO ADD A DROPDOWN TO THE CONTROL PANEL?

[7:53:08 PM] 🟥 I find myself overcome with morbid curiosity

[7:53:09 PM] 🟦 is it like javafx and fxml?

[7:53:14 PM] 🟩 hahahahahahaha

[7:53:15 PM] 🟩 hahahahahahahaha

[7:53:17 PM] 🟩 NO

[7:53:42 PM] 🟥 describe to me what it takes to add a dropdown to the control panel.

[7:53:47 PM] 🟥 grabs a pillow and brown paper bag

[7:54:10 PM] 🟦 control panel or settings?

[7:54:14 PM] 🟪 probably some ancient mayan rites

[7:54:18 PM] 🟪 lots of goats

[7:54:33 PM] 🟦 and registry entries

[7:56:54 PM] 🟩 see, first you find the folder that contains the code files for the control panel, and there will be like, 5 of them, each with something like 2000 lines of code, except for one that had 15000 lines of code and I never found out why. Once you find the C++ code file for the specific subsection of the control panel, you must then find the appropriate XAML file that is matched up to this code file, and then search through it to find another dropdown box element you can copy and paste because no one actually knows how any of this works. Then you have to go into a resource file and find a very specific resource ID for your control panel string, and create a new resource ID to me it to. Then, you must find all the relevont C++ code tying the dropdown you copied, and copy and paste all that code, but this time, modify the hooks sa It gets tied to your new dropdown. Then you have to run through 2 seperate specialized compilers to compile the resource filles, and if ANYTHING GOES WRONG, literally ANYTHING, the ONLY ERROR YOU GET BACK is this:

-1 

So after you run around screaming for a DAY because there is no explanation for what the fuck is going on, you give it to your coworker, who discovers that every single number in the resource file must increase by exactly 1, and if there are any holes in those numbers, everything fails completely. Then you can actually finish compiling the special compiler stuff and start bulding the actual codebase through a specialized plugin built for visual studio for the sole purpose of dealing with this fucking codebase, and then you might actually get something to compile.

[7:57.42 PM] 🟥 WHAT

[7:57:43 PM] 🟥 THE

[7:57:46 PM] 🟥 FUCKING

[7:57:47 PM] 🟥 FUCK

[7:57 59 PM] 🟩 THAT

[7:58:04 PM] 🟩 is how you add a dropdown

[7:58:05 PM] 🟫 >microcucks
==CENSORED==

[7:58:07 PM] 🟩 to the control panel

[7:58:08 PM] 🟩 in windows

[7:58:20 PM] 🟩 and people ask me why I quit that job

[7:58:36 PM] 🟥 how old is this "specialized plugin"

[7:58:39 PM] 🟦 how do they live?

[7:58:46 PM] 🟩 from what i can tell about 7-8 years, i think

[7:58:59 PM] 🟦 do you have to be dead inside to write code for Windows?

[7:59:02 PM] 🟫 Can we just compile this kind of shit into a doc to then send to zefrank so he can do a vid on True Facts About Microsoft

[7:59:04 PM] 🟩 I think it was based even older IDE they were using so it gets complicated

[7:59:14 PM] 🟩>🟦 Yes.

[7:59:22 PM] 🟦 rip

[7:59:36 PM] 🟩 again it is hard for me to even explain how any of htis works, because most people there don't even know how it works

[7:59:39 PM] 🟥 microsoft needs to make like mojang and just haul ass to an entirely new codebase

[7:59:43 PM] 🟦 they're bootstrapping shit on more shit

[7:59:44 PM] 🟥 if mojang can say "fuck the modders"

[7:59:51 PM] 🟥 then microsoft can say "fuck the software devs" just as well.

[7:59:55 PM] 🟩 See, you don't understand, they keep trying and failing miserably

[8:00:02 PM] 🟩 For example, lets take the build system

[8:00:04 PM] 🟨 Isn't the legacy control panel codebase deprecated tho?

[8:00:09 PM] 🟨 Because of Settings.appx

[8:00:21 PM] 🟥 "deprecated" is just a fucking label basically

[8:00:27 PM] 🟥 shit still uh

[8:00:30 PM] 🟩 Yes, that was the new control panel

[8:00:30 PM] 🟥 well it doesn't "work"

[8:00:34 PM] 🟥 and it's not "usable"

[8:00:34 PM] 🟩 that was the "new" codebase

[8:00:35 PM] 🟥 but it's

[8:00:36 PM] 🟨 Oh my

[8:00:37 PM] 🟩 that's why it was in XAML

[8:00:37 PM] 🟦 means "you shouldnt use it but if you do it's all k"

[8:00:38 PM] 🟥 accessible...?

[8:00:45 PM] 🟩 you think i'm describing legacy code here

[8:00:46 PM] 🟩 i'm not

[8:00:53 PM] 🟩 ... this is me trying to add a dropdown to the windows 10 NEW CONTROL PANEL**___**

[–] [email protected] 1 points 1 day ago

Thank you both (@[email protected], @[email protected]) for taking the time to make this post not just more accessible but somewhat more bit-/link-rot-resilient by duplicating the image's info as a text comment.

We don't talk about it as much as authoritarian censorship, ip & copyright related takedowns, and their ilk, but image macros/memes often have regrettably small lifetimes as publicly accessible data in my experience. It might be for any number of reasons, including:

  • because many of them are created on free generator websites that can't afford to store every generated image forever,
  • because people often share screenshots of things instead of a link to it,
  • because for-profit social media websites are increasingly requiring account creation to view previously accessible content,

or (more probably) a combination of all three and more.

In any case as silly as image memes are, they're also an important vector for keeping culture and communities alive (at least here on the fediverse). In 5-10 years, this transcription has a much higher chance of still hanging around in some instance's backups than the image it is transcribing.

P.S.: sure, knowyourmeme is a thing, but they're still only 1 website and ~~I'm not sure if~~ there's not much recent fediverse stuff there ~~yet~~. The mastodon page last updated in 2017 and conflates the software project with the mastodon.social instance (likely through a poor reading of it's first source, a The Verge article that's decent but was written in 2017).

P.P.S.: ideally, OP (@[email protected]) could add this transcription directly to the post's alt text, but I don't know if they use a client that makes that easy for them...

[–] [email protected] 7 points 1 day ago

Good human!

Seriously, though; thank you! Not for my mobile viewing pleasures, but for findability and accessibility!

[–] [email protected] 9 points 1 day ago* (last edited 1 day ago) (1 children)

I cleaned it up a bit and added color. You can replace yours with the following and I'll delete this so that we don't take up so much vertical space.

Edit: done

[–] [email protected] 3 points 1 day ago

Thats great work thank you, ive updated and credited you in my comment

load more comments (1 replies)
[–] [email protected] 56 points 3 days ago

and people complain about wayland.

load more comments
view more: next ›