General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
xybersurfer
Kantan Coding
comments
Comments by "xybersurfer" (@xybersurfer) on "The 3 Laws of Writing Readable Code" video.
good. i will add that trying to avoiding global mutable state or side effects is perhaps more important. especially when you start splitting things into functions, so that these functions don't have invisible interactions. always try to use the return value of a function for the result. global constants are of course okay, because they are not mutable. and you can't really avoid the side effect of writing to file or database, if that's what you need to do
1
it's probably because they have to manipulate these formulas. it would get tiresome to write the whole names out. it there aren't to many variables, then it could be useful for the purpose of exposition
1