News for hackers. Stuff that matters.
Re:Why OO Sucks by Joe Armstrong (2000) by winrid on Friday March 26, 2021 @02:26AM (#26589294)
In the second example, I would do instead:

    if (user.blockingId == otherUser)...
Even if there is some scary logic you would argue you need to hide, I'd go further to say you have a UserLocks module so you can do:

    if (UserLocks.getUserBlockedId(user) == ....
Kind of a hard example to work with because I'm not sure why a user would block exactly one other user, but yep.

There are no comments on this comment yet.