Brandon Streiff
2005-10-02 21:08:54 UTC
Pointer-arithmetic is fun!
... when you're writing C. Not Java pretending to be C.
It would be nice to have some javadoc comments for functions... I mean,
it'd be nice to know what, say, SlideAndDecrement should return. The
node's index? It's parent? The current US national debt mod 256?
Or what 'work down the tree' in updateRevAdaptive really means aside
from some sort of kinky action that would make an environmentalist cry.
Sigh.
And this whole represent-the-tree-as-an-array thing is... odd. I am very
very tempted to gut the whole thing and actually have a proper tree
structure, since manipulating array indices directly totally breaks the
object-oriented paradigm (omigod not that word) that Java is designed
for. (as opposed to, say, a Tree class backed by an array implementation)
-- brandon
... when you're writing C. Not Java pretending to be C.
It would be nice to have some javadoc comments for functions... I mean,
it'd be nice to know what, say, SlideAndDecrement should return. The
node's index? It's parent? The current US national debt mod 256?
Or what 'work down the tree' in updateRevAdaptive really means aside
from some sort of kinky action that would make an environmentalist cry.
Sigh.
And this whole represent-the-tree-as-an-array thing is... odd. I am very
very tempted to gut the whole thing and actually have a proper tree
structure, since manipulating array indices directly totally breaks the
object-oriented paradigm (omigod not that word) that Java is designed
for. (as opposed to, say, a Tree class backed by an array implementation)
-- brandon