trying to write some c++ code and reading code complete, excellent and comprehensive. the example adt’s are all concrete, and im doing numerical simulation, in a simulation i guess the highest level of abstraction is simulated paths, so that’s an adt. he also says to use adt’s for everything, maybe, but i think what i learnt from scripting languages is not to overdo it.
also oliviera says that an important object in numerics is the function object or functor, and gives the trapezoidal integration rule. interesting. in math, i think a function is an adt actually, and there’s a base adt and then other functions is-a function as adts.
Advertisement