• 0 Posts
  • 19 Comments
Joined 1 year ago
cake
Cake day: June 6th, 2023

help-circle


  • erogenouswarzone@lemmy.mltoSelfhosted@lemmy.worldHow do you backup your data?
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    edit-2
    1 year ago

    So tape doesn’t make sense for the typical person, unless you don’t have to buy the equipment and store i.

    But, if you’re even a small company it becomes cheaper to use tape.

    Companies don’t like deleting data. Ever. In fact some industries have laws that say they can’t delete data.

    For example, the company I work in is small, but old. Our accounting department alone requires complex automated processes to do things each day that require data to be backed up.

    From the beginning of time. I shit you not. There is no compression even.

    And at the drop of a hat, the IT dept needs to be able to implement a backup from any time in the past. Although this almost never happens outside of the current pay cycle, they need to have the option available.

    The best way they have to facilitate this (I hate it - like I said they’re old) is to simply write everything multiple times a night. And it’s everything since we started using digital storage. Yes, it’s overkill and makes no sense, but that’s the way it is for us. And that’s the way it is for a lot of companies.

    So, when we’re talking about that amount of data, and tape having a storage cost advantage of 4:1 over disk, it more than pays for all the overhead for enterprise level backups.




  • erogenouswarzone@lemmy.mltoProgrammer Humor@lemmy.mlClassic John
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    1 year ago

    Any mention of a server room reminds me of the fable of the guy, we’ll call him Mike, who unplugged the Internet.

    I can’t remember where I read it, I think it was greentext on Reddit years ago.

    So Mike is an intern, and due to some weird circumstances he becomes the only network admin in the building. Well, one day he doesn’t esnt feel like working, so on his way in, he stops by the server room and unplugs the internet.

    He then goes to his desk like a normal day. Then he starts getting phone calls. Everybody is freaking out because there is no Internet. So he begrudgingly descends into the server room and starts playing video games on his phone.

    Close to the end of the day, he plugs the Internet back in and ascends a hero to the employees because they think he’s been working hard all day to give them internet.





  • erogenouswarzone@lemmy.mltoProgrammer Humor@lemmy.mldo as i say...
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 year ago

    Does anyone have any good advice on variable naming? Here’s some of my rules I try to live by:

    • camelCase
    • use prefixes
    • prefixes should be one word followed by an underscore.
    • 10 character limit or 3 word limit, not counting the prefix
    • functions should be prefixed with the file in which they’re defined, ie utils_FooBar
    • file names should be one word
    • Start Bools with is
    • Don’t use not in bool names.
      • This has farther-reaching implications that will keep you from making confusing code most of the time (I’m sure this will be controversial, but it works no matter what they say)
    • start output with _
    • Globals should be g_VARIABLENAME
    • use the least amount of words possible
    • but being too verbose can draw attention - use this to aide in readability
      • calc_ImportantValueThatWillDecideTheUsersView is better than calc_SumYears if the variable is more important than the others.
    • Even the greatest variable names are not replacements for documentation
    • Even the most readable code is not replacement for documentation.
      • Force yourself to love documentation.

    Edit: I realize I was speaking about function-naming with the prefix stuff.

    For variables, I still use prefixes, but for variable type. Even if you define the variables as types, it’s still incredibly useful. For instance,

    a string is s_MyName,

    enumerable is e_MyType,

    A number is int or double or whatever i_MyAge or d_MyWeight

    This might be obvious for custom objects, but I’d still do it like this p_Person or per_Person.

    Seriously it does make a huge difference


  • Sean, I didn’t mean to offend you or insinuate that I didn’t like Barbie. I have a daughter, and watched it with her and watch the dreamhouse show with her on Netflix all the time. I actually really liked the movie - except the long boring parts where they tried to justify Barbie’s existence in our modern society.

    Yes, those movies also have heavy product placements, but it doesn’t somehow excuse all other movies from having them, if that is your point.

    My point is that piracy has already impacted our lives. The commercials in movies are the evidence. Further piracy will cause either more ads in media or less content that targets the demographic of people that pirate (ie 18-35 yo men probably).







  • erogenouswarzone@lemmy.mltoMemes@lemmy.mlOMG
    link
    fedilink
    arrow-up
    0
    arrow-down
    1
    ·
    edit-2
    1 year ago

    Praise Satan for grocery delivery and pickup. No more memorizing a store or searching for an hour for that one little thing. No more women getting creeped out for no other reason than you’re a man in a grocery store. As if, beach - no one wants to fuck you.




  • Yes, but only because it gives you a link to where that was run. Click the link to the right with filename:lineNumber, and it will open the sources tab to that line. Set a breakpoint and rerun to pause there, then step through the code’s execution.

    Of course, if you’re using minified or processed code, this will be more difficult, in that case figure out how to do it in VS Code.