3 ms·
Who should you be writing for? Everyone is different. What's clearer for one person might be harder to read for someone else.
by wtetzner 7y ago
Who should you be writing for? Everyone is different. What's clearer for one person might be harder to read for someone else.
- optimuspaul 7y agototally agree, but life is full of compromise. I like to write code so that someone new to field could without too much effort follow what's going on but also so that someone better than I isn't so bored that they miss obvious things in the code (which does happen). It's a balancing act which I have found to be one of the more fulfilling aspects of my work. Having people of different skill levels review my code has made this much easier. One thing that I do a lot though is format code in a way that certain patterns appear for those of us that like to skim code. This generally means avoiding ternary operations except for very simple things where that pattern is easily recognized. But when to do that depends on the team(s) involved.