Comment by richhhh

5 days ago

Kerrnigan’s law seems to apply:

Everyone knows that debugging is twice as hard as writing a program in the first place. So if you’re as clever as you can be when you write it, how will you ever debug it?

Agreed. Although it's also a bit worse than that for coding exclusively with macros. You have to add an extra degree of complexity for any additional code generator you add to your toolchain, when that path comes into play for debugging. Since we whole-buffalo'ed this situation, that's 100% of the code you could possibly need to debug.

  • Yes, precisely, that's when all that cleverness will come back to bite you hard.

    "Which line was that again? Oh... "

    Pics up the phone, dials.

    "Honey, I won't be home in time for dinner."