Jared, For comment lines that wrap to a second line because they are at the end of a line of code, I like to move the comment to the line above the line of code to avoid the broken line. To each his own. Bob ----- Original Message ----- From: "Jared Wright" <wright.jaredm@xxxxxxxxx> To: <programmingblind@xxxxxxxxxxxxx> Sent: Wednesday, December 31, 2008 11:29 AM Subject: Re: Code Beautification Question Thanks for the tips, and with expressions that does make a lot of sense. Currently my conventions are dictated by no-one but me, but I just wanted to get a feel for if there are any widely accepted guidelines for this. My biggest issues is with comments that wrap onto the next line, I suppose. I write overly verbose comments maybe. *smile* Jared tribble wrote: > Hi -- well it depends on the conventions of the people you are working with. > When I was coding for a living, we would not only indent, but for huge > expressions, we would preserve the hierarchy of the operations in the > expression in the indentation. > However, for small to moderately sized expressions that ran over a line, we > would not insert a line break, but would leave it all on a line so that the > (now old fashioned) debugger would print the whole expression out when we > were debugging. > HTH > --le > > > > ----- Original Message ----- > From: "Jared Wright" <wright.jaredm@xxxxxxxxx> > To: <programmingblind@xxxxxxxxxxxxx> > Sent: Wednesday, December 31, 2008 10:21 AM > Subject: Code Beautification Question > > > Hello all, Just a blink with a question for those of you who appreciate > aesthetically pleasing code. If I have a line that wraps, say because > of long expressions in the code itself or because of trailing comments > at the end of the line, is it standard practice to indent that line to > match the indentation level of the line above it? Or because of the > various line lenghts in different editors, am I only really making > things worse by doing that? Would actually be nifty if this was a no-no, > since my editor just puts the next line at the far left and combing > through and making the indentation levels match is sort of a pain. > Thanks for the thoughts. > > Jared > > > __________ > View the list's information and change your settings at > //www.freelists.org/list/programmingblind > > __________ > View the list's information and change your settings at > //www.freelists.org/list/programmingblind > > > __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind