Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Why I picked simple over correct

by adamsj (Hermit)
on Sep 10, 2002 at 17:47 UTC ( #196761=note: print w/replies, xml ) Need Help??


in reply to If I *had* to pick, I'd pick:

It's easier to correct simple code than to maintain correct but complex code. I'm thinking long-term here.

adamsj

They laughed at Joan of Arc, but she went right ahead and built it. --Gracie Allen

Replies are listed 'Best First'.
Re: Why I picked simple over correct
by tretin (Friar) on Sep 10, 2002 at 18:31 UTC
    You can pick your friends, and you can pick your nose, but you can't pick your friends nose...

    and also, picking your nose when noone is looking is still picking yournose.

    these don't have bearing on anything of value, but I just thought I had the right to post them :)
    work it harder make it better do it faster makes us stronger more than ever hour after our work is never over.
Re: Why I picked simple over correct
by kabel (Chaplain) on Sep 11, 2002 at 19:10 UTC
    i cannot see why programming in a "simple" way corresponds to a long term view. for me long term means that the capabilities of the code basis on which the scripts work is so adaptable that it need not be changed for a long time. this of course adds some complexity to the scripts but you can't avoid it. if you can manage that they keep simple then i consider the design beautiful - parallels to perl are not unintended ;)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://196761]
help
Chatterbox?
[Lady_Aleena]: You could quote it. <c>perl -e 'print "1.0"'>/c> returns 1.0
[Lady_Aleena]: perl -e 'my $var = "1.0"; print $var;' if it is in a variable also returns 1.0, though perl -e 'my $var = 1.0; print $var;' returns 1.
[1nickt]: In my case I can simply pass sprintf '%.1f', 1.0 (to Types::Standard:: Int), but what if you didn;t know the precision of the number you were working with? Seems I must be missing something. Oh well, my test list is complete, mooving on ...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2017-05-24 18:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?