3 ms·
> I have seen a single line of code passed through 4 "interface functions" before it is called that call each other sequentially, and are of course in separate
by taneq 2y ago
> I have seen a single line of code passed through 4 "interface functions" before it is called that call each other sequentially, and are of course in separate files in separate folders.
Procrustination. n. the act of writing an infinite regression of trivial nested 'helper' functions because you're not sure how to actually attack the problem you're trying to solve.
I worked with a guy that did this.
int CalcNumber(int input) { int val = GetNumberFromInput(input); return val; }
int GetNumberFromInput(int num) { int calcedNumber = 0; for (int i=0; i<1; i++) calcedNumber += NumberPart(i, num); return calcedNumber; }
int NumberPart(int part, int seed) { return actuallyGenerateNumberPart(part, seed); }
int actuallyGenerateNumberPart(int part, int seed) {
// todo
return 0;
}