Post

Code Monkey
Code Monkey@UnityCodeMonkey·
What a strange tweet, maybe I'm misunderstanding the point because I haven't seen the FarCry source code Can you make a successful game with the ugliest code possible? Of course! You could eliminate all new lines and build FarCry in a single line of code, you could intentionally obfuscate every single variable and give it random names, you could write it all in a single class in a single giant Update() loop, the compiler doesn't care. But if you do that you might drown in a mountain of technical debt before ever finishing your game. I absolutely get that some people are zealots when it comes to clean code and they follow the rules so rigidly that they completely forget the purpose of those rules, they forget the goal is to help you produce a better game/software. But going to the complete opposite side of the spectrum and completely devaluing those principles seems insane to me. Clean code isn't magic, it won't magically make your game better or successful, it's merely a set of guiding principles meant to help YOU as the developer. If you ignore them the compiler doesn't care, it will compile the code just the same, it will only affect YOU as the developer. Should you obsess over writing the most absolute perfect code possible to the point where you're not even making progress in your game? No, of course not! But should you completely disregard any and all coding standards because a certain game found success without it? No, I don't think that's wise. Celeste sold millions of copies, was it because it had a 5k loc method? That makes me think of the maxim "correlation is not causation" You code absolutely doesn't have to be perfect, it just has to "work", but the dirtier code you write the harder it is to get it to "work". So for me the number one goal is "complete the game" and a close second is "keep code quality as good as possible in order to make it easier on me to actually complete the game"
English
18
26
272
48.2K
CieriusGames | ⌨️ Solo Dev 🎮
@UnityCodeMonkey As a dev who doesn’t have many connections in the development world, it’s nice to know that your code doesn’t have to be perfect for a successful game. Last week I released a game on the app stores, it’s not doing amazing but that’s okay cuz at the end of the day it works!
English
0
0
11
1.8K
Matt
Matt@mattgamedevguy·
@UnityCodeMonkey Why not read the proposed code before commenting?
English
0
0
6
887
Yukihira
Yukihira@GriffinflySTU·
@UnityCodeMonkey The point was that people early in their career have unrealistic expectations of how clean their code must be. In reality, there's a deadline and no amount of clean code will make up for a broken game. Get it done > clean code. Code does not stay clean forever.
English
1
0
6
1.2K
K-Anator
K-Anator@OriginalKanator·
@UnityCodeMonkey I think that's their point though; disabuse, lose the notion of, being absolutely perfect with every single line, and focus on writing something that works. An experienced welder can make nice welds because they took the time to make terrible ones.
English
2
0
3
686
DigvijaysinhG | CosmicRoads
DigvijaysinhG | CosmicRoads@iDigvijaysinhG·
@UnityCodeMonkey I know a lot of devs just started out would say, if you are the only one to code you can get away with almost anything and you don't need "Clean code". However clearly written code will save you a lot of headaches and you can easily build and manage scalable systems.
English
0
0
2
1K
box cat
box cat@boxcatdev·
@UnityCodeMonkey This is unrelated but I've been watching your videos for years and am only now discovering you have a twitter 🤣 your videos on marketing have been a huge help btw
English
1
0
2
100
itmo
itmo@_itmo_·
@UnityCodeMonkey if you can write it in a short time , without doing any alterations to the existing code, by all means write shit. If you need to iterate , modify and maintain, do maintainable code. It will save time pretty soon.
English
0
0
1
343
Pineapple on Pizza Studios
Pineapple on Pizza Studios@POPStudiosZA·
@UnityCodeMonkey While I believe in finishing the game, we do not know the conditions of Far Cry's development. The code could have been terrible due to possible rushing. Also, the game was made in 2004 so code practices back then probably weren't as good as they are now
English
0
0
0
64
Julian
Julian@OberZine·
@UnityCodeMonkey While clean code principles may not guarantee success on their own, they help developers in producing better games or software. It's essential to prioritize completing the game while also striving to maintain code quality, as it can significantly impact the development process.
English
0
0
0
33
:q! ✞
:q! ✞@CillianArcher·
@UnityCodeMonkey I'm not very sure but I think what he's trying to say is to give up the pursuit of perfection and avoid over-designing.
English
0
0
0
157
Bozoid
Bozoid@bozoid·
@UnityCodeMonkey Celeste is a simp and minuscule game not comparable at all to a juggernaut like Far Cry, with a multitude of different gameplay mechanics and simulations going on. Plus Far Cry was a true nextgen game rather than a retro one that would run on NES. optimized code is always ugly
English
0
0
0
132
Moonlogic
Moonlogic@Moonlogic_Games·
@UnityCodeMonkey ReadingmEssy cOde islike tryingtoReada bo oKlikEthis whyw oUldyou dothatTo youRself
English
0
0
0
89
Mauro S
Mauro S@Placebo_yue·
@UnityCodeMonkey code quality should be subjective tho. It shouldn't be held to some industry standard scrutiny. If i can make whatever mechanic the game demands while barely understanding what inheritance means or whatever, why should it matter? unless i work with other 5 people on the code..
English
0
0
0
264
Compartilhar