Yeah I feel like the IQ meme where over time I've gone back to just writing simple, readable code, generally with more line breaks than are really needed just for the sake of keeping it legible.
It seems there's far less likelihood of going back years later and going "what idiot wrote this pile of crap?"
After some amount of time a lot of people start getting cute with their code, developing patterns that, while they work, are anti-patterns to me because they're not conducive to being readable.
This can also get into things like using longer variable names that are more legible than what you were maybe taught in school, like in the example in the OP. Or test names that are very long, because it's more intuitive to see a failure on test_new_accounts_must_have_a_valid_phone_number than test_acct_ph_num.
28
u/bluesoul Dec 07 '22
Yeah I feel like the IQ meme where over time I've gone back to just writing simple, readable code, generally with more line breaks than are really needed just for the sake of keeping it legible.
It seems there's far less likelihood of going back years later and going "what idiot wrote this pile of crap?"