25

Every time my Java instructor puts spaces inside the parentheses I die a little inside.

( ... ) instead of (...)

He's been programming since the 60s.

Comments
  • 4
    Where did he pick that habit up from then?

    Wouldn't want to waste columns on those punched cards after all... :-)
  • 5
    Every time my teachers put the { under the method/function (it happens in both Java and C)... also sometimes they also put spaces inside the () but it's not evenly spaced. The other day I saw "( variable)" and I was like "why. Just why"
  • 2
    @DotM What do you mean about the {
    ?
  • 16
    I like spaces before comment characters.
    # I prefer this
    #over this

    <-- I prefer this -->
    <--over this-->

    I just find it easier to read.
  • 3
    Writing
    Method/function
    {

    Like
    int main()
    {

    It just pisses me off a a lot XD
  • 2
    @DotM it's actually a common standard to put the curly brace under the method declaration. Just like for the class declaration.
  • 1
    @bearcatsandor I'm with you on that
  • 1
    @jirehstudios yeah but I just look at it and die a bit inside. I learned to code with the { on the same line as the method/function, maybe it's that
  • 2
    @DotM That's wrong though. It's a function definition, not an if statement!
  • 4
    @spl0 there's always JavaScript where the standard is to keep it on the same line
  • 1
    @spl0 it's not late to learn and do it right :D
  • 0
    @jirehstudios I don't know anything about that! Thanks for the info!
  • 1
    We all die a little inside.
  • 1
    Not a joke, but when I looked at this ( ... ) i felt fucking weird and grossed. Idk why. But it just feels weird seeing it.
  • 1
  • 3
    My programming teacher taught us print () instead of print() in Python. Might be personal preference but it's not PEP 8 complaint.
  • 2
    I'm exactly the other way around. A curly opening brace on the same line can make me go crazy. I guess we all have different preferences. @DotM
  • 0
    Wordpress developers seems to do this ( ... ) .

    I hate it
  • 0
    Am I the only one who uses an auto-styler on save?
  • 0
    @brod I don't think I'd like that!!
  • 0
    Please light up my brain friends, cos I don't get it. Why one of 'em is better than the other one? I've read it a couple of times that everybody has their own opinion and thinks if somebody use the other style is defenetly a horrible person/programmer. But nobody explain it why and why does it even matter. Please help me out!
  • 2
    @zaturek it doesn't as long as you apply the same standard throughout the whole codeBase. But if you're using an uncommon standard then you will most likely be frowned upon.
  • 1
    As the person above me said, it's all about consistency. which is not always in your control.

    Assume you work with others on the same project, or that you're working on someone else's code. In either case you'd have to adapt to the current style, because it is simply more readable. I mean, that's my opinion. @zaturek
Add Comment