Get the weirdnesses into the data where you can manipulate them easily, and the regularity into the code because regular code is a lot easier to work with
Brian KernighanAs we said in the preface to the first edition, C "wears well as one's experience with it grows." With a decade more experience, we still feel that way.
Brian Kernighan