• 0 Posts
  • 11 Comments
Joined 1 year ago
cake
Cake day: July 21st, 2023

help-circle




  • But the NAS is in your house… which basically means if it gets flooded/burns down all your data is gone too.

    I already have my data on my PC, a second backup inside the same house isn’t worth that much. But instead of relying on a cloud service I just rent a virtual server (for various things) and use Seafile to keep my data in sync.

    PC breaks? House burns down? My data is on my own server in a datacenter. My server gets cancelled? My data is on my PCs.

    So even with your NAS you are 100% reliant on a cloud backup still, so why did you get the NAS when you already have a copy of your data on your devices?




  • Vlyn@lemmy.worldtoProgrammer Humor@lemmy.mlSounds great in theory
    link
    fedilink
    English
    arrow-up
    175
    arrow-down
    4
    ·
    1 year ago

    TDD is great when you have a very narrow use case, for example an algorithm. Where you already know beforehand: If I throw A in B should come out. If I throw B in C should come out. If I throw Z in an error should be thrown. And so on.

    For that it’s awesome, which is mostly algorithms.

    In real CRUD apps though? You have to write the actual implementation before the tests. Because in the tests you have to mock all the dependencies you used. Come up with fake test data. Mock functions from other classes you aren’t currently testing and so on. You could try TDD for this, but then you probably spend ten times longer writing and re-writing tests :-/

    After a while it boils down to: Small unit tests where they make sense. Then system wide integration tests for complex use-cases.



  • Vlyn@lemmy.worldtoMildly Infuriating@lemmy.worldThanks Spez!
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    1
    ·
    1 year ago

    You can believe what you want, but I literally did this a month ago. Editing my comments, then submitting a GDPR request and getting a large package of my data. Showing every up and downvote for example (which was over a million entries, ouch) and every comment and post I ever made in the last 11 years.

    Deleting your comment does not delete the database entry. It’s up to discussion if that conforms to GDPR, because theoretically you could have personal data in your comment… but for now they don’t delete them. So obviously your GDPR request will contain deleted comments, as they are still right where you left them (and you agreed to the terms and conditions of Reddit which technically make any content you post on their platform their content legal wise).

    If you edited your comment and then deleted it and the GDPR request showed the original comment… then that’s a different matter. As far as I tried out they don’t keep the comment from before the edit around. Though if you do it too fast, instant edit and delete maybe something gets messed up and the edit doesn’t stick. But this hasn’t happened to me yet (except I edit more than one comment in 3 seconds, then it gets rate limited).

    Reddit admitted they only keep the last version of your comments around, so if you edit them with random crap it’s as close to deletion as you can get.


  • That’s not true. I edited (nearly) all my comments. Then did a GDPR request. All the comments I touched were overwritten in there.

    I didn’t catch all of them though, it’s damn tough to get every single one. If you just go through your profile page by page they don’t show all. If you select “Top” comments you find more. If you select “Controversial” you find even more and so on. So I only managed to overwrite maybe 95% or something, but it’s good enough.

    Oh and they also have caching and spam protection. So you have to slowly overwrite comments, about one comment every 3 seconds or you get rate limited. And directly after overwriting the comment it might still show up in the old version till their caching servers catch up. So maybe you thought you overwrote your comments, but in reality the requests failed in the background because you went too fast.