mercredi 19 octobre 2016

Technical, non opinion-based reason to avoid innecesary spaces in Java

First of all, sorry if I am breaking any policy about asking questions, but I have just read the guide just in case and this is not an opinion-based question, but a technical one.

Basically, a colleague is always adding spaces where they are not necessary, writing code like the following:

private void foo(){

sentence1;

sentence2;

sentence3;

sentence4;


} 

Instead, I think code should be written like this (unlike there is a necessary point where an space can improve legibility):

private void foo(){
sentence1;
sentence2;
sentence3;
sentence4;
} 

He keeps thinking that the first approach is the best, but I dont think so as long as we will end up having huge classes.

Is there any technical reason I can tell him to demonstrate that he is following an antipattern?

Aucun commentaire:

Enregistrer un commentaire