Replies: 3 comments 1 reply
-
In my opinion, it makes sense. And if something goes wrong, we could replace the helpers with our own implementations again. But I understand that this library is properly tested and it will save us of writing trivial code (with its share of bugs). |
Beta Was this translation helpful? Give feedback.
1 reply
-
I do not oppose. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Status update: I've been working a bit on this. I'll put in on hold for a couple of weeks, at least until v 12.2 is published. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First of all, let me clarify that I'm aware of the disadvantages of excessive reliance on dependencies and did not forget the https://en.wikipedia.org/wiki/Npm_left-pad_incident
Moreover, when it comes to dependencies, I always think of the picture below.
However, I realized recently that we could rely on https://radashi.js.org/ to stop writing the utilities ourselves. It already provides our
noop
,isEmpty
(recently added by myself),isObject
,isObjectEmpty
through itsisEmpty
,partition
(which they callfork
), etc.We can benefit from its use by writing and maintaining less code, documentation, and tests. Rather than reinventing the wheel, we could focus on Agama features instead :P
Please, note that it is built for TypeScript and fully tree-shakeable.
Beta Was this translation helpful? Give feedback.
All reactions