By Peter Bell

A Sample Newsletter Application

I still have to post about handling validations, transformations and value lists, but for now I think it is time to write (and post) some code to see how this works, so tomorrow morning I’m going to start to work up a simple newsletter application, reworking all of the objects to see how the new interfaces work out.

I’ll just start with a simple system comprised of User, Newsletter, List and EmailMessage objects, together with a UsertoNewsletter joining table. User will have UserID, FirstName, LastName, EmailAddress, Unsubscribed and Lists. Newsletter will have NewsletterID, Subject, From, PublishedAt, Status, HTML and Text. List will have ListID, Title and ShortDescription. EmailMessage will have To, From, Subject, HTML, Text, UserEmail, UserID, NewsletterID, SentAt and Status.

Screens: List, view, add, edit and delete for User, Newsletter and List along with Publish and Test screens for the newsletter. Not much of a newsletter system, but hopefully just enough of an application to test out the core features of the new interface. I may also throw in a page based content management system as well just to round out the simple test case.

Comments
Looking forward to reading your code and seeing how you implement your interfaces and application generation.
# Posted By Bruce Phillips | 10/2/06 8:08 AM
Hi Peter,

I want you to please advise me on the best way to get started with your series of tutorials and write-ups about Web Application Building. Cause I'm kind of confused and don't know where to start from when reading your articles and tutorials.

I am a ColdFusion developer but have been doing procedural programming.

Thanks in anticipation.
# Posted By William from Lagos | 10/2/06 8:12 AM
Hi Bruce,

Thanks! First cut I'm going to code manually but with a view to generating it and then once I'm happy with the metadata and the API I'll update my metabase structure, create the templates and publish everything!
# Posted By Peter Bell | 10/2/06 8:13 AM
Hi William,

To be honest, if you are new to Object Oriented programming, this blog is probably not a good starting point. Brian Rinaldi has a great list of object oriented resources at http://www.remotesynthesis.com/blog/index.cfm/2006... You should also Google to find Sean Corfield, Hal Helms and Matt Woodward as they all have great resources for getting started and will point you to more.

Once you're comfortable with OO, have built a couple of applications and are comfortabel about the difference between a DAO and a Gateway and the reasons why you would or wouldn't use them, then you might want to stop back. Unfortunately this blog isn't the best place to get started.

best of luck with the journey - it is exciting and I hope to see you back here and teaching me a thing or two!!!
# Posted By Peter Bell | 10/2/06 8:25 AM
Pete,

Can't wait to see the code! Very exciting times :D
# Posted By Ben Nadel | 10/2/06 8:58 AM
BlogCFC was created by Raymond Camden. This blog is running version 5.005.