Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #8430
| From | Simon <bad@example.com> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: simpletest vs phpunit vs ... |
| Date | 2013-02-22 14:06 +0200 |
| Message-ID | <aop5abF6oahU1@mid.individual.net> (permalink) |
| References | <aogq26FaaoiU1@mid.individual.net> <aond6kFphqiU1@mid.individual.net> <kg650d$818$1@news.xmission.com> <kg66k7$b7j$1@news.albasani.net> <kg6ff8$jvi$1@news.xmission.com> |
On 2013/02/22 12:49 PM, Tim Streater wrote:>> >> I've been paid to write software for 35 years. I have only been doing it for +15 years... >> >> >The rule of 'more lines of comment than code' holds... >> >> IMO, unless you are citing sources for complex scientific computation, >> or algorithms from a referenced source (i.e. "I took this from Knuth, >> Art of Computer Programming, Volume II, pg. 235"), the need for >> comments indicates that your code isn't clear enough to begin with. > > That code might be clear now, but wait a few months. Or get the view of > the poor bugger who is now *maintaining* your code. > I tend to take the middle ground approach. Good function/variable names usually go a long way to make the code clear. I also tend to limit the length of my functions, the shorter the better. I add comments as much as possible, but I don't write an essay explaining why I took the approach I did. Well written code should speak for itself, even many months later. Simon
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
simpletest vs phpunit vs ... Simon <bad@example.com> - 2013-02-19 10:05 +0200
Re: simpletest vs phpunit vs ... Jerry Stuckle <jstucklex@attglobal.net> - 2013-02-19 08:22 -0500
Re: simpletest vs phpunit vs ... Goran <goran@nospam.com> - 2013-02-21 11:09 +0100
Re: simpletest vs phpunit vs ... Scott Johnson <noonehome@chalupasworld.com> - 2013-02-21 05:40 -0800
Re: simpletest vs phpunit vs ... Goran <goran@nospam.com> - 2013-02-22 09:05 +0100
Re: simpletest vs phpunit vs ... Jerry Stuckle <jstucklex@attglobal.net> - 2013-02-22 08:52 -0500
Re: simpletest vs phpunit vs ... Goran <goran@nospam.com> - 2013-02-22 16:03 +0100
Re: simpletest vs phpunit vs ... Jerry Stuckle <jstucklex@attglobal.net> - 2013-02-22 10:14 -0500
Re: simpletest vs phpunit vs ... legalize+jeeves@mail.xmission.com (Richard) - 2013-02-21 19:27 +0000
Re: simpletest vs phpunit vs ... Chris Riesbeck <Chris.Riesbeck@gmail.com> - 2013-02-21 14:08 -0600
Re: simpletest vs phpunit vs ... legalize+jeeves@mail.xmission.com (Richard) - 2013-02-21 21:53 +0000
Re: simpletest vs phpunit vs ... The Natural Philosopher <tnp@invalid.invalid> - 2013-02-21 22:20 +0000
Re: simpletest vs phpunit vs ... legalize+jeeves@mail.xmission.com (Richard) - 2013-02-22 00:51 +0000
Re: simpletest vs phpunit vs ... "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2013-02-22 11:29 +0100
Re: simpletest vs phpunit vs ... legalize+jeeves@mail.xmission.com (Richard) - 2013-02-22 20:21 +0000
Re: simpletest vs phpunit vs ... Tim Streater <timstreater@greenbee.net> - 2013-02-22 10:49 +0000
Re: simpletest vs phpunit vs ... legalize+jeeves@mail.xmission.com (Richard) - 2013-02-22 20:23 +0000
Re: simpletest vs phpunit vs ... Anders Wegge Keller <wegge@wegge.dk> - 2013-02-22 21:41 +0100
Re: simpletest vs phpunit vs ... legalize+jeeves@mail.xmission.com (Richard) - 2013-02-23 00:39 +0000
Re: simpletest vs phpunit vs ... Jerry Stuckle <jstucklex@attglobal.net> - 2013-02-22 19:51 -0500
Re: simpletest vs phpunit vs ... legalize+jeeves@mail.xmission.com (Richard) - 2013-02-24 23:49 +0000
Re: simpletest vs phpunit vs ... Jerry Stuckle <jstucklex@attglobal.net> - 2013-02-24 20:17 -0500
Re: simpletest vs phpunit vs ... Anders Wegge Keller <wegge@wegge.dk> - 2013-02-23 07:51 +0100
Re: simpletest vs phpunit vs ... legalize+jeeves@mail.xmission.com (Richard) - 2013-02-25 00:03 +0000
Re: simpletest vs phpunit vs ... Anders Wegge Keller <wegge@wegge.dk> - 2013-02-25 19:28 +0100
Re: simpletest vs phpunit vs ... "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2013-02-22 12:24 +0100
Re: simpletest vs phpunit vs ... legalize+jeeves@mail.xmission.com (Richard) - 2013-02-22 20:26 +0000
Re: simpletest vs phpunit vs ... Simon <bad@example.com> - 2013-02-22 14:06 +0200
Re: simpletest vs phpunit vs ... Jerry Stuckle <jstucklex@attglobal.net> - 2013-02-22 08:57 -0500
Re: simpletest vs phpunit vs ... bill <william@TechServSys.com> - 2013-02-22 10:55 -0500
Re: simpletest vs phpunit vs ... legalize+jeeves@mail.xmission.com (Richard) - 2013-02-22 20:27 +0000
Re: simpletest vs phpunit vs ... Jerry Stuckle <jstucklex@attglobal.net> - 2013-02-22 16:57 -0500
Re: simpletest vs phpunit vs ... Simon <bad@example.com> - 2013-02-22 14:15 +0200
Re: simpletest vs phpunit vs ... Martin Musatov <marty.musatov@gmail.com> - 2013-02-22 23:38 -0800
csiph-web