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

help-circle

  • And no, I have not tested it because I don’t know how I’m actually supposed to do that.

    depends on what you backup and how.

    if it’s just “dumb” files (videos, music pictures etc.), just retrieve them from your backups and check if you can open the files.

    complex stuff? probably try to rebuild the complex stuff from a backup and check if it works as expected and is in the state you expect it to be in. how to do that really depends on the complex stuff.

    i’d guess for most people it’s enough to make sure to backup dumb files and configurations, so they can rebuild their stuff rather than being able to restore a complex system in exactly the same state it was in before bad things happened.

















  • I guess some lessons need to be learned through pain.

    • Commiting regulary.
    • Following the branch rules.
    • writing tests.
    • writing tests, that test the desired not the current behaviour
    • refactoring your code.
    • not refactoring code, you don’t understand nor have tests for.
    • actually reading code before merging a pr.
    • not pulling in 23 unmantained libraries to solve a simple problem.
    • keeping your dependencies up to date.
    • that dirty hack will make your life harder.

    Yes, all those hurt. They sometimes still do, most of us are not machines that turn caffeine into code and we are never as clever as we think we are.