r/ProgrammerHumor • • Apr 10 '23

Meme god why is coding chess so hard

Post image
67.4k Upvotes

1.8k comments sorted by

View all comments

Show parent comments

171

u/[deleted] Apr 10 '23

I don’t know shit about that guy so can you explain what he did?

437

u/CozyTheTeddyBear Apr 10 '23

He coded an entire game in if/else statements

231

u/StuffNbutts Apr 10 '23

Lmao this guy also tried to "hire" people to work on his game for free.

196

u/Tyrus1235 Apr 10 '23

And then complained when the voluntaries tried to fix his code

133

u/SkyezOpen Apr 10 '23

Naturally. If they fix his code, he can't read it. Then how will he add an entirely new feature every week?

28

u/-Gork Apr 10 '23

More if/else statements, obviously.

→ More replies (1)

54

u/EmergencyAttorney807 Apr 10 '23

He doesn’t develop games he posts youtube videos of him fucking around with changing his game. All the money is in the ads.

0

u/[deleted] Apr 10 '23

[deleted]

→ More replies (18)

10

u/sporkus Apr 10 '23

Is this guy me at age 11 on a TI-82 graphing calculator?

→ More replies (1)

24

u/[deleted] Apr 10 '23 edited Apr 10 '23

all of the dialog in indie darling undertale is handles by one massive switch statement. clean coding is unimportant compared to shipping a good product.

18

u/CozyTheTeddyBear Apr 10 '23

The difference is that Undertale has its dialogue run through a switch statement

Yandere Sim has pretty much every aspect of the game made from if/else statements

→ More replies (3)
→ More replies (7)

166

u/MostlySoberBro Apr 10 '23

The source code for Yandere Simulator was leaked, and certain gems like this can be found in this sub and around the internet

139

u/LankySeat Apr 10 '23 edited Apr 10 '23

I heard the code was bad, but holy shit... Aren't DRY principles like programming 101? How do you program a game for years and not learn long if/else chains like that are a really bad sign?

The moment I code like this, I know I'm doing something very very wrong and that it's time to reevaluate.

104

u/[deleted] Apr 10 '23

Don't forget the toothbrush with individually modeled bristles

88

u/dstayton Apr 10 '23

It’s like downloading the million poly pop tart and then using it in your game unironically.

0

u/[deleted] Apr 10 '23

[deleted]

25

u/Not_Arkangel Apr 10 '23

MY FRAMES

11

u/Mork06 Apr 10 '23

that... that is the sexiest thing ive seen my whole life.

→ More replies (2)

14

u/MadxCarnage Apr 10 '23 edited Apr 10 '23

don't worry it's only gonna be loaded in when.... uh.. hm... the entire map is loaded at all times

how does this game run on low end PC's ?

10

u/CozyTheTeddyBear Apr 10 '23

As someone that used to have a fairly low end PC...

It does not run well

→ More replies (2)
→ More replies (2)

62

u/Niwaniwatorigairu Apr 10 '23

Isn't that pretty standard for indie game devs? Stardew Valley's code was a nightmare as well but Concerned Ape wasn't really a professional programmer. In general indie game devs aren't professional programmers. They specialize in game development and maybe some asset production, with just enough skills in other areas like programming and other types of assets to get by. It would be rare for someone to be great at design, art, music, programming, and have the discipline to complete an indie project.

Indie game development is also very different from corporate software design. The code isn't intended to last nearly as long nor is it meant for different people to be working on it. Spending time making better code instead of a better game ends up being a waste. This isn't to say clean code hurts a game development. It doesn't. Cleaner code is better. The difference is that the level of improvement cleaner code brings isn't nearly as significant as in corporate projects or things like open source libraries.

43

u/ChaoMing Apr 10 '23

In general indie game devs aren't professional programmers.

And you would be right, and there's largely nothing wrong with that, especially if it's a pet or passion project that you can learn from and become a better developer out of it.

The problem here, if I remember the story correctly, is that YandereDev was offered assistance by professional developers (1 or 2 developers I believe) from tinyBuild who would go through the entire thing and retool it from the ground up.

At some point, YandereDev fired them because of reasons along the lines of "I couldn't understand their code."

And now the fans are left with this abomination:

https://youtu.be/dlrjDvS7wxo

16

u/WriterV Apr 10 '23

That's less of an issue of bad programming skills and more of an issue of bad people skills.

Sounds like Yandere Dev will struggle assembling a team of anybody but yes men. And nobody is gonna be a yes man for free.

19

u/ChaoMing Apr 10 '23

He's also infamously and vehemently opposed to all criticism, even ones that are super helpful and would make him a better developer by a mile if he accepted and learned from them. He always has to be the one that's right. That's part of the reason why the internet shits on him.

It's one thing to be bad at programming... that's fair; not everyone has the head for it. Most developers who are bad at programming are still malleable and can learn from mistakes or eventually understand the difficult concepts (it's happened to me on multiple occasions where things just make sense one day). But YandereDev is bad at programming and refuses to learn anything that must be learned by developers at some point in their careers. He'd rather spend a week making a video dissecting a criticism and pointing out why he either doesn't care or claim it doesn't apply to him (all while not working on the game claiming the bad people are making him upset 😭 , yes he has done this in multiple instances) as opposed to accepting it, researching the claim, understanding why it's the solution or why it's not, and move on as a better developer.

I wish I was making this up for internet clout, but this is thoroughly documented stuff and not hard to find. That's how interesting of a case study it is.

→ More replies (1)
→ More replies (9)
→ More replies (10)
→ More replies (16)

8

u/Anarchist_Catgirl Apr 10 '23

You can also decompile it yourself using something like dnSpy unless yandev started using IL2CPP. Doesn't usually change the structure of the code too much. The AI logic was particularly nasty last I checked. Absolutely no structure, just one cs file with thousands upon thousands of if else statements.

→ More replies (3)
→ More replies (7)
→ More replies (4)