Skip to content
TopicTracker
From utcc.utoronto.ca/~cksView original
TranslationTranslation

Sometimes, non-general solutions are the right answer

A Python program that displays Linux cgroup memory information evolved from showing two fields to needing three. The author considered creating a general solution for any number of fields but opted for a simpler hard-coded three-field version with a new command line option. This pragmatic approach provided immediate functionality without requiring a major redesign.