- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Throws and exception frist time, everytime.
Admin
AndException extends GrammarException?
Admin
If it throws an error every time RoleExists is called, the for loop can count until the universe ends because it's never called...
Admin
Apparently the poor dumb developer has never heard of
string.Join()
Admin
Today's WTF aside, am I the only one facing a scrollbar that can't be dragged underneath the code? When I try to drag it it reacts as if it was an image instead. Who the hell created that piece of junk?
Admin
I love how being a member of Level1 prevents you from being added to Level10 or Level100
Admin
That isn't always wrong, there are cases where say having the role 'Approve' means you should NOT be allowed to also have the role 'DataEntry'
Admin
While true, that should not be based solely on some arbitrary string value. There will always end up being some scenario somewhere down the line where the "rule" has an exception, and then you end up having to rewrite everything. Or worse, start "duplicating" role permissions so that two roles with identical permissions can have different naming conventions, just to get around this initial bad design.
Admin
There's many things wrong with it, and that's the least of them. In particular, backwards! Without separator. WTFlyingF were they thinking?
But it's saved by the bell of never actually being run. Yay!
Admin
It's really too bad their provider doesn't use RoleExists. With a million or few users in the system, it'd be fun to watch this load
string[] userroles
.Admin
In this day and age, TRWTF is using MembershipProvider in the first place
Admin
I am trying to figure out why you would want to create a role that doesn't exist for a new user. Sounds like trouble waiting to happen.
Admin
Blakeyrat, is that you?
Yes, you're the only one. It scrolls fine for me.