© Giuliana Carullo 2020
G. CarulloImplementing Effective Code Reviewshttps://doi.org/10.1007/978-1-4842-6162-0_7

7. Naming and Formatting Conventions

Giuliana Carullo1 
(1)
Dublin, Ireland
 

There is nothing more deceptive than an obvious fact.

—Sherlock Holmes in Sir Arthur Conan Doyle’s “The Boscombe Valley Mystery” (1891)

In theory, declaring a variable is a child’s play:
i_am_a_var = 10

Sure enough it gets the job done: having a variable ready for use as you wish.

However, picking naming right can add (or remove) a lot from the overall quality of the code you write. A clear and consistent naming scheme, as subtle it might seem at first, will play you well in the short, medium, and long run. Indeed, haphazard names lead to confusion, highly impacting ...

Get Implementing Effective Code Reviews: How to Build and Maintain Clean Code now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.