Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
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
-
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. -
wowotek58163y@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. -
wowotek58163y@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.
Related Rants
LMFAO
nice one dude. i'm gonna approve this one time just to show you i'm a good boss.
....of course not.
joke/meme
commit
node
typescript