Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
To be honest I leave empty lines in start but while closing curly braces I don't put empty line between them.
To other points I can't agree more.
With languages like Java and c people fall out of indentation.
If I'll ever do that I'll probably have nightmares. -
coolq48207yYou can pretty print the file, does automatic indentation.
This definitely bothers me too. Got annoyed at my lecturerer for giving extra marks for spaces instead of tabs. -
I have just stopped saying that to people. My friends were shit at indentation. My solution is going to some online pretty print site. Try it sometime.
-
@coolq I usually just google it. It's just easier that way cause its usually on their computer. I use Sublime text, so if I want to do it, I just download the relevant plugin
Related Rants
So, this is my first actual rant since I joined devRant and I am not saying I am perfect either. Here goes nothing...
1. I honestly hate it when people use spacebar instead of tabs
2. People who have a bad indentation or no indentation at all (even though almost all IDEs have auto-indentation). The bad thing is when a person asks me to have a look at their code I always end up wasting time fixing the indentation rather the actual problem.
I love a properly indented code and that's one of the major reason I usually recommend Python to most people.
3. Lastly, people who leave lots of unnecessary empty lines. E.g.,
public class HelloWorld{
public static void main(String[]args){
System.out.println("Hello world!");
}
}
undefined
indentation
python