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

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.

5

u/DeliciousWaifood Apr 10 '23

The funny thing is, these models will be used unironically now with unreal engine with nanite

→ More replies (1)

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

4

u/dstayton Apr 10 '23

First, the entire gym map was one solid object. I can’t even fathom doing that myself. Second, it ran like terrible on high end computers.

→ More replies (1)

4

u/[deleted] Apr 10 '23

Now with UE5 you actually can

→ More replies (1)

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.

4

u/WriterV Apr 11 '23

Yup, it sounds like the guy has decided to prioritize his ego over his ability to learn and grow his skills, both socially and with programming.

0

u/[deleted] Apr 11 '23

[deleted]

4

u/ChaoMing Apr 11 '23

YD's source code looks like what a schizophrenic programmer would write as he descends into madness, slowly forgetting all the lessons he's learned until the only thing he remembers is how to use if.

You say that, but let's not forget the late genius behind TempleOS, which was born from a deeply disturbed individual spiraling into madness.

→ More replies (1)
→ More replies (6)
→ More replies (10)

4

u/[deleted] 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.

4

u/Cilph Apr 10 '23

It works, but only for as long as your dev team consists of 1 person.

→ More replies (14)

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.

4

u/Cilph Apr 10 '23

Thousands of IF statements? Well that's what AI is, isn't it? /s

→ More replies (1)
→ More replies (1)

6

u/LifeHasLeft Apr 10 '23

Omg there seems to be no rhyme or reason to the order of the items in the index, so I don’t even know whether it’s supposed to matter…and if it doesn’t there’d be no need for any of this code at all

4

u/RuneLFox Apr 10 '23

Interestingly with that one, I think I have a good guess at what the point of it is. I imagine it's to do with layering and having certain hairstyles over or under pieces of the uniform. That said...there's got to be better ways of doing it...

→ More replies (1)
→ More replies (4)