+ 1

[NOT - question] Is this just me or what ?

If I'm making a long code, usually because it's not clean I get tired of it and I almost delete the whole code after doing thousands lines of code. Like this one, I feel like leaving it unfinished. I have some questions about it that I can't fix and need to be fixed, but ... And also if it's a long code I usually don't visit it for a long time. ::::::::::::=======::::::::::::::: https://code.sololearn.com/WDww6ziZuIqh/?ref=app

19th Jun 2019, 5:29 AM
Ginfio
Ginfio - avatar
1 Respuesta
+ 2
Learning to write a code in a way that you can still read it afterwards (and are not annoyed doing it) is a skill you need to practice. How to modularize properly? Which setup of functions and classes makes the most sense, is the most comprehensible? Also, you don't write a code of a thousand lines and then suddenly see there are serious problems. Look before you jump! Make a good plan of how you're gonna structure the code. Then don't write it in one run, but unit by unit. For example, after you have written a function, you test *now* if it works. Before it doesn't work, you don't write the next one.
19th Jun 2019, 7:25 AM
HonFu
HonFu - avatar