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.

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

help-circle

  • yes sorry, I have a goal to get set up with an open sponsor, but just haven’t. Currently in regards to funding I am $1000 short for the last year, so I definitely need to get the open sponsor set up because lots of people are only willing to fund that way (which I completely understand). And that’s just for base infrastructure. I would like to pay the admins as well.


















  • 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.