←back to thread

71 points zobweyt | 2 comments | | HN request time: 0s | source
Show context
lnenad ◴[] No.43555030[source]
I might be jaded, but I think having libraries for such simple use cases leads to the inevitable `left-pad` situation.

When I say simple use cases I mean that since you probably don't need all of these functions at once that it would be easier to copy the code you need if you don't feel comfortable writing it instead of adding yetanotherlibrary to your dependency tree.

replies(2): >>43555094 #>>43558678 #
zobweyt ◴[] No.43555094[source]
I understand your perspective, and it's a valid concern. However, this library is designed to support not only simple use cases but also more advanced scenarios, providing a comprehensive solution for various needs. Additionally, it has zero dependencies, which helps keep your project lightweight. This way, you can benefit from the library's features without adding unnecessary complexity to your dependency tree. Thank you for sharing your thoughts!
replies(1): >>43555252 #
lnenad ◴[] No.43555252[source]
Nah it's not you or your library, there is definitely a place for such utilities. The issue is broader, related to everyone installing libs for two liners and having bajillion dependencies.
replies(1): >>43555283 #
1. axegon_ ◴[] No.43555283{3}[source]
Don't forget space... npm install and 500GBs go "bye-bye"
replies(1): >>43555316 #
2. lnenad ◴[] No.43555316[source]
Hey I'll have you know that memory is cheap nowadays and that I'd be happy to fill out my drives with node libraries for converting a's into A's.