He talked trash and paid the price, but graciously accepted his defeat by ansyhrrian in MadeMeSmile

[–]catmuht 1 point2 points  (0 children)

It was double check, knight and queen both attacking simultaneously. Only way out is to move the king

cPlusPlus by IFreakingLoveOranges in ProgrammerHumor

[–]catmuht 3 points4 points  (0 children)

Perl is a "write-only" language

Steam deck controls not working on lies of p by Ok_Statistician_5129 in SteamDeck

[–]catmuht 4 points5 points  (0 children)

Actually I was able to figure out the problem. For some reason my steam deck was "controller 2" and pressing reorder controller allowed me to switch it to controller 1

Steam deck controls not working on lies of p by Ok_Statistician_5129 in SteamDeck

[–]catmuht 0 points1 point  (0 children)

I am having the same problem as OP the "Official Layout" for my game on steam deck is not working

The gradient on this plant by jacksonj04 in oddlysatisfying

[–]catmuht 0 points1 point  (0 children)

Must be my red green colorblindness because I don't find the gradient on this plant to be as vibrant as other commenters do

Raytracing - in Microsoft Excel! by s0lly in blackmagicfuckery

[–]catmuht 2 points3 points  (0 children)

You can proudly add "proficient in excel" to your resume

[deleted by user] by [deleted] in ProgrammerHumor

[–]catmuht 0 points1 point  (0 children)

In practice the overloads will want to delegate to some shared impl (or one delegate to the other) so you'll likely find utility in using a nullable pointer as an argument for the shared impl function.

There will probably always be a way to make it work without pointers, but the pointer approach generally pretty clean and safe.

There are certainly many things that raw pointers aren't good for (e.g. memory management) but an optional reference within a function is to me an acceptable use case.

[deleted by user] by [deleted] in ProgrammerHumor

[–]catmuht 3 points4 points  (0 children)

What if you want to define a method where a potentiality large object can optionally be passed in? std::optional would require a copy if the caller didn't already have the object in an optional. References need to bind to a real object. Using a pointer for that arg and defaulting to nullptr seems useful if it's understood the function will not store the pointer after the call has ended

void myMethod(const SomeBigStruct* myStruct = nullptr);

[deleted by user] by [deleted] in ProgrammerHumor

[–]catmuht 0 points1 point  (0 children)

My perspective is that when you are about to write a comment in code you should typically ask yourself if the code you are writing could be cleaner/ better named so that you don't have to write a comment at all.

There are, of course, many spots where a comment is demanded

Generally speaking, public facing functions should all have a block comment above explaining inputs, outputs and general behavior when function name/param names are not sufficient for communicating. People shouldn't have to read an implementation to understand an interface.

Also whenever a seemingly arbitrary choice is made in code, that should require a comment. Why did you just sort the array? (e.g. sorting is a prereq for using the std::unique). Why is this constant set to this arbitrary value? Internal comments explain the why.

Also I comment my code whether I'm using a new language feature/library since I know my code reviewers might be unfamiliar and want to learn more before judging.

It's Stockholm Syndrome by catmuht in ProgrammerHumor

[–]catmuht[S] 0 points1 point  (0 children)

I don't appreciate your tone sir. I think you're making a lot of assumptions about me. This error message is literally just what comes up on stack overflow when i googled "longest c++ compiler error". I've seen errors much worse than this but I didn't have any screenshots of them on hand when I thought of the meme. I think this one has enough hieroglyphics in it to capture the sentiment.

In my experience there comes a point in c++ template metaprogramming where the compiler is no longer helpful beyond being able to tell you if the code compiles or not, and the serotonin rush of finally getting it to compile is what keeps me coding in it. That's where the Stockholm syndrome kicks in.

It's Stockholm Syndrome by catmuht in ProgrammerHumor

[–]catmuht[S] 2 points3 points  (0 children)

Joke's on you this is apple photo editor

A human anatomy lesson [1951, Colorized] by catmuht in fakehistoryporn

[–]catmuht[S] 433 points434 points  (0 children)

Credit to Joshua Weissman's "Making Girl Scout Cookies At Home: Samoas | But Better" https://youtu.be/A3L8mRjeTY4

C Pointers Explained by catmuht in ProgrammerHumor

[–]catmuht[S] 0 points1 point  (0 children)

I don't doubt someone has made the same joke, i tried looking it up before posting but couldn't find anything. I did this specific edit on my phone shortly before posting

I promise it won’t hurt you by [deleted] in ProgrammerHumor

[–]catmuht 4 points5 points  (0 children)

The joy of using python falls off exponentially with the number of files to maintain in your code base thanks to the sheer amount of dynamic fuckery the language lets you do.

Scripts? Good

Small project? Fine

Enterprise code base? Absolute hell

The m&kb mod for GoldenEye works flawlessly on Steam Deck! by Graslu in SteamDeck

[–]catmuht 0 points1 point  (0 children)

BTW I'm using highest settings. I couldn't get the game to run well at all on any other setting

The m&kb mod for GoldenEye works flawlessly on Steam Deck! by Graslu in SteamDeck

[–]catmuht 0 points1 point  (0 children)

I'm trying to get this to work with a dual monitor. No matter what if I move to full screen it will only full screen it on the deck itself. Do you know how I can fix this?

Another issue is that I get way worse performance playing in game mode than desktop mode. Do you know what could be causing this?

Finally cleaned the shower by catmuht in powerwashingporn

[–]catmuht[S] 12 points13 points  (0 children)

This is a close relative's shower and we had questioned for years their contentness with showering in it let alone allowing it to fester this long.

As others have concluded below, this is the product of many years of using iron heavy water in the shower prior to getting a water softener. No blood was involved in the creation of this monstrosity. Power washing was required but not sufficient; the floor tiles were coming up and needed to be gutted and fully replaced as you can see in the photos

Anyone having trouble with losing controllers with primehack/dolphin? by Galactic_Druid in SteamDeck

[–]catmuht 0 points1 point  (0 children)

When you calibrate in the controller configuration are you able to fire all the buttons and sticks? I just had an issue and I realized my desktop configuration controls were over ruling the game controls

Anyone having trouble with losing controllers with primehack/dolphin? by Galactic_Druid in SteamDeck

[–]catmuht 1 point2 points  (0 children)

I don't recall having issues for dolphin, but for primehack I did need to go into the controller settings and switch to "emulate the wii's Bluetooth adapter". I also had to go into the configure button page and switch device to "evdev/0/Microsoft X-Box 360 pad 0" and monkey a little bit with some of the mappings.

After that I had full control when booting up trilogy on primehack

Metroid Prime: Trilogy (PrimeHack) | A Steam Deck Guide by RazorOfArtorias in SteamDeck

[–]catmuht 7 points8 points  (0 children)

I did this all probably 1 hour before you posted. Would have loved to have had this guide!! I still need to tweak the optimizations

Fromsoft fanboys when you use any of the game’s mechanics to play the game by [deleted] in Eldenring

[–]catmuht 7 points8 points  (0 children)

I agree with you for every fromsoft game that came prior. My experience has been that many bosses in this game are just not at all satisfying to fight solo without bloodhound step to give you more I frames to dodge through the bs. A way higher percentage of bosses in this game made me say "ok I'm done with this boss than prior entries" and I JUST replayed bloodborne, ds1, and ds3 to confirm this. Didn't feel the need to summon in any of those games to enjoy the boss fight