Top "Readability" questions

Readability is a subjective parameter used to measure an aspect of code quality.

How to find good looking font color if background color is known?

There seem to be so many color wheel, color picker, and color matcher web apps out there, where you give …

colors accessibility readability
Splitting C++ Strings Onto Multiple Lines (Code Syntax, Not Parsing)

Not to be confused with how to split a string parsing wise, e.g.: Split a string in C++? I …

c++ string syntax coding-style readability
Is while (true) with break bad programming practice?

I often use this code pattern: while(true) { //do something if(<some condition>) { break; } } Another programmer told me …

while-loop readability
`if key in dict` vs. `try/except` - which is more readable idiom?

I have a question about idioms and readability, and there seems to be a clash of Python philosophies for this …

python idioms readability defaultdict code-readability
Why should I capitalize my SQL keywords?

Possible Duplicate: Is there a good reason to use upper case for T-SQL keywords? Simple question. I personally find a …

sql formatting readability
System.out.println() vs \n in Java

Let's say I wanted to print 5 lines. Which is the best method (for performance and readability). System.out.println(); System.…

java performance newline readability
Usage of ‘if’ versus ‘unless’ for Perl conditionals

What are some guidelines for the best use of if versus unless in Perl code? Are there strong reasons to …

perl if-statement readability
Boolean method naming readability

Simple question, from a readability standpoint, which method name do you prefer for a boolean method: public boolean isUserExist(...) or: …

api naming-conventions readability
Generic Exception Handling in Python the "Right Way"

Sometimes I find myself in the situation where I want to execute several sequential commands like such: try: foo(a, …

python exception readability
How to split a long regular expression into multiple lines in JavaScript?

I have a very long regular expression, which I wish to split into multiple lines in my JavaScript code to …

javascript regex jslint expression readability