+ 3
Is there another way to make the attached code shorter and easier to read?
2 Respuestas
+ 4
1) Use proper
indentation.
a) Use proper
indentation.
b) Use
proper
indentation.
2) Have empty lines between important structures, like for loops, method definitions, etc.
3) Always make if statements take up 2 lines (at least), for better readability.
4) Use ternary operators where you can, for better conciseness (may harm readability)
5) Enjoy coding! 😉
+ 2
ok, thank you for your advices! 😉 I also eager to know how this code would look like in a professional way.