7 ms·
Not every day but often enough, for sure. Usually it's really nothing special, just a simple abstraction that helps prevent boilerplate accumulation and possib
by kafkaesq 10y ago
Not every day but often enough, for sure. Usually it's really nothing special, just a simple abstraction that helps prevent boilerplate accumulation and possible error sources throughout the rest of the codebase (or head off external dependencies).
For example, rather than import some all-things-to-all-people, infinitely scalable graph theory package, sometimes it's better to just spend 45 minutes writing a simple vertex-to-vertex map (to provide a piece of functionality that you know won't change).
Heck, sometimes it's even substantially quicker to roll your own data structure than go searching for a mature library that claims to provide it (and evaluate whether it's really properly maintained or won't otherwise impose technical debt on your project). What's key is knowing when to make that judgement call, of course.