MrHen's recent activity

  1. Comment on Be still and know that I am God in ~talk

    MrHen
    Link Parent
    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.

    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.

    4 votes
  2. Comment on What trick/pattern/concept/whatever did you adopt that has improved your code quality? in ~comp

    MrHen
    Link
    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.

    2 votes