Top "Readability" questions

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

Better way to pass bool variable as parameter?

I am wondering if there is a better way to write this for better readability. If you have a function …

c++ readability
Improving Code Readability

When it comes to code documentation, it is usually accepted that code should explain itself, and inline code documentation (excluding …

language-agnostic documentation readability
Is it better to reuse SqlCommand when executing the same SQL query several times?

When querying the database with the same query but different parameters, is it better to: do it in a single …

c# refactoring readability
How to correctly format PHP 'IF ELSE' statements?

It's been a long running issue that I've come across in many-a-hot-and-steamy coding sessions. One person codes this way another …

php code-formatting readability if-statement semantics
Readable file sizes with the Twig templating system

I'm wondering if there's a built in way to output readable file sizes with the Twig templating system. Say I …

twig filesize readability
Best practices for turning jupyter notebooks into python scripts

Jupyter (iPython) notebook is deservedly known as a good tool for prototyping the code and doing all kinds of machine …

python refactoring ipython-notebook readability jupyter
Calling getters on an object vs. storing it as a local variable (memory footprint, performance)

In the following piece of code we make a call listType.getDescription() twice: for (ListType listType: this.listTypeManager.getSelectableListTypes()) { if (…

java performance readability memory-consumption
iOS access to Safari Reader feature through UIWebView

I am using iOS 4.3 & was wondering if there is any way that I can access the Safari's "Reader" feature …

objective-c ios uiwebview safari readability
Why is the code in most STL implementations so convoluted?

The STL is a critical piece of the C++ world, most implementations derive from the initial efforts by Stepanov and …

c++ stl readability
How do I check the equality of three values elegantly?

Say I have values a, b and c. I want to find out if they are equal. If I do …

go syntax equality readability convention