Tags
.NET ADO.NET AggregateException Anti-pattern asp.net ASP.NET MVC C# C# 3 Code Quality ConcurrentDictionary Conference CTP/Beta Database data design DDD DDD Scotland Debugging design patterns error handling fun Google Analytics hiring IIS Installation javascript learning LINQ object oriented design parallelisation parallelization PHP refactoring security software development practices Spatial SQL SQL Injection Attack SQL Server SQL Server 2008 unit testing virtual earth visual studio Visual Studio 2008 Windows 7 Windows VistaMay 2012 M T W T F S S « Apr 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Archives
- April 2012
- March 2012
- February 2012
- January 2012
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- March 2007
- February 2007
- December 2006
- July 2006
- April 2005
Category Archives: Tip of the Day
Tip of the day #22: Obtaining all subdirectories recursively
This is an example of how to obtain a list of all subdirectories using a recursive method with the .NET Framework. public static List<DirectoryInfo> GetSubdirectories(DirectoryInfo directory) { // Set up the result of the method.List<DirectoryInfo> result = new List<DirectoryInfo>(); // … Continue reading
Tip of the Day #21: Prefer the use of first-child CSS selector over last-child
I just got this fantastic tip from Jamie Boyd , a colleague of mine: The :first-child and :last-child selectors are super-useful for applying alternate styling to items in lists and things like that (e.g. removing the margin from the last … Continue reading
Posted in Tip of the Day
Leave a comment
Tip of the day #20: Don’t spam your own email while developing apps that send email
When we develop applications, often there will be a requirement for that application to send out emails. While this is going on we usually end up with lots of emails being sent to our own email address for test purposes. … Continue reading
Tip of the Day #19: Create a list of objects instead of many lists of values
I?ve been reviewing some code and I came across something that jars. What is wrong with this is many-fold. Essentially, instead of encapsulating an related data into an entity that describes the whole the developer had created silos of data … Continue reading
Tip of the Day #18: Dealing with data rounding issues
If you have data coming in from a database, web service or other source external to your application and it contains, say for example, price information then do not round it. Don?t attempt to apply any form of formatting to … Continue reading
Tip of the Day #18: Storing User Input in XML
If you are going to dump user generate input into XML please remember to escape appropriately. For example, the ampersand symbol has special meaning in XML and you must escape it. e.g. & becomes &
Tip of the day #10 (XP Pro IIS Admin)
If you are in the same situation as me where you have to develop web applications on Windows XP and have many projects on the go and for what ever reason cannot just stick each into its own virtual directory … Continue reading
Tip of the Day #9 (The Project Location Is Not Trusted)
This tip is to get a tool called ZoneStripper by James Kovaks to stop the annoying “project location not trusted” dialog box, below, appearing when you open downloaded solutions in Visual Studio. If you download zipped source code from the … Continue reading
Tip of the Day #5 (SQL Server memory usage)
You can limit the amount of memory that SQL Server uses by using the sp_configure stored procedure. By limiting the amount of memory that SQL Server is permitted to use it means that more memory is available to other applications … Continue reading
How to get a list of all subdirectories
This is an example of how to obtain a list of all subdirectories using a recursive method with the .NET Framework. public static List GetSubdirectories(DirectoryInfo directory) { // Set up the result of the method. List<DirectoryInfo> result = new List<DirectoryInfo>(); … Continue reading
