You know your programming lang sucks when you have this
9 Comments so far
Leave a comment
I was playing around with a wordpress plugin!, i saw this jem!
$file = $file['file'];
WTF!?!?!?!?!?
++++++++++++++
UPDATE
++++++++++++++
Upon further thought!!!, i think you guys are right!, this is not the language’s fault. The variable names should have been named more clearly. NOW STOP BADGERING ME ABOUT THIS.
9 Comments so far
Leave a comment
It’s gem, not jem. Go back to school.
Comment by Anonymous June 7, 2008 @ 6:26 pmscrew you hippie!, this is my blog, and in my blog, its not gem, not jem!.
Comment by mozey June 8, 2008 @ 12:11 amIt’s not the language that sucks, it’s clearly the rockstar developer who wrote that code.
Because you could write that screwed up line in almost any language.
Comment by hoba June 9, 2008 @ 8:16 amAnd it’s the programming languages fault when the developer decides to use bad variable names?
Comment by Anonymous June 9, 2008 @ 11:45 amIn python it would be
file = file[‘file’]
so… python sucks too? π
Are you saying that all dynamic variable languages suck?
Bye.
Comment by Shu June 9, 2008 @ 12:43 pmYou can’t blame PHP for that. At first I thought maybe the script was uploading a file through a file form field, but that would be passed as $_FILES[‘fieldname’]. If the field in the HTML were named file then it would be $_FILES[‘file’], but no. Those variables are named by the programmer, and might be ok depending on the rest of the code. It is, at least, descriptive. Much better than some code I’ve seen with variables named $rbz, $aaa, and $t.
Comment by Joshua Ditty June 9, 2008 @ 1:55 pmMakes perfect sense to me π
Comment by Richard@Home June 9, 2008 @ 2:30 pmI’m surprised you were intelligent enough to identify that WordPress was composed using PHP.
This is more appropriate for the context:
$i = $like[‘men’];
Comment by Anonymous Coward June 12, 2008 @ 10:32 pmP.S. ever seen fight club?
** EDITED
Hello Anonymous,
Look, its perfectly okay if you like men!, there is nothing wrong with that!. Your family will support you, so well all of us. And yes fightclub was a good movie, i never read the book!, but apparently, the dude who wrote it, also did this other book about “invisible monsters”, creepy stuff!.
And thank you for coming out on my blog, i’m humbled by the honor.
Comment by mozey June 13, 2008 @ 2:18 pm