I’m a technical kinda guy, doing technical kinda stuff.

  • 0 Posts
  • 8 Comments
Joined 1 year ago
cake
Cake day: September 27th, 2023

help-circle

  • you’ll see that he doesn’t like functions to be very long. I think his rule is no more than 4 lines.

    Four line functions? Sounds like a codebase adhering to that rule would end up as a nice thick function soup. It feels like… I dunno, those database programmers that like normalising databases to the Nth degree.

    If you put your loops into functions then you can just use return instead of break.

    And that just sounds like abusing the concept of functions to replace standard flow control that your language provides.

    I mean, sure, if I find repetitive chunks of code popping up I’ll break them out into functions, but - generally speaking - I do functions that translate into discrete real-world or UI tasks. I’m opening and parsing a text file into internal structures, I’m doing the reverse to go back to a data file, I’m cycling through the data to update UI components, etc etc.

    But hey, I use C and on the rare occasion I sneak a goto in there, so I’m not qualified to pass too much judgement.






  • All I know is that the stuff in roaming generally follows you around on domain logins. So if you’re bouncing around on corporate computers with the same standard set of apps installed, if they save their stuff in roaming they can retrieve it anywhere you log in.

    Which can be a blessing and a curse because once roaming fills up with all sorts of crap your logins on new computers take forever as the network has to transfer X gigabytes of stuff in roaming to that PC.


  • Article summary:

    Linux: Do this.

    Apple: Do this.

    Windows: Conspicuously absent.

    Config state is an absolute shitshow on windows. Is this application’s config in $APPDATA/local? Roaming? The registry? Under HKEY_LOCAL_MACHINE? USERS? In its own folder in Program Files, oh Program Files(x86)? Maybe it’s just in a folder in $USER.

    Gives me the shits.

    Article is good though, just wanted to vent.