John Lam 1997 — 2026

Writing YABE (Yet Another Blog Engine) in ASP.NET 2.0

I’ve got most of the core of my new ASP.NET 2.0 blogging engine working now. It’s been a fun experience, and I’ve had an opportunity to test about 50% of the new features of ASP.NET 2.0. So far I really like a lot of what I’ve tried. Here’s a list of the features that I’m using in the engine:

  • Image handlers (the new .asix files)
  • Themes
  • Master pages
  • Web parts
  • Generics

Here’s a list of 1.x features that I’m using as well:

I can definitely attest to the fact that I’ve written this engine using far fewer lines of code than was required by ASP.NET 1.x. I’m spending a lot of time refactoring code in ASP.NET 2.0 because I can. If I have enough cycles, I’ll back-port my blog engine to ASP.NET 1.x and do a line count comparison.

One thing that is annoying about the web parts implementation in the alpha bits: it spews out some really nasty-looking

elements. I’m really hoping that the ASP.NET team provides an option to render using
elements and CSS table layout attributes instead. I’m trying to make the HTML that my blog engine spits out compliant with the CSS Zen Garden HTML so that I can leverage some of the really awesome CSS design work that has gone into that HTML schema. This means that I’m going to have to punt web parts until this gets fixed. Oh well, such is life with bits that are a year away from shipping :)

[1] Because the XMLDataSource object isn’t working in the alpha bits. It was a lot of fun writing some XSLT again.

2 archived reader comments

Dave Sussman (2004-02-12)

I’ve had an idea to do this, but I’ve held back for one simple reason - providers. My plan was to use the provider model so that the underlying data store could be swapped out. This would enable providers to be written for other engines so that the whidbey blog engine could work on top of existing blog engines. What’s stopped me is that the provider model is changing for beta (from interfaces to abstract classes), so I’ve decided to wait.

John Lam (2004-02-12)

I was thinking along the same lines, which is why I’m using old-school SqlClient style data binding in YABE. I’ll move over to the new stuff once things get a bit more stabilized in B1.