4 ms·
I like your idea of what matter is what the program must do, and thus we must think firstly what will be the functions. I may be wrong, but once we have a 12 pa
by olivier1664 13y ago
I like your idea of what matter is what the program must do, and thus we must think firstly what will be the functions.
I may be wrong, but once we have a 12 parameters function, it may be interesting to factor out to more than one class. If I do this factorisation as a no-brain, I will create a "FooParameter" class with 12 getter and setter. It will be better to stop and think of what will be the easier to read. Ie do some abstraction work:
double getDistanceTravelled(Point[] relevedPositions)
instead of
double getDistanceTravelled(double[] x, double[] y)