DEV Community

Discussion on: Don't be afraid to expand your code for readability

Collapse
 
lluismf profile image
Lluís Josep Martínez

The first conditional is perfectly readable. The expanded version is not!

Collapse
 
daniel profile image
Daniel A. White

This is just a condensed example. Imagine many different steps.

Collapse
 
kevinrstone711 profile image
Kevin R Stone

If there are many more steps is the method perhaps doing too much?

It makes me wonder how context dependent some of these choices are.