Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
There's more than one way to do things
 
PerlMonks  

Re^4: alternatives to if and series of elsif

by QM (Vicar)
on Jul 05, 2005 at 20:49 UTC ( #472596=note: print w/ replies, xml ) Need Help??


in reply to Re^3: alternatives to if and series of elsif
in thread alternatives to if and series of elsif

Homework?!

All of this reminds me of trying to do the table-creation/lookup in Pascal (on proprietary equipment, so the language was chosen for me). I had to create index arrays for each dimension, and I had to make it generic enough so when a breakpoint changed, I only had to update one number (and the breakpoints changed daily). It was all a big mess of brackets and parens.

In fact, it was so ugly (even after max beautification), I felt I had to write a 2 paragraph explanation for the single line table population statement. And then added a "Don't touch this unless you know what you're doing. In fact, just don't touch it, because you don't know, and you don't need to."

I wonder if that code is still there?

-QM
--
Quantum Mechanics: The dreams stuff is made of


Comment on Re^4: alternatives to if and series of elsif

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://472596]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2014-04-20 04:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls