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
-
skullyB459ySorry, 4 spaces back from where "function" is declared. So,
function foo() {
var stuff;
}
The weird thing is, when the function declaration is as far back as it can go, he indents normally.
He claims his method makes it less ambiguous which blocks are invoked immediately and which blocks are declared but not invoked. -
skullyB459yWe actually do have coding standards that specify this very thing. He goes ahead and commits anyway.
Also worth mentioning that we don't have a code review process, so... :/ -
Seethe4599yThat's when I just select all and autoindent his whole commits. 😋 the key is never to say anything about it just keep doing it.
-
skullyB459y@Seethe Haha yep, I've definitely made a few commits along the lines of "Fixed some bad formatting, cough cough". But I hate when I'm about to commit something, then I realize that I have all these white space changes from auto-indent. I don't want to clutter my commits, so I have to pull my changes out, commit the format changes, then commit my stuff. Huge hassle when you're working with large files.
-
mags245829yI'm so sorry. You should hack his stuff and make it auto format on save. And write a script that ensures that's the setting every time his ide starts.
I have a co-worker who negative-indents his function bodies. Minus four spaces. Every function. Not an IDE thing either, he does it intentionally.
I've never seen anything like it.
undefined
beautification