+ 5
How to keep code neat and clean?
Want some coding techniques to improve readability and understandability of code.
13 Respostas
+ 6
I recommend to read the book "Clean Code" by Robert C Martin.
It's really useful and also funny to read.
http://ricardogeek.com/docs/clean_code.pdf
+ 15
Enforce proper indentations and use descriptive variable names. Replace frequently repeated blocks of codes with functions. Utilise comments if necessary.
+ 8
just don't write any code, it will be perfectly clean
"deleted code is debugged code" đ
+ 4
Thanks @Daniel for your link.
+ 3
I searched on internet and got following:
1. Use comments
2. Use code Indentation
3. Use variables and functions with appropriate names
4. Try to use functions whenever required.
+ 3
Always use the same ide for all your works that way your work will be the same and others will be familiar with your code and you can use ide to format your code. I recommend visual studio..
+ 2
using tab button XD
+ 2
comments is the most important
+ 2
on top of everything thats already been mentioned, i would also say to keep your code simple. i know many things can be done in one single complex line of code, but it is better to break it down into three or four simple lines of code.
+ 1
Use proper comment lines to seperate sections , indent your code, use white spaces appropriately if allowd, name of variables should be relevant to logic
+ 1
using comments is key
0
Began between end
0
A bit long but well worth watching:
https://m.youtube.com/watch?v=ytJnSttKL6A