13
wowotek
2y

LMFAO

nice one dude. i'm gonna approve this one time just to show you i'm a good boss.

....of course not.

Comments
  • 5
    Everything about this pile of shit is wrong, but the wrongest of all the wrongs in this crap is what he’s putting in account.isDeleted
  • 0
    nice code
  • 6
    That snippet is a piece of art illustrating the concept of a brainfart using what at first glance just looks like a kitbashed StackOverflow answer.

    I really like the application of multipass overwriting, which was useful thirty years ago for securely erasing data on magnetic hard drives, floppy disks and tapes to a database record highly likely to not end up at the same physical place on HDD or SSD on each write.

    He also uses his frankencode randomness generator to make the record look like it hasn't been deleted to non-human actors only for no apparent reason.

    This might verry well be a timebomb as we don't see the actual deletion, which could be guarded with an obscure condition...

    If you see such code in your company, you seriously need to consider upgrading the employee health plans ASAP. Having well-maintained teeth is nice and all, but mental health matters too.
  • 0
    @Oktokolo yeah i know it was useful a long time a go.

    my employee is nice, and healthy just got a domestic problem lately, i always by his side. this is just the way he show his problem.
  • 2
    @TeachMeCode well for added context the method name is deleteOneSafe(); it is a fake delete, it is tagged as deleted but not really, since other important document still reference it, cascadeDelete is implemented on higher abstraction.
Add Comment