I’m a staff software engineer at Sunrun, the USA’s largest residential solar installer.

I mostly work with kotlin, but also java, python, ruby, javascript, typescript. My hobby is picking up new hobbies. Currently bird photography and camping.

  • 2 Posts
  • 226 Comments
Joined 2 years ago
cake
Cake day: June 6th, 2023

help-circle


  • Anything but the last one. Don’t duplicate the http code in the body, else you’re now maintaining something you don’t need to maintain.

    I’m not a fan of codes that repeat information in the body either, but I think if you had used a different example like “INVALID_BLAH” or something then the message covered what was invalid, then it would be fine. Like someone else said, the error data should be in an object as well, so that you don’t have to use polymorphism to figure out whether it’s an error or not. That also allows partially complete responses, e.g. data returns, along with an error.








  • snowe@programming.devtoMemes@lemmy.mlYouTube
    link
    fedilink
    arrow-up
    10
    ·
    1 year ago

    Your logic doesn’t make any sense. They make money off of people paying for a service or watching ads. If you’re blocking ads then you’re costing Google money and no creators are getting paid. If you’re paying for the service then you don’t get ads, and you pay the creators, and you pay for Google to keep running the service.



  • snowe@programming.devtoMemes@lemmy.mlYouTube
    link
    fedilink
    arrow-up
    10
    arrow-down
    17
    ·
    1 year ago

    Google doesn’t sell your data, they’re one of the few that don’t. That doesn’t mean they aren’t misusing your data though. They’re more the dragon hoarder than the thief selling off stolen goods. They want all your data so they can learn everything about you. Selling your data to others makes it worth way less. It’s a difference in strategy. Google retains the data to enhance their products, Facebook sells your data because they have no products that would be improved by keeping it.