27

We don't know what one-to-many is! Instead, we convert all associated IDs to a string and join the list into a string separated by commas! Only after this absolute clownery do we save this new nice clean string to the database column! Then, when we want all associated entities, we serialize this list back into an array of IDs and retrieve them! It's clown-genius!

🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡

Comments
  • 2
    @tosensei dear god. I can only imagine... the mind wanders...
  • 4
    Dude I know what you mean,
    Some people don't know how to do basic system design.
    And more often than not, these people are in key positions.
  • 2
    @tosensei Wow. That's from another dimension.
  • 1
    @Kernel I know!
    I mean the worst I've ever had to deal with was an outdated tech stack that wasn't version controlled and custom built across 36 different client's machines.

    It was clown town, man!
  • 1
    Holy shit
    How is this company in business?
  • 2
    @tosensei they must be ironically brilliant bc I can’t possibly figure out how to create such a terrible codebase...🤯!
  • 3
    also i bet the retrieval is done in a loop in which it's one query per id
  • 1
    @Midnight-shcode no.... please... STOP THIS MADNESS!!!!! ITS KILLING ME!!!!
  • 0
  • 0
    @horus what if the list looks like '99,100,101' and the search ID is '9'?
  • 0
    Kill it with fire.
Add Comment