CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

Brendan Tompkins [MVP]

Blog First. Ask Questions Later.

Digging (into) the Community Server Source...

I've been playing around a bit with the source code of Community Server.  I hinted last week that I really like the way the application was built... Well, today was the second time that I've gone digging in the source code to try to do something, and it was simple to do.

I added the comment count to our main feed page, so you can see the number of comments, and link directly to the comments on the given blogs.  This took me all of 10 minutes to do, mainly because what I needed to do was anticipated in some respects by the Community Server team.  They built me a good domain object model that I could easlily reuse. For me to be able to pull the comment count out of the "post" object, was as simple as inspecting the object, and grabbing it.  It was just there.  I then needed some of the blog's settings (to determine if commenting was enabled).  Guess where that was - "post.Weblog.EnableComments" - right were it should have been.  No guesswork on my part.  No modifying a SQL sproc.  No fiddling around with a DataSet hoping I don't screw something up.  It was just there for the plucking.

This is the kind of stuff that makes me happy as a developer, and I can say that my source code experience so far with CS has been this way.

-Brendan




Comments

Jim Geurts said:

Yeah, I have to admit that I liked how you changed the default sidebar on the blog page... it's a nice change from the one that ships default
# March 31, 2005 11:04 AM

vern said:

So, can you post some more detailed info about how you did this? For those of us who are willing to attempt recompiles, but don't <i>really</i> know enough about code to figure out the rest...

Thanks!
# March 31, 2005 1:08 PM

Brendan Tompkins said:

Vern, yes. I'll try to do a post on this...
# March 31, 2005 1:57 PM

Dave Burke said:

I agree. That Post object (and application-specific objects which inherit from it like WeblogPost) make CS a pretty sweet app to work with.
# March 31, 2005 3:14 PM

darrell said:

So, you're saying you're happy they didn't use datasets? :)
# April 3, 2005 6:56 PM

Leave a Comment

(required)  
(optional)
(required)  

Enter the numbers above:
Add

About Brendan Tompkins

Brendan has been programming with .NET since the first public beta and is owner and operator of Port Technology Services, a consultancy company providing .NET application development services to the Maritime industry. In July, 2007, he was awarded the Microsoft MVP award for ASP.NET. He's also a proud co-founder of failed .COM startup Intrinsigo, and has had a hand in the failure of numerous other businesses. He currently runs CodeBetter.Com and Devlicio.us, and lives in Norfolk, Virgina with his wife Tiara and son Ian.

View Brendan's profile on LinkedIn

Check out Devlicio.us!

Our Sponsors