2 ms·
My favorite example is Pandas, which makes iterating a dataframe hard on purpose to encourage using vectorization.
by arnaudsm 5y ago
My favorite example is Pandas, which makes iterating a dataframe hard on purpose to encourage using vectorization.
- carterschonwald 5y agoI was explaining this exact quirk of pandas to someone recently! But I think a better goal is to make bad code patterns unduly tedious and good patterns very pleasant. There’s some cool idioms for library design in that direction that I’ve had fun doing