Welcome to MSDN Blogs Sign in | Join | Help

Best Practices: Common Coding Issues When Using the SharePoint Object Model

This is an interesting and very useful article for those of us who program against the SharePoint Object Model.  The author spends much of the article talking about the impact of how we as developers can have on the SharePoint server and some suggestions as to how to better approach accomplishing certain task.

From the article:

As more developers write custom code by using the SharePoint Object Model, they encounter common issues that can affect application performance. This article attempts to address some of those issues, and recommends ways to identify and correct them.

The following areas reflect the main issues encountered by developers as they write custom code by using the SharePoint object model:

  • Disposing of SharePoint objects

  • Caching data and objects

  • Writing code that is scalable

See the full article (Click here to see it).

~ Robert Shelton

 

Technorati tags: ,
Published Friday, October 26, 2007 10:41 AM by Public Sector DPE Team
Filed under: ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# MSDN Blog Postings » Best Practices: Common Coding Issues When Using the SharePoint Object Model

# Link Listing - October 28, 2007

Link Listing - October 28, 2007

Monday, October 29, 2007 1:32 AM by Christopher Steen

# Link Listing - October 28, 2007

AJAX What We’ve Learned about AJAX Code in SharePoint [Via: daniellarson ] jQuery Selectors [Via: Rick...

Monday, October 29, 2007 1:32 AM by Christopher Steen

# re: Best Practices: Common Coding Issues When Using the SharePoint Object Model

from http://msdn2.microsoft.com/en-us/library/aa973248.aspx:

"In general, any time a calling application uses the new SPSite() constructors (any signature), it should call the SPSite.Dispose() method when it is finished using the object. If the SPSite object is obtained from SPControl.GetContextSite, the calling application should NOT dispose of the object."

Seriously, does M$ expect developers to know this?!?  They just can't get rid of COM can they?

Wednesday, October 31, 2007 2:04 AM by Vince

Leave a Comment

(required) 
required 
(required) 
 
Page view tracker