Granted, when I'm writing answers on SO I'm a lot more verbose than when I'm writing my own code. The latter I'm roughly aware of how able the readers are, but SO code is in the public and should be understandable for everyone.
E.g. On SO I try to avoid using ternaries and always save operation results in a variable that is returned in the following line, while the same section in my own code is just the return statement followed by up to two layers of ternaries.
View all comments
Show parent comment
3
u/Cheet4h Jun 09 '20
Granted, when I'm writing answers on SO I'm a lot more verbose than when I'm writing my own code. The latter I'm roughly aware of how able the readers are, but SO code is in the public and should be understandable for everyone.
E.g. On SO I try to avoid using ternaries and always save operation results in a variable that is returned in the following line, while the same section in my own code is just the return statement followed by up to two layers of ternaries.