C++ from 14 years ago:
https://github.com/vlofgren/tunguska/blob/master/tunguska_3c...
A career of Java development later, and the code I wrote yesterday looks like this:
https://git.marginalia.nu/marginalia/marginalia.nu/src/commi...
My old code was so tidy. Can't believe I wrote code like that. Although back then I think I mostly used vim. Not having any sort of IDE tooling does sort of tend to force you to be a lot clearer about what you do.
> Not having any sort of IDE tooling does sort of tend to force you to be a lot clearer about what you do.
True, but then I wouldn't be able to play whack-a-mole with pointer symbols during weird code-pairing exercises.
I have a differing framework to an SPA, to an API, and to personal utility scripts. Amplified by adding in co-workers and contributors.
The Golden Question becomes how to communicate philosophy to a broad and diverse audience, be it co-workers or open-source.
My code looks like a poem, others looks like chicken scratch.
There is good code from other - but I feel many lack discipline in their initial approach and long term maintenance. In things as banal as variables. Not as a nit-pick but as a way of life.
It seems… concerning.
Whenever I try to polish some piece of code into some immaculate crystal it only takes a short while before I go and make some change to it and then it looks like crap again.
I try to keep it at a level where it doesn't get too out of hand it can't be refactored in an afternoon, while at the same time refraining from masturbatory polish.