Funny question and response of the day


A co-worker of mine sent an email with this question to the whole "dev" group:

"Does anyone have a random password generator that I can quickly plug into my application?"

My response:

"Guid.NewGuid().ToString()"  :P

What's even funnier is that my team lead sent the exact same response (Guid).  Others replied with "google '.net random password generator'".  LOL.

The correct answer turned out to be:

System.Web.Security.Membership.GeneratePassword

But of course that's not nearly as funny, now is it...

 


Posted Oct 08 2007, 03:36 PM by joeyDotNet
Filed under:

Comments

Joe Ocampo wrote re: Funny question and response of the day
on 10-08-2007 3:52 PM

Wow and this whole time I was using GUIDS   :-)

No but seriously I had no idea about that Class.  Nice find!

joeyDotNet wrote re: Funny question and response of the day
on 10-08-2007 3:58 PM

Haha, well it wasn't me who found it.  I actually didn't know about it either.  Guess that shows how much I've actually used the membership stuff in 2.0 (hardly ever).  :O

Another fellow co-worker sent that to him.

Sean Chambers wrote re: Funny question and response of the day
on 10-08-2007 5:26 PM

Ya know, now that you mentioned the Membership classes in 2.0, What a mess!!@!@

The classes are setup nice, and it's easy to setup, but good luck if you want to extend the damn db tables. Not to mention not being able to  use the "Web Administrator" if your're working on your dev machine.

All of them use GUID as PK's, everything is normalized into it's own table even if it doesn't need to be. I started using it on one project and quickly tossed it and coded my own membership system.

Sorry, you hit a nerve there =) damn membership classes =)

joeyDotNet wrote re: Funny question and response of the day
on 10-10-2007 11:56 AM

Hehe, yeah, luckily I haven't had to do much with them.  But a friend of mine was telling me how hard of a time he had trying to drive the pieces that interacted with the membership stuff via TDD.  Didn't sound too fun...

Add a Comment

(required)  
(optional)
(required)  
Remember Me?

Enter the numbers above:
Copyright Los Techies 2008, 2009. All rights reserved.
Powered by Community Server (Commercial Edition), by Telligent Systems