RE: Is 80-column source code formatting still standard ?
"Minh Van Le" <[email protected]>
| Newsgroups | gmane.org.user-groups.slug.chat |
|---|---|
| Message-ID | <[email protected]> |
Yeah. I asked because Oracle SQL Developer has an 80 column watermark and wondering if people really use that shit. I didn't think it was still a religious debate. I thought people've moved on from 80 columns. Also I'm doing some VBScript for a project and adhering to Hungarian notation and good variable naming conventions are stretching my lines to 100 columns. The objects I create and classes I'm referencing are sometimes already 30 or 40 characters per assignment. In these situations I prefer to keep my formatting neat by grouping functionally similar lines together on single lines. eg Dim objLocator, objWMI Dim colProcesses, objProcess Dim strDodiFound, strDodiProcessID, strDodiExecutablePath, strDodiProcessIDStartTime Dim strDOCSFound, strDOCSProcessID, strDOCSExecutablePath, strDOCSProcessIDStartTime Dim intUptime Dim intExitCode I look at my 1600 x 1278 resolution and I wonder why not use 50% of my Gvim width etc (+100 columns) when scripting. I can shorten the variables but I don't want to. I think they're very easy to read as they are. But when they're included in assignments and/or arguments to function calls etc it easily blows out the columns to 100 or 120 columns per line. > -----Original Message----- > From: [email protected] > [mailto:[email protected]]On Behalf Of Mary Gardiner > Sent: Thursday, 26 June 2008 8:34 AM > To: [email protected] > Subject: Re: [chat] Is 80-column source code formatting still standard ? > > > One point in favour of approx 80 character lines in both code and > writing is that apparently there is some suggestion that it's much > more natural to read text of that width than it is to read really long > lines. This occasionally comes up in web design too. (My hope with web > layouts is that one day soon browsers will make it easy to flow text in > 80 character columns down the height of the viewport but that one > scrolls *sideways* to see more columns.) > > On Thu, Jun 26, 2008, Mark Greenaway wrote: > > Mark, who has horrible memories of long arguments about this issue when > > he was working as a programmer. What a waste of time. > > It, and other religious debates that are going to result in diffs, > should be covered in your house style guide. > > Whatever the width is, it's handy to have some kind of macro that > reminds you of it. There's a vim one that will turn unauthorised > chracters at the end of a line bright red. > > -Mary > -- > SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ > Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html > > -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html