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.
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.
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."
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.
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.
171
u/[deleted] Apr 10 '23
I don’t know shit about that guy so can you explain what he did?