Home > Microsoft SharePoint > Some of the coding best practices with SharePoint

Some of the coding best practices with SharePoint

Hi Friends,

While coding for any Microsoft technology we may need to answer following questions which are important to get answered for giving good performance.

  • Does my code properly dispose of SharePoint objects?
  • Does my code cache objects properly?
  • Does my code cache the correct types of objects?
  • Does my code use thread synchronization when necessary?
  • Does my code work as efficiently for 1,000 users as it does for 10 users?

To answer these some common type of programming issues some programming guidelines or best practices are given by Microsoft.

For SharePoint related such best practices listed at one of the MSDN article which talks about following –

  • Caching SharePoint Objects That Are Not Thread Safe
  • Using Objects in Event Receivers
  • Working with Folders and Lists
  • Deleting Multiple Versions of a List Item
  • Using SPQuery Objects
  • Using Web Controls
  • Creating Timer Jobs
  • ETC

So please have a look at –

http://msdn.microsoft.com/en-us/library/bb687949(v=office.12).aspx

http://msdn.microsoft.com/en-us/library/aa973248(v=office.12).aspx

To adhere best practices and reduce risk of memory leak and get better performance.

Happy coding!!!

Advertisements
  1. Hemant Kamalakar
    May 3, 2012 at 12:13 pm

    Many thanks for sharing.
    Keep up the excellent work!

  2. July 5, 2012 at 9:53 am

    Happy Sharing!!

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: