Eight spaces, you heretics
One of the things that pisses me off most about DrJava is the fact that it indents using spaces. I absolutely hate code indentation with spaces. It makes about as much sense as indenting paragraphs with spaces, that is, if you do it, you’re stupid. What makes it worse is that DrJava absolutely must indent with spaces because the brilliant developers decided that a better use for the tab function is to automatically indent your code to the current block level using spaces.
The other thing about indentation is the number of characters to indent. As we all know, tabs are eight spaces. Therefore, indents are eight spaces. Not four. Not two, as is in the DrJava default. If you’re going to indent in two, you may as well save yourself the trouble and not bother indenting at all. While you’re at it, go and write your entire program on one line too.
On the other hand, do not ever indent in papers using the default tab. Most people type essays and indent paragraphs with an indent of half an inch. Go take your rulers out and frigging check how long half an inch is. Here’s a hint: it is bloody monstrous. An indent should only be one em. Why? Because an em depends on the size of your type so it will always look right at any size. You’re only allowed to change your indent size if you already know what an em is because you probably know what the hell you’re doing anyway.
Finally, brace style. It annoys me to no end seeing large chains of if statements with every brace getting its own line. First of all, it’s a bloody waste of space. Second of all, I find it impossible to follow the nesting and such. For branches and loops, opening brace comes at the end of the statement, not on the line after. The closing brace is on a new line, preceding the next statement on the same line if there is one. For functions and classes, they get their own lines because functions and classes are special and you’ll never chain a function or class together.
Okay, not finally. Methods are a retarded name for functions. This is why I hate object oriented programming. Have you read the Java book? It’s all like “OMG THEY’RE CALLED METHODS DON’T CALL THEM FUNCTIONS.” Maybe the reason I hate it so much is because they insist so strongly. Here’s news, they’ve been called functions long before this new OOP fad, and they’ll be functions long after. My God, I hate Java.
Tags: Coding
