58

Boss comes in and gives me some js code for syncing data (he hacked it together the other day, really messy with like 5 callback lamdas stacked into each other)

Boss: Make it faster and more reliable and add some progress indicator

So i look at the code and he literally pulls all the data as one json (20+ MiB). Server needs multiple minutes to generate the response (lots of querys), sometimes even causing timeouts....

So i do what everyone would do and clean up the code, split the request into multiple ones, only fetching the necessary data and send the code back to my boss.

He comes in and asks me what all this complexity is about. And why i need 5 functions to do what he did in one. (He didn't -.-). He says he only told me to "make it faster and show progress" not "to split everything up".
So I ask him how he wants to do this over HTTP with just one request...
His response: "I don't care make it work!".

Sometimes i hate my job -.-

Comments
  • 5
    I have one word for you: ASN.1. That's the shit if you want to make the requests-responses as small as possible =D But, then again, your boss would probably find it complex to have an ASN.1 encoder/decoder. Hmm, your boss seems to expect the impossible from you.
  • 7
    graphQL does one request with all the data needed.

    https://www.apollodata.com/
  • 6
    @heyheni yea graphql would be nice, though i don't think my boss would like that either... Also most of the time is spent by the server gathering the data, which we can not really improve (old legacy api), so splitting requests is our only option to at least show some progress to the user.
  • 12
    I would so go like "who is paid to do the development you or me, so if you want that working you let me do my job" even if I would lose my job
  • 16
    Get the fuck out of there. Obviously you overtook your boss and he's stopping you by such bullshit. Look for a new job under the radar and leave when you got a good offer.
  • 4
    What a place to work! Try to explain to your boss why you "split everything up" again.
    And if this doesnt work, tell him you know how to do your Job!
    Have a nice week and a good code.
  • 2
    "You made my code better and more performant! You're the worst!"

    But really, if your boss cares so much about implementation, tell them to write it themselves.
  • 0
    @AlexDeLarge because he's the bossman
  • 0
    Kick him in the balls.
  • 2
    @LynxMagnus wk66
  • 1
Add Comment