Re: Win32Lib
- Posted by "Cuny, David at DSS" <David.Cuny at DSS.CA.GOV> Sep 28, 2000
- 619 views
Michael Nelson wrote: > Perhaps Win32Lib should have one team member > as editor in charge of style--let the contributors > write code however it comes naturally and the > editor will restyle it as needed to conform to > the project coding standards. I agree that disallowing code that doesn't fit *my* idea of beauty would certainly be foolish! But there should at least be some sort of published standard for the project. There are a lot of places where I'm willing to reconsider my coding style. For example, one issue is being able to rapidly find the beginning of routines. I prefer to indent. A typical declaration of mine would look like this: ---------------------------------------------- function foo() -- this is a comment ... code goes here ... end function One of the problems with this is that it assumes the coder has a DOS editor. Robert, on the other hand, prefers to put his routine comments flush to the left, immediately under the header: function foo() -- this is a comment ... code goes here ... end function Robert's method has the advantage of "fattening" up the beginning of the routine, so it's fairly easy to spot where the beginning of the routines start. But for Win32Lib, the coding style should be as consistant as possible with the existing code. -- David Cuny