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

help-circle





  • If you’re lucky enough to successfully create an account on Oracle Cloud, you can also try Oracle Cloud Free Tier. You can have free ARM64 x4 CPU and 24 GiB RAM totally free of charge. There might be problems with availability during VM registration, but there are scripts that automate spamming for checking every 80 seconds.

    I’ve been using it for 2 years and it’s great. However be aware that your VM might get erased if you have a free account. That too can be remedied if you update to a premium subscription (You still get Free Tier resources without a charge). Nobody has reported an erased VM on a premium plan yet.

    Still, I am pretty sure they can erase it if you do illegal stuff with it. I’ve been using it only to host Minecraft Server, as well as other services using Docker. So far so good.





  • Ok, if I remember correctly, YouTube barely generates, but generates nonetheless revenue for Google. There are many ways to make more money without fucking over its users by cutting costs:

    • downgrade old videos with small watch count to 720p30

    • make people pay for hosting >1080p60 content

    • do not allow private/unlisted videos

    • straight up remove 10h looped videos - they take so much space, but are technically spam - both for bandwidth and storage

    And my go-to solution: focus on sponsorships as main source of revenue. They are the only ads I can tolerate and are actually effective from my experience. YouTube can just take a cut from every sponsorship on YouTube video and everyone will be happy.





  • The thing is, they look like too much for a simple app with near none interactive elements.

    But once app starts growing, concepts like reusable components, reactivity and state management become such an important tool.

    Imagine tracking shopping cart’s total value. With these frameworks it’s just one store containing total value, exposing the value as reactive state. Once the value changes, all components using directly or indirectly that value update immediately. In vanilla you would have to keep track of every instance where that value is used manually.

    Additionally, if you decide keeping total value of cart in frontend is stupid (because it is), you just modify your store to provide only readonly value, and create setters that require you to pass item or item id. Then that setter would hit up backend keeping your cart’s total value, add an item, and backend would return new total, which would now be set as that store’s new total value.

    These frameworks are kind of SOLID principles applied to chaotic world of user interfaces.



  • gornius@lemmy.worldtoProgrammer Humor@programming.devGolang be like
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    11 months ago

    It is better than in most languages with exceptions, except from languages like Java, that require you to declare that certain method throws certain error.

    It’s more tedious in Go, but at the end of the day it’s the same thing.

    When I use someone else’s code I want to be sure if that thing can throw an error so I can decide what to do with it.




  • You can just as easily have keylogger running in backround as clipboard sniffer.

    Browsers don’t have permission to read clipboard, just change them (unless you specifically give them permission to read it).

    As you can see no benefits not using PM. It’s in fact safer, because if databade with non-hashed passwords leaks, your password doesn’t because it’s different for every service.