import { utility} from StackOverflow

When you want a simple utility function that isn’t part of the standard library, what do you do? A. Find a library and use itB. Write the function and add it to an internally shared collectionC. Cut and paste from StackOverflow I’ve done all three in my twenty years of development, and I’m here to … Read moreimport { utility} from StackOverflow

Do Things Right with npm install

Lately I’ve been wrestling with npm. Here are some rules I’ve learned: Use `npm ci` rather than `npm install` `npm ci` will bring down exactly the dependencies specified in package-lock.json. `npm install` does more than that; it also tries to update some libraries to a more recent version. Sometimes it updates URLs or nonsense in … Read moreDo Things Right with npm install

Reuse

Developers have a love-hate relationship with code re-use. As in, we used to love it. We love our code and we want it to run everywhere and help everyone. We want to get faster with time by harnessing the work of our former selves.And yet, we come to hate it. Reuse means dependencies. It means … Read moreReuse

May I please have inlining for small dependencies?

Franklin Webber[1]  went on a quest to find out whetherutility code was better or worse than core code in open sourceprojects. Utility code is defined as anything necessary but not directly related to the application’smission. Franklin found that overall quality of utility code was higher, perhaps because this code changes less. He also found a lot … Read moreMay I please have inlining for small dependencies?