Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Langauages

Name: Anonymous 2006-03-29 21:41

Post whatever programming language you think sucks the most. Flaming others in this thread is preferable.

You can also post whatever programming language is the best, however if you post that it's Java or some other faggoty shit I'll assume you meant it was the worst.

kthx

Name: Anonymous 2006-03-31 5:48

>>24
PHP shit code:
$array = array('lastname', 'email', 'phone');
$comma_separated = implode(',', $array);

Perl:
@array = ('lastname', 'email', 'phone');
$comma_separated = join ',', @array;

Now in PHP. At a glance, is $array, an array or a scalar?
WTF. How do I tell? I've to look through all the code to find the initialisation?

For perl, @array is an array. $array is a scalar. No confusion.

Also, what's with the use of explode and implode for function naming. If I'm spliting or joining some string up, just name the functions split or join. Not some ambiguous explode and implode, like what I'll do when I read PHP code, or have 32 other functions that do the same thing. preg_split(), spliti(), str_split(), explode(), shit_split(), brain_split(),

...

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List