Re: Re: Code should be selv-maintaining!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11-08-29 04:05 PM, Richard Riley wrote:
Robert Cummings<robert@xxxxxxxxxxxxx>  writes:

On 11-08-29 03:42 PM, Rico Secada wrote:
You go into your homemade library of code to re-use some piece that you
already are using 12 other places in production. Now, last time you
worked on the code you thought it was almost perfect. While working on
the code this time you find an undiscovered bug or some part of the
code that looks like you where on drugs when you made it.

More an issue with library management  :) "git checkout releaseV1.1" ;))))


*lol* Yes, I think we've all seen it from time to time. Have you ever gone back
and looked at your school assignments in coding? *shudder*. The horror is
compounded by the fact I was using K&R style indentation back then ;)

small point of order : K&R indentation is still considered by many as
the cleanest and is used on many many large code bases. Personally I
much prefer

I was stating opinion as I used the word *I* in "I was using K&R". To beat the horse a bit though... "many" people still consider hitting their kids a good method of discipline. Popularity isn't always correct :/

f(){
   a;
}

to

f()
{
}

as the first one is two boundary balanced. But like emacs vs vi it's a
religious issue....

I'm not sure what you mean by two boundary balanced. The second form creates an obvious vertical visual alignment that obviates the beginning and end of the block. If I recall correctly, K&R was promoted to save on paper... but who really prints code these days on paper (except maybe students) and authors of books.

Cheers,
Rob.
--
E-Mail Disclaimer: Information contained in this message and any
attached documents is considered confidential and legally protected.
This message is intended solely for the addressee(s). Disclosure,
copying, and distribution are prohibited unless authorized.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux