Help - Search - Members - Calendar
Full Version: Code Quality
CubeCart Forums > General > General Discussion
gwizard
Just saw this one on one of the forums....

if($pay == 3){ $pay = 3; }else{ $pay = $pay; }
Bless the anonymous Indian developer

tongue.gif
Brivtech
You saw that here?

That'll be Martin fooling around no doubt. I've seen many little quirks within the code, and his annotations are often good for a laugh (Although sometimes, they simply confuse when they've been typed wrong).
greebowarrior
that's certainly not one of mine, i usually write small elseifs as ternary logic. </geek>

@Brivtech: what do you mean typed wrong? have i spacked up some comments? (bear in mind that the worst are actually Als wink.gif )
Al
Thats it...... your sacked!
greebowarrior
*logs into server*
$ su root
$ rm -rf /

tongue.gif
Sir William
> SELECT * FROM users WHERE clue != '';
> 0 ROWS RETURNED;


....figures....


w00t.gif
greebowarrior
$ mv /home/martin /pub/ | more beer
Brivtech
Personally, I love the annecdotal annotations. We should see more!

The ones that worry me are the ones that duplicate themselves when they refer sto something new, because a blockof code was probably copied and pasted, and tweaked, but the annotation forgotten. Of course, I wouldn't want to be accused again of being a pedant, so I'm keeping them to myself now. wink.gif
Rikki
QUOTE(Brivtech @ Nov 22 2007, 10:33 AM) *
Personally, I love the annecdotal annotations. We should see more!

The ones that worry me are the ones that duplicate themselves when they refer sto something new, because a blockof code was probably copied and pasted, and tweaked, but the annotation forgotten. Of course, I wouldn't want to be accused again of being a pedant, so I'm keeping them to myself now. wink.gif


biggrin.gif

Reminds me of...

Brivtech
I like it!
Babysittah
QUOTE(Rikki @ Nov 22 2007, 12:05 PM) *
QUOTE(Brivtech @ Nov 22 2007, 10:33 AM) *

Personally, I love the annecdotal annotations. We should see more!

The ones that worry me are the ones that duplicate themselves when they refer sto something new, because a blockof code was probably copied and pasted, and tweaked, but the annotation forgotten. Of course, I wouldn't want to be accused again of being a pedant, so I'm keeping them to myself now. wink.gif


biggrin.gif

Reminds me of...



Yep, 4 sho! smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.