3 ms·
Only if you don't know what you're doing and need to write several algorithms that you can try out at runtime :/ It's an absurd use case IMHO
by axod 16y ago
Only if you don't know what you're doing and need to write several algorithms that you can try out at runtime :/ It's an absurd use case IMHO
- kenjackson 16y agoThis simplification is just as wrong as the blog post. It's very common to invoke different algithms based on specific instances of the data. To give a baby example, its typical that one uses a different sorting algorithm as a function of size and data distribution and key type. Theres a popular fft package, FFTW, that is based on this as well.
- axod 16y agoI wasn't saying that you can't use different algorithms based on inputs/data/circumstances. The issue I have is articles like this always try to make things stupidly configurable and general - like "I want to be able to hot swap this algorithm at runtime".