Changes between Version 15 and Version 16 of ProgrammingTips


Ignore:
Timestamp:
Feb 11, 2011, 10:50:57 AM (11 years ago)
Author:
Matthäus Wander
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ProgrammingTips

    v15 v16  
    2828 * Avoid using IndexOf(...) in loops. It's a quite costly operation.
    2929 * Avoid using exceptions for normal program flow. Exceptions shall be used for (exceptional) error conditions. Do not use exceptions for your regular program control (as additional return point or similar).
    30  * [wiki:VS2008Profiling Profile your application with VS 2008 Team System].
     30 * [wiki:VS2008Profiling Profile your application with VS 2008 Team System] (similar to VS2010 Ultimate).
    3131 * Set unneeded static or member variables to null. In most situations the GC knows by itself how to clean up data. However when you keep references in static or member variables, it can't see that the data is unused.
    3232 * Avoid editing strings in loops. String objects are immutable which means that each change requires the instantiation of a new object. Use StringBuilder instead.