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
-
@practiseSafeHex really? Then, what the heck is that: https://i.imgur.com/SV3pNkT.png
-
@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 -
@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
-
@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. -
@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 -
ozeta863377yWell, 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🐤
Related Rants
-
linuxxx32*client calls in* Me: good morning, how can I help you? Client: my ip is blocked, could you unblock it for m...
-
DRSDavidSoft28Found this in our codebase, apparently one of my co-workers had written this
-
linuxxx23*client calls* "hello, we forgot the password to our WiFi router. Could you reset that for us?" 😐😶😮...
If your indentation looks like this you might as well look for help. ASAP.
undefined
wtf
tabsvsspaces
indentation