3 ms·
Counter argument: 1000 one-liners may each need less maintenance. And bugs are more self contained. The example in the article is the Fibonacci algorithm and g
by vineyardmike 3y ago
Counter argument: 1000 one-liners may each need less maintenance. And bugs are more self contained.
The example in the article is the Fibonacci algorithm and general helper methods. A “remove whitespace” method could easily be set and forgotten (esp with testing). A 1000 line library probably needs maintenance because there is more moving parts and if there’s a bug, you’ll have to test/update a lot more things.
I think the solution to the problems raised are not small libraries but a large standard library with good composable tools. I don’t know the specifics of erlang but in many programming languages things like remove a string whitespace is easy to do inline with the STDLIB instead of downloading a helper method, either in a bigger context or alone.