Digital Defiant Studios

Published: 2015-11-08 00:00:00 -0800

Tips for creating a classic, useful programming library

Getting started

First off, follow the UNIX philosophy - do one thing, really well.

But how?

Take a very generalized, preferably generic concept (something very wide, not deeply domain specific - e.g. string formatting, pluralization, currency conversion), and explore the topic in as great deal as possible, providing neat, simple, modular, composeable utility functions, with easy to understand, consistent API, and unit tests.

For example, these are timeless libraries for most languages:

  1. string formatting/filtering
  2. math functions
  3. word translation
  4. string modification
  5. pluralization
  6. color code translation/generation
  7. munging/text processing
  8. low-level abstractions (machine, etc)

Try it out! Find a topic that interests you, apply your knowledge in detail, or do lots of research, and then solve the problem(s) with small, bite-sized functions that can be put together to create more complex modules.