- half second vs 22050 samples (audio)
- 10 seconds vs 300 frames (video)
- 220 instead of 1048576 (sizes that could be FFT'ed easier)
function fftSomething(data, size) if(size < 20) size = 2size end if bla bla bla... end function ffTSomething
Of course, I could have done a unit conversion before using the function. It would also be more difficult to use unusual numeric values. Things could go wrong if someone doesn't know that the function is doing this. But as for my personal programming, wherein I only deliver the results and not the code, where saving in thinking time is preferred over strictness and efficiency, where I know what typical values are used, this style works for me.