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.

  • 22 Posts
  • 432 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.



  • This community is a meta community for the programming.dev Lemmy instance. We do not run a mastodon server. This is also not a programming help community, it’s for discussing issues with the Lemmy instance. From what you’ve written it seems like you’re having trouble with a mastodon API and it would probably be better to ask for help in a community geared toward that.

















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