Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Data Structures

by YYCseismic (Beadle)
on May 02, 2008 at 16:10 UTC ( #684202=note: print w/replies, xml ) Need Help??


in reply to Re: Data Structures
in thread Data Structures

Yes, I suppose I am talking more about interface here, rather than performance. I do want the program to be fast and efficient at what it does, but I also want it to be an easy-to-use and efficient tool for loading surveys. The previous version of the program looks to me more like a kludge rather than something that was well thought out with some semblance of design taken in to account.

The possibility of using OO code had crossed my mind, but I was not sure I'd know how to do it properly. (I certainly do like the sample you have shown!) Fortunately, this project is not a priority, so I'm basically working on it during "down-time", which allows me to learn a lot in the process. Can you (or anyone) recommend any specific books for helping to learn poop?

Replies are listed 'Best First'.
Re^3: Data Structures
by leocharre (Priest) on May 02, 2008 at 19:11 UTC

    Very good attitude.

    Once you go over the learning curve, this is all going to make so much sense to you that you'll be jumping up and down throwing confetti at random strangers and nobody will understand... but that's ok.. we understand.

    It will not take long to get it, and seriously- it will be a blast. You can still have very intricate ways of associating and storing data but you can have an incredibly simple way to get to it.

    With OO, you think of the modules (classes) as blue prints, as instructions on how to build something. And objects are the thing made, the houses built from the blue print, alive- and this only happens when you 'instance' (new) from a module(class).

    You have your architect's plan, and you build from it 5 houses, they all have different addresses and people inside them, but you only needed one plan.

    Anywho, forget everything I said and try it out. You can get an example working and understood in a few hours. After that you will think you 'got it'- and then a few days later you'll start to more honestly get it. This is what I went through.

    Do you have the OReilly Porgramming Perl book? You should have a copy, you can get it off amazon for 10 bucks. You'll need it- it's very handy.

    This is (un?)fortunately going to be an adventure, learning OO. There is no one place to 'learn' it. You will have to scavenge various sources, from each place you will attain a new facet of understanding. And you will have to experiment endlessly- which you will probably do out of sheer curiosity if not out of need.

    Search the turorials section, there's really some very good stuff in there.

    Most important, do not get discouraged if it's weird. Don't give up on the concepts until you can tell yourself you really understand what the idea of oo is.

    I love good ol bash and straight empirical(is it?) functional programming - but for complicated stuff with thousands of lines of code...screw that! I need pOOp. (sorry... it's Friday...)

    (Please excuse the very loose non technical language in this post).

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2021-04-22 03:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?