9. The Invention of the Wheel
In codding, it's often useful to reinvent the wheel. It's a flexible and rapidly changing field of knowledge, and no team can keep up with all the updates and new requirements. For instance, if you need a wheel that changes its rotation speed depending on the time of day, it may make sense to reinvent it and create a new one. But if you need a wheel for its usual purpose, please don't reinvent it. Just take an ordinary wheel and use it.
Sometimes it can be challenging to choose the right wheel because of the variety available. That's why it's essential to do your research and try it out before you buy it. Most "software wheels" are free and open source, so if possible, use open source. They are easy to debug, improve, replace, and maintain.
However, if you only need the wheel, don't buy the whole machine and bolt it to another machine in place of the wheel. Don't hook up an entire library for the sake of one or two functions. If you want the shuffle function from the lodash library, import just that. Don't plug in the whole lodash. This will help keep your code clean and organized, making it easier to maintain and debug.
Last updated