Comment on Ask HN: Examples of bad open-source code to learn what to avoid?Comments−otras7yIf you’re interested in a case of unnecessary optimization and effort, the infamous left-pad npm library has been refactored to only add to the string O(log(n)) times. It is short but not sweet.https://github.com/left-pad/left-pad#readme−ksaj7yI think it needs more // comments. Hilarious.
Comments
If you’re interested in a case of unnecessary optimization and effort, the infamous left-pad npm library has been refactored to only add to the string O(log(n)) times. It is short but not sweet.
https://github.com/left-pad/left-pad#readme
I think it needs more // comments. Hilarious.