billroper: (Default)
[personal profile] billroper
I hate religious arguments. That said, I object to getting an e-mail that says, "Hi, we're going to reformat all of your carefully formatted source code, because we don't like your formatting style."

I understand that I'm not formally working on that particular project at the moment, but it still rankles.

Date: 2009-08-15 01:43 am (UTC)
poltr1: (polyfusion)
From: [personal profile] poltr1
Do I dare mention that in Python, formatting and indentation *is* part of the syntax? Yeah, I'm still trying to wrap my brain around that one.

Date: 2009-08-15 03:14 am (UTC)
From: [identity profile] pheltzer.livejournal.com
Someone must have been overly fond of COBOL when they developed Python....

Date: 2009-08-15 10:57 am (UTC)
madfilkentist: My cat Florestan (gray shorthair) (hex)
From: [personal profile] madfilkentist
Then there's the programming language Whitespace", where the formatting and indentation are the whole of the syntax. It's a very difficult language to read.

Date: 2009-08-15 01:49 pm (UTC)
From: [identity profile] johnridley.livejournal.com
Ugh. I had quite enough of that when I was programming FORTRAN on punch cards. I'm glad to be shut of that.

Personally I find a pretty printer and configure it the way I like it, and use it on my codebase once in a while.

Date: 2009-08-15 11:20 am (UTC)
From: [identity profile] grey-lensman.livejournal.com
Wait -- they're being paid to waste time and risk introducing bugs into a working codebase? Wierd.

Date: 2009-08-15 08:23 pm (UTC)
From: [identity profile] whl.livejournal.com
Some people's styles are drifting where I work; we used to match and now they are starting to differ. But that can be good, as it means I can look at a part of the code and tell someone edited it after I did and introduced the bug. (And ask them why they thought that was right.)

Also, language changes cause issues. Which is preferable:
[NSThread detachNewThreadSelector: @selector(auth:) toTarget: self withObject: SSID];

or

[NSThread detachNewThreadSelector : @selector(auth :) toTarget : self withObject : SSID];



Date: 2009-08-15 11:19 pm (UTC)
From: [identity profile] kizoku42.livejournal.com
Well, consistent -is- better, in that if everybody uses the same system then everybody understands it better. But what -he's- saying is,

"Your formatting is so clear and understandable that I can easily understand it and can convert it to this other system without any chance of confusing anyone."

But if it's that clear, what's the point? :-)

Date: 2009-08-16 07:14 pm (UTC)
From: [identity profile] backrubbear.livejournal.com
I've gone through about 4 different styles over the years. For the most part, as long as my editor (vi) will support it without a lot of contortions, I don't care as long as there is consistency.

I'm even fine with different levels of consistency across the same code base as long as a given file is internally consistent.

What I'm not fine with is having to run my revision control system's "blame" command multiple times just to find out who was responsible for a given bug.

Date: 2009-08-16 07:50 pm (UTC)
From: [identity profile] backrubbear.livejournal.com
These people are usually called zealots. Sometimes they're also called other names too.

Profile

billroper: (Default)
billroper

February 2026

S M T W T F S
1 2 3 4 5 6 7
8 9 10 11 121314
15161718192021
22232425262728

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 13th, 2026 04:13 am
Powered by Dreamwidth Studios