Geeks With Blogs

News
David Madden Mastering the craft one mountain at a time. November 2012 Entries
Comments in code
It is a good practice to leave comments in your code. Knowing what the hell you were thinking or later intending can be salvation for yourself or the poor soul coming behind you. Comments can leave clues to why you chose one approach over the other. Perhaps staged re-engineering dictated that coding practices vary.One thing that should not be left in code as comments is old code. There are many free tools that left you version your code. Subversion is a great tool when used with TortoiseSVN. Leaving ......

Posted On Wednesday, November 28, 2012 10:13 AM

LastPass
LastPass.com.  Get it, use it, save your sanity.  This is a great program to be able to remember one hard password and be able to generate several other hard passwords for each site, application, or sign in you have to use.  Highly Recommended.

Posted On Wednesday, November 28, 2012 8:44 AM

Old school trick that I forgot
If you have to support some older Winforms you might like to remember this. When opening a MessageBox to display that the user entered incorrect information, if you are doing so from a dialog, catch the DialogResult of the MessageBox and then set this.DialogResult = DialogResult.None; to prevent the dialog from closing if you want the user to try again. Otherwise, it will close the dialog box and return to the section of code that called it.Note: You do not have to catch the DialogResult from the ......

Posted On Wednesday, November 28, 2012 8:42 AM

Copyright © DavidMadden | Powered by: GeeksWithBlogs.net