about:thoughts

Retrieve Password from Command Line

June 18, 2009 · Leave a Comment

   1: private static string RetrievePassword()

   2: {

   3:     string password;

   4:     StringBuilder passwordBuilder = new StringBuilder();

   5:     ConsoleKeyInfo keyInfo;

   6:     while ((keyInfo = Console.ReadKey(true)).Key != ConsoleKey.Enter)

   7:     {

   8:         if (keyInfo.Key == ConsoleKey.Backspace)

   9:         {

  10:             if (passwordBuilder.Length > 0)

  11:             {

  12:                 passwordBuilder.Remove(passwordBuilder.Length - 1, 1);

  13:             }

  14:         }

  15:         else

  16:         {

  17:             passwordBuilder.Append(keyInfo.KeyChar);

  18:         }

  19:     }

  20:     password = passwordBuilder.ToString();

  21:     return password;

  22: }

→ Leave a CommentCategories: Uncategorized
Tagged: , ,

Book List

March 7, 2009 · Leave a Comment

Need to do a post to remember where I found these lists of books that I should read.

→ Leave a CommentCategories: Links
Tagged:

Manifesto for Software Craftsmanship

March 7, 2009 · Leave a Comment

I started following the Software Craftsmanship list a couple weeks ago. Mainly because I found Uncle Bob thanks to Scott Hanselman and the DNR crew.

Here are the key thoughts on the manifesto:

  • well-crafted software
  • steadily adding value
  • a community of professionals
  • productive partnerships

You can read the full thing here.

I still feel this is very similar to the Agile Manifesto, so maybe this can be viewed as an extensions/restatement of.

→ Leave a CommentCategories: Software Craftsmanship
Tagged: ,