|
“Any programmer can write code that
a computer can understand. Professionals write code that other
programmers can understand.” (From MSDN Code Camp Speaker Les Smith’s
presentation on Refactoring code) From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of joe Any language can be done in a write once,
read never format. Readabilty is a function of the person writing the code, the
language can only help you accomplish what you are trying to do and are capable
of. If I saw code that was tough to read, in any language, I stick the blame
firmly with the person who wrote it, where it belongs. I have run into
situations where I have seen thousands of lines of _vbscript_ that I simply threw
away because the logic couldn't be followed due to how the script was written,
generally I replaced it with hundreds of lines of clearly written perl that
anyone could read. If you write perl well, it can be nearly self documenting.
But that isn't enough, you still comment the code to explain intent and what
the purpose of different things is. If I had to argue for a least
readable language, I would argue for cmd batch, but again, it is about the
person writing the code, not the language the code is written in. I have even
seen ASM that was written so cleanly and well with comments that anyone could
follow it. I think the problem a lot of people have
with perl is its flexibility. TIMTOWTDI. It is the core design of the language,
a loop can be done in many different ways instead of 1 or 2 ways that someone
may be used to seeing. For some people, giving flexibility to them is like
giving them a longer and longer rope to hang themselves. As I once read in one of the books or
heard from a friend or something... Perl is like playing the guitar, you can
usually do something pretty quickly, but the really cool stuff will take
practice. But on the positive side, it is possible to do the really cool stuff
and usually in a way that makes you feel good. I just had a bit of a conversation with
one of the Exchange Dev folks who was saying that with Monad, if I want to get
some piece of info about a mailbox from an Exchange 12 server I have to
return all of the info from the server and then filter out what I don't want to
use. The reason given was that is the Monad way... I visualize that like trying
to output whenChanged of an object and having to pull all attributes of the
object to do so. There is a tremendous hit to efficiency if that is the way it
is done. The big thing that scared me though was the comment... that is the
Monad way... What is the way? To assume you have unlimited bandwidth and time
so you can be fat and inefficient? joe[1] [1] Slowly emerging from being way too
submerged in work and other things... From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Roger Seielstad Honestly, I'd avoid perl like the plague.
Its about the least readable language on the planet - especially if you haven't
touched a script for a few months.
-------- From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tom Kern you don't think one can get by in IT with just one lang? can't you do everything in perl that you can do in _vbscript_ and then
some? I'm sure you can get by on windows with just perl. i'm in a multi platform enviorment and frankly i just don't have the
time to learn both _vbscript_ and perl. i would end up just knowing both a little and badly. my brain can't keep jumping from one to the other and in scripting, if
you don't use one lang for a while, you forget it. in which case i'd just end up bugging you guys on this list again for
examples. i'd like to get to the point where i can do it myself and trying to
learn both will never work for me. i have a hard enough time keeping as much as i can about windows and AD
and exchange and some linux stuff in my head. 2 scripting langs will make my head explode. i'll never remeber them at
all. i just need to learn one and devote myself to learning it well instead
of being a scripting jack of all trades and master of none. as to perl books, then where can one lern COM on perl? thanks alot guys! On 9/21/05, Brian
Desmond <[EMAIL PROTECTED]>
wrote: Joe Richards might know
some Win32 Perl resources. |
- RE: [ActiveDir] disabling users Thommes, Michael M.
- RE: [ActiveDir] disabling users joe
- RE: [ActiveDir] disabling users Lou Vega
