DEV Community

Discussion on: Readable Code

Collapse
 
tomazfernandes profile image
Tomaz Lemos

Great article! I agree with all the principles you describe, and I would add that for me readable code is also code that makes it easy to figure out what the business rules are, as the code itself is merely a representation of them.

Usually understanding the code language is not hard, the greater difficulty is understanding the purpose of a particular piece of code and what part of the domain it represents, so I can figure out easily what to change.

Perhaps another good measure of non readable code would be when you need to think like a compiler just to figure out what a piece code does, and after a while cracking it you realize it has nothing to do with what you needed in the first place.