3 ms·
If you wrapped that "unique" implementation in some kind of reusable construct, it would be even easier to use, and it would be easy to replace with a more effi
by minitech 10y ago
If you wrapped that "unique" implementation in some kind of reusable construct, it would be even easier to use, and it would be easy to replace with a more efficient implementation. Hmm.
- glial 10y agoThat's true, but you also increase your technical debt and decrease readability by people not familiar with the library.
- lexicality 10y agoI would cheerfully argue that repeating non obvious code that could easily be wrapped in a documented function with an obvious name raises technical debt considerably more than causing someone to briefly wonder what a function called 'unique' that operates on an array does.