Boolean-Integer Typecasting to Replace Conditional [closed]
Closed 9 years ago.
Is it OK to split long functions and methods into smaller ones even though they won’t be called by anything else? [duplicate]
This question already has answers here: One-line functions that are called only once (12 answers) Should I extract specific functionality into a function and why? (6 answers) Closed 11 years ago. Lately I’ve been trying to split long methods into several short ones. For example: I have a process_url() function which splits URLs into components […]
Programming by Intention, Depth-First or Breadth-First?
Say I have the following graph of dependencies between procedures/functions/methods:
What’s the dominant naming convention for variables in PHP: camelcase or underscores? [closed]
Closed 11 years ago.
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?