Isn’t it a lot of tools that we need to work with on daily basis? How big is your package.json file? Do you know what each dependency is doing? I’ve assumed here that all of them have a purpose in your project. So this is an assumption, and here’s the fact — each of them has name, which you probably need to remember. Some describe its usage — like anti-ecological tree-kill, some not. It could take forever to guess what forever is doing. Some names are similar but serve different purpose, like pad-left and lpad. Can you guess without clicking?
Rest of us instead of finding well-suited names, often take random words and use it as name for our code. We, the programmers, like certain words more than the others. For example, wrapper (bin-wrapper, do-wrapper, word-wrapper, events-wrapper, circuit-breaker-wrapper). There’s even a rapper. But it’s not normal rapper like Eminem, it’s more like:
Construct wrappers around api RESTful endpoints (Browser/Angular/Node)
So basically rapper will give you wrapper.
Example: take stupid and other words and it’ll make your library name. Like: stupid + dictionary = stupid-dictionary. Yeah, dictionary can totally be stupid. What’s also stupid or frustrating. Maybe delay. Yeah, why not, waiting and delays definitely suck. Let’s combine stupid + delay. Here we go, stupid-delay! Oh, no, both already taken! Time is running away. Pardon, names are running away!
I hope that you agree with me now that we need to take care of this problem before our kids have to! We can’t leave them with this ultra-hard-to-solve problem!
2. We can use QR codes, images, author’s voice sample, something unique and put it instead of name in our package.json.
3. We can try to unify everything as Romans tried or Esperanto. Merging every module out there to Node API or browser API seems like a good idea for a start. We could get rid of all dependencies!
The choice is yours.
I’m Daniel Kmak. If you’ve enjoyed this text please follow my blog: http://danielkmak.com/blog.
If any questions, ideas come to your mind or you’d just like to talk contact me at [email protected]
Be sure to don’t miss this story: https://medium.com/@danielkmak/how-i-used-stack-overflow-github-to-get-dream-job-before-19-without-degree-8cb5184e2bec.
Create your free account to unlock your custom reading experience.