MrHen's recent activity
-
Comment on Be still and know that I am God in ~talk
-
Comment on What trick/pattern/concept/whatever did you adopt that has improved your code quality? in ~comp
MrHen Keep code that does similar things visually similar. The way I read code gets more and more about quickly identifying patterns of curly braces, indentation and keywords. I barely read variable...Keep code that does similar things visually similar. The way I read code gets more and more about quickly identifying patterns of curly braces, indentation and keywords. I barely read variable names during the first skim. What I want to learn quickly is:
- How long is this function / file / class
- How many calls to other functions does it have
- How many logical branches does it have
I spend a lot less time re-reading stuff by keeping code visually organized. It also helps highlight really weird code at a glance -- if something has a unique shape to it then it is probably the most complicated part of the code.
They have a lot of overlap but they aren't inherently the same. There are topics of religion that have nothing to do with politics and vice versa.