DEV Community

Discussion on: How to write readable code?

Collapse
 
suckup_de profile image
Lars Moelleken

Be consistent! Yes, but this cannot be an argument for bad code style.

e.g.:

bad:

.example_1,.example_2{background: url(images/example.png) center center no-repeat, url(images/example-2.png) top left repeat, url(images/example-3.png) top right no-repeat;}

not that bad:

.example_1, 
.example_2 {     
 background: url(images/example.png) center center no-repeat,                            
             url(images/example-2.png) top left repeat,                            
             url(images/example-3.png) top right no-repeat;
}

-> dev.to/suckup_de/do-not-fear-the-w...