i remember telling a younger coder that i try to do only a single thing on each line of code. one assignment. one comparison. one loop. etc.
the primary motivation is to make single stepping with a debugger, the most powerful debugging tool in your arsenal, easier and maximally effective.
he was flabbergasted. and asked if i condensed the code after it was working.
nope.
the best code is the simplest. leave it simple. your future self will thank you.
https://connectified.com/@masukomi/113028352140788923