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: }
Categories: Uncategorized
Tagged: .NET, CLI, Password
Need to do a post to remember where I found these lists of books that I should read.
Categories: Links
Tagged: Books
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.
Categories: Software Craftsmanship
Tagged: Agile, Software Craftmanship