Smallfish

Tips, Tricks, Shticks & Anything That Can Help You Be better Developer

Browse by Tags

All Tags » Tip (RSS)
Quality Code Short Tip #3 – Use Nested Class for Constants
One of the ‘best-practice’ and code styling guidelines say that you need to use constants instead of literals for more readability and ease of maintenance. Among the usages there are time that you want to specify database field names, xml attribute / element names and etc. In such cases the code easily get messed with dozens of constants around the code and make it harder to find the constant you need. A little trick can aid here: Instead of: 1: class TheClassUsingTheConstants 2: { 3: public const...
Quick tip: When Visual Studio (2008) Stop Opening A Web Application In Web Browser
This problem was hitting me several times and I couldn't spot what it was, so here it is: The Problem When starting Debug or Start Without Debugging of a Web Application in Visual Studio 2008 the internal web server is started but the Web Browser doesn't. The Solution Right-Click on your Default.aspx file (I assume it will be fine for any .aspx either) and select Browse With... and select the browser you want, that's all! (in my machine it was configured for XML Editor for mysterious...