トピック
受付中
Joshua JoshinWithYa

Does it really matter how messy code is?

When I'm writing code, I tend to write a very messy chunk and then write a note telling me what that chunk does and how it does it. Is it more beneficial to write less code? Like, could it save space and/or processing power?
10そうだね
プレイ済み
返信[1]
親投稿
HoRiz0n ClashStudios125
Yes it does, since more code = more used memory and the less memory used means more game features and such
1そうだね
プレイ済み
返信[2]
親投稿
PChicken NerdChicken
You can fix it later (not really)
1そうだね
プレイ済み
返信[3]
親投稿
Gale Storm GaleTheStorm
The primary focus should be to get your code to work at all. After you know it works, then you can optimize it.
1そうだね
プレイ済み
返信[4]
親投稿
Aaron Krondelo
Being efficient isn't really important/noticeable unless you're working on a massive complex project or iterating tons of data. In terms of processing. (aka: don't fret it)
0そうだね
プレイ済み
返信[5]
親投稿
Chickens32 Chickens32
I don't think it really matters. Just get it to work, then, after you finish it, go through and make it more simple, like planning out what your limit is.
0そうだね
プレイ済み
返信[6]
親投稿
Scientist Speedy1101
When writing a program, decide if you want others to see the code. If you want them to see and understand it, then put different functions in different chunks and sub functions under the function to which they belong, but add a space before each sub function line. Also it helps to remove commented lines of code once you don't need it. That will save space and make it look better.
0そうだね
プレイ済み
返信[7]
親投稿
Scientist Speedy1101
If you are the only one that sees your code, then feel free to make it messy. Remember to optimize!
0そうだね
プレイ済み