+ 15

Code Readability

How best can I ensure readability of my codes, I will like tips from seasoned and aspiring programmers on how to write and better structure my comments, as half the time I tend to be so engrossed coding that I barely comment, and even when I do, I doubt I explain my code clearly enough to the poor readers who read it.

18th Feb 2017, 5:17 PM
Josephine Smith
Josephine Smith - avatar
2 Antworten
+ 11
look for a book called Clean Code a lot of helpful tips in there a few tips i can throw just out the top of my head are: meaningful and descriptive variable/function names (even if they are a bit long) comment non-trivial lines, even add examples for an execution scenario if you'd like, it will help you to understand better what you have done and how
18th Feb 2017, 5:28 PM
Burey
Burey - avatar