The One Right Way to Authorize Users to Access Features
NEVER INQUIRE ABOUT THE CURRENT USER’S ROLE IN APPLICATION CODE. EVER.
NEVER INQUIRE ABOUT THE CURRENT USER’S ROLE IN APPLICATION CODE. EVER.
Seymour Cray once said, “If you were plowing a field, which would you rather use? Two strong oxen or 1024 chickens?” He was making an analogy, of course, to his super-fast processors. I think the same idea applies to software development teams.