19

If your indentation looks like this you might as well look for help. ASAP.

Comments
  • 1
    Objective-C devs thinks it's OK
  • 3
    Oh my fucking God 🤣
  • 1
    @rostopira eh no they don’t
  • 1
    @practiseSafeHex really? Then, what the heck is that: https://i.imgur.com/SV3pNkT.png
  • 2
    @rostopira something completely different. That’s how Xcode automatically lines up method params when you break it up into multiple lines, for really long function calls (cause method names are so long).

    It’s the same in JS or JSON when building an object to long to fit on one line, each prop gets put on a new line and left aligned, Xcode right aligns instead.

    The above pic is some jackass spending too much time trying to turn his code into art. If he adds another longer import, all of them have to be re-indented. And I can’t dignify those if / else’s with a comment
  • 1
    @practiseSafeHex that's not problem of IDE, that's problem of awful coding standards. And "some jackass" is actually Google employees, this screen is from Google git WebRTC repo
  • 2
    @rostopira I didn't say it was an IDE problem, I personally think in the obj-c case its the only sane solution to having such long method / param names. Those long names, I firmly believe, made obj-c one of the easiest to read and most descriptive languages I ever worked with.

    That top picture is not the norm in anyway shape or form, someone made a conscience decision to do that, install a plugin to do it or use an IDE with that as a feature.

    I also don't care if it was a Google employee. Just because he works for Google doesn't make him a god.

    I've seen my fair share of bad standards, poor code, and bad formatting come form google. I'll also never forgive them for making 2 space indentations the norm.
  • 0
    My brain has been permanently damaged after reading this excerpt.
  • 0
    @practiseSafeHex @rostopira im not sure if you two are talking about my code or rost's snippet but my code snippet I posted is perl if you couldn't tell.
    Also that's the way my boss indents and it fucks me up every time I see his pile of shit indentation
  • 0
    Well, it's really orrible, but has it's logic.

    ID's doom3 codebase was built on a similar but much elegant logic,with c++

    However the first if is not alligned 🤔 so it's a complete fail🐤
  • 2
    shred -zfu -n 16384 this.wtf
  • 0
    @d3vnu11 is it enough? 😓
Add Comment