3 ms·
>>In Java it would be a nest of SortComparator interfaces and SortAlgorithm implementors, which would act to hide the algorithm itself. Java developer here, no
by felipemnoa 5y ago
>>In Java it would be a nest of SortComparator interfaces and SortAlgorithm implementors, which would act to hide the algorithm itself.
Java developer here, no such thing. I guess it varies based on who is doing the coding. Although, I did start out as a C developer.
I would only write code like that if the use-case called for it. Otherwise, no.
Writing code is more of an art form, some times you may need to do crazy stuff like that, but a lot of times not.
KISS