Relative Content

Tag Archive for readability

How to write readable Clojure Code?

I am new to Clojure. I can understand the code I write but it becomes too difficult to understand it later.It becomes difficult to match parentheses.

Should I write compact code or code with lots of spaces? [duplicate]

This question already has answers here: How important is it to reduce the number of lines in code? (23 answers) Closed 11 years ago. I have two friends that have completely different schools of thought on how to lay out their code. The first says that code should be well-indented and use lots of spaces […]

Why are nested loops considered bad practice?

My lecturer mentioned today that it was possible to “label” loops in Java so that you could refer to them when dealing with nested loops. So I looked up the feature as I didn’t know about it and many places where this feature was explained it was followed by a warning, discouraging nested loops.

Equating multiple new variables with an old one

Sometimes I run into a situation where I need to equate two new variables with an old one. Which of the following (if any) is a good practice (w.r.t. code readability or any other factor), under what conditions?

Equating multiple new variables with an old one

Sometimes I run into a situation where I need to equate two new variables with an old one. Which of the following (if any) is a good practice (w.r.t. code readability or any other factor), under what conditions?

Equating multiple new variables with an old one

Sometimes I run into a situation where I need to equate two new variables with an old one. Which of the following (if any) is a good practice (w.r.t. code readability or any other factor), under what conditions?