0

Is my code readable?

Hello guys. Can you tell me if my code is readable or not? And can you recommend me how to make it more readable? https://github.com/borislavvv00

11th Jul 2018, 5:00 PM
B K
4 odpowiedzi
+ 3
Borislav Kalinski Comments are best placed when there's something that isn't self-explainatory. For example, if you have a try-catch statement to catch an odd error, it might be good to leave a comment at the top. Also, it's a good idea to comment about what the program as a whole does, as well as individual comments. As a final note, be smart with naming your variables (ex. don't make your variable "cherries" if it denotes the size of a window. Windows are not measured in cherries).
11th Jul 2018, 6:42 PM
Keto Z
Keto Z - avatar
+ 2
Absolutely. Good spacing and indentation. Just don't forget your comments (:
11th Jul 2018, 6:14 PM
Keto Z
Keto Z - avatar
+ 1
Keto Z can you recommend me where and when is good to place comments?
11th Jul 2018, 6:33 PM
B K
0
It's C++, and C++ isn't readable. But it seems to me like pretty clean (for C++) code.
11th Jul 2018, 5:11 PM
Paul Grasser
Paul Grasser - avatar