Archive for the ‘Language’ category

Why perl still sucks…

July 19th, 2006

Today I had to get perl up and running on a new CentOS machine, and I remembered why I don’t like perl.  I tried to do everything from the CPAN system.  I got things working after hunting and doing things by hand, but the crux of the problem was:

perl -MCPAN -e shell

>install HTML::Mason

… needs to install Module::Build …

… Module::Build dies stating that it can’t find version.pm …

>install version

… dies stating that it can’t find Module/Build.pm

*CIRCULAR DEPENDANCIES* suck.  In all my years of dealing with compiling and installing PHP, I can’t recall ever coming across one.  It might have happened in PEAR, which I rarely use, but certainly not in the core system.  Yes, it’s apples and oranges, because my core perl was working, but you can not be effective with perl without CPAN up and running, while in PHP you can.

In the end, I had to make a ‘version’ directory in the /usr/lib/perl5/perl5.8.5 directory, well, I’ll just show you.

>mkdir /usr/lib/perl5/5.8.5/version

>cp /root/.cpan/build/version-0.65.1/lib/version.pm /usr/lib/perl5/5.8.5/

>cp /root/.cpan/build/version-0.65.1/vperl/vpp.pm /usr/lib/perl5/5.8.5/version

Yes, I finally got it working.  No, the perl tools didn’t help me – I had to fight against them then do stuff by hand.  It’s these sorts of things which are continually marginalizing perl (over and above difficult-to-read code).

Why perl still sucks…

July 19th, 2006

Today I had to get perl up and running on a new CentOS machine, and I remembered why I don’t like perl.  I tried to do everything from the CPAN system.  I got things working after hunting and doing things by hand, but the crux of the problem was:

perl -MCPAN -e shell

>install HTML::Mason

… needs to install Module::Build …

… Module::Build dies stating that it can’t find version.pm …

>install version

… dies stating that it can’t find Module/Build.pm

*CIRCULAR DEPENDANCIES* suck.  In all my years of dealing with compiling and installing PHP, I can’t recall ever coming across one.  It might have happened in PEAR, which I rarely use, but certainly not in the core system.  Yes, it’s apples and oranges, because my core perl was working, but you can not be effective with perl without CPAN up and running, while in PHP you can.

In the end, I had to make a ‘version’ directory in the /usr/lib/perl5/perl5.8.5 directory, well, I’ll just show you.

>mkdir /usr/lib/perl5/5.8.5/version

>cp /root/.cpan/build/version-0.65.1/lib/version.pm /usr/lib/perl5/5.8.5/

>cp /root/.cpan/build/version-0.65.1/vperl/vpp.pm /usr/lib/perl5/5.8.5/version

Yes, I finally got it working.  No, the perl tools didn’t help me – I had to fight against them then do stuff by hand.  It’s these sorts of things which are continually marginalizing perl (over and above difficult-to-read code).

New word

June 29th, 2006

“aproposnent”  n.  someone who supports what seems to be the most pertinent idea or thing.

Is he Chinese?

June 15th, 2006

I’ve had more than a passing interest in foreign languages over the years. I took the requisite Spanish in high school (4 years), including a summer abroad in Spain (hola la familia espinosa!). While I was never fluent in Spanish, I could passably read basic texts (newspapers, etc) and function overseas as a tourist :) . I was confident in my skills and interest enough to take 2 (or 3?) years of Spanish in college, but I realized I was simply not that good/interested to be that diligent about the study part.

I thought perhaps it was Spanish that was difficult, so I tried my hand at Japanese – 1 year in college – and that was worse. The different writing system and language made it doubly hard to get ahead. I can successfully say ‘hello’, ‘goodbye’, ‘thank you’, ‘please’, and a few other basics, as I can in Spanish.

I was inspired to begin trying my hand at Chinese, at least to understand that basics, by my brother Mark. He’s simply amazing with languages, having taught himself both Chinese (mandarin) and Japanese. He’s been to Japan, and can speak fluently with native born Chinese. He’s also great with computer languages – java/c/python/php/etc. Just has a knack for languages, I guess.

Another brother Matt (no link) recently surprised me by going to Russia, and apparently he’s studied Russian for awhile. And he’s decent with Spanish as well. So everyone in the family seems to know and be more fluent in multiple languages than me!

In the interest of trying to be able to be polite in multiple languages, I thought I’d at least learn hello/thankyou/please in as many languages as I can. I know I won’t have much chance to use them, but I did have a chance at the local Chinese Buffet restaurant the other day. I paid for my food and said ‘thank you’ in Chinese to the checkout girl. She looked a bit surprised that I did that, so I explained that my brother spoke Chinese and I was just learning a few words. She then asked me where my brother was from. “Detroit” I said. “Is he Chinese?” she asked me.

Now, while I understand that there are mixed race families, and that I or my brother could be half-brothers, adopted brothers, step-brothers or something else, I still found the question extremely out of left field. When I related this to Mark, he mentioned that many Chinese people (and Japanese) here in the States don’t really believe many native-born Americans can speak or really understand their language, and are a bit distrustful of non-Chinese (or non-Japanese) people who speak the language. Perhaps that’s an oversimplification, but no one has ever asked me if I or anyone in my family was Mexican simply because I could say “gracias” or “adios”.