C programmers

| 2 Comments
While I have nothing against C, or C developers, it hurts to program in a Perl App, when a C developer has been present:

<code>
if ( exists $self->[kCLASS_NDX]->{$class} )
</code>
at the top of the file there are a bunch of constants declared, instead of some oo:
<code>
if ( exists $self->class_index($class))
</code>
Or even just using perl constructs::
<code>
if ( exists $self->{'kCLASS_NDX'}->{$class} )
</code>

That really is the same thing as they wanted to begin with isn't it? It just hurts to look at this code.

2 Comments

I don't know about other C programmers, but I am sorry we hurt you. May I offer you an hug? Also I will personally try to cut my C-ism. :D

but... but... arrays are FASTA!

About this Entry

This page contains a single entry by leonard published on September 10, 2010 9:34 AM.

Happy Labor day! was the previous entry in this blog.

CSRF, what does it mean, and what is the best way to prevent it? is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.