P
Paul Archer
I'm pretty new to Ruby, and while I've read (and mostly get) several books
on Ruby, I'm having trouble with one thing: Object Oriented programming.
Don't get me wrong, I get the concepts of OO. I can construct objects and
classes. The mechanics of it don't phase me.
I'm good with the how, I'm just a little fuzzy on the how much. To put it
in more concrete terms: I'm writing (or, rather, I want to write) a script
that takes incoming digital images from my camera and renames them and
puts them in a directory structure based on their date. Now, I have a
background in scripting (Bourne shell and Perl), and can see doing this in
a purely procedural way. But I'm not sure about how to do it in an OO way.
Do I represent each image as an object? What attributes should the objects
have?
So the question is: Are there any tutorials or resources that go more into
the appropriate use of OO programming, strategies for structuring classes,
rather than the nuts and bolts of creating objects and such?
Paul Archer
on Ruby, I'm having trouble with one thing: Object Oriented programming.
Don't get me wrong, I get the concepts of OO. I can construct objects and
classes. The mechanics of it don't phase me.
I'm good with the how, I'm just a little fuzzy on the how much. To put it
in more concrete terms: I'm writing (or, rather, I want to write) a script
that takes incoming digital images from my camera and renames them and
puts them in a directory structure based on their date. Now, I have a
background in scripting (Bourne shell and Perl), and can see doing this in
a purely procedural way. But I'm not sure about how to do it in an OO way.
Do I represent each image as an object? What attributes should the objects
have?
So the question is: Are there any tutorials or resources that go more into
the appropriate use of OO programming, strategies for structuring classes,
rather than the nuts and bolts of creating objects and such?
Paul Archer