• 1 Post
  • 7 Comments
Joined 2 years ago
cake
Cake day: June 2nd, 2024

help-circle




  • Boy, I recently had to look into the Java backend to figure out… something. I can’t remember.

    It turns out that they needed to inject a bean into their class which was itself calling a factory, which according to documentation, instantiated three other classes just to make a fucking HTTP request! What’s worse, that clusterfuck of a (fairly standard) library required the base URL to be declared separately from the actual paths, and both the base URL needed to end with a slash, and each path must begin with one. Every reasonable programmer would assume that this is a mistake because the final path would end up with two slashes, but the library actually required that.

    Meanwhile, frontend: fetch('url').then(r => r.json()).then(beHappy)