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