M
Mike Stephens
Object Orientation is conceptually about a sea of objects interacting
with each other. They are all however in one sea.
Earlier in Computer Science, we had stepwise refinement, which was a
tree-like view of application compartmentalisation. High level functions
would be split into lower level consituents and so on.
I was thinking to model that in Ruby you would like to be able to
contain classes within other classes in a similar tree like format, and
what a shame that Ruby doesn't let you do that.
But of course it does. However people don't talk about it. Hal Fulton in
his book The Ruby Way asks people to let him know if they can think of a
good use for this feature.
Do you ever use this? Can you see a reason why it doesn't seem to be
favoured?
with each other. They are all however in one sea.
Earlier in Computer Science, we had stepwise refinement, which was a
tree-like view of application compartmentalisation. High level functions
would be split into lower level consituents and so on.
I was thinking to model that in Ruby you would like to be able to
contain classes within other classes in a similar tree like format, and
what a shame that Ruby doesn't let you do that.
But of course it does. However people don't talk about it. Hal Fulton in
his book The Ruby Way asks people to let him know if they can think of a
good use for this feature.
Do you ever use this? Can you see a reason why it doesn't seem to be
favoured?