in reply to hangover from perl...
While at a php gig, I would use perl style comments. This isn't bad. php inherited perl's/shell's commenting style as well as c's. Anyway, I had a line I wnated to comment, and used the pound/number sign: #. Things worked fine.
They pushed a release out with my new code, and everything started breaking left and right. Ugly sight. Eventually, the "CTO" of the company went out into production and looked at my code. "What is this?!" Pointing at my humble pound symbol. "It's a comment." A whole bruhaha was started about how comments are not allowed in production code and what not. First I had heard of the rule. THey traced it back to a process that would strip out comments and extra spaces, 'cause php would be "that much faster without extra characters"..
Consequentally, out of 20 or so developers, none of them ever heard of using # symbols for comments in php. :\
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
hangover from basic...
by the_hunter (Initiate) on Apr 27, 2004 at 15:55 UTC | |
|
Re: Re: hangover from perl...
by theorbtwo (Prior) on Apr 27, 2004 at 15:56 UTC | |
by exussum0 (Vicar) on Apr 27, 2004 at 16:00 UTC | |
|
Re: Re: hangover from perl...
by ambrus (Abbot) on Apr 27, 2004 at 19:18 UTC | |
by exussum0 (Vicar) on Apr 27, 2004 at 19:21 UTC | |
by hardburn (Abbot) on Apr 27, 2004 at 19:30 UTC | |
by exussum0 (Vicar) on Apr 27, 2004 at 19:34 UTC | |
|
Re: Re: hangover from perl...
by hardburn (Abbot) on Apr 27, 2004 at 17:41 UTC | |
|
Re: Re: hangover from perl...
by jdporter (Paladin) on Apr 28, 2004 at 01:52 UTC | |
by exussum0 (Vicar) on Apr 28, 2004 at 02:30 UTC |