The latest OOPhoto application can be experienced here.
The OOPhoto code for this post can be seen here.
Over the past two weeks, I have been struggling to model the domain of OOPhoto, my latest attempt at learning object oriented programming in ColdFusion. After getting very caught up with analysis of the various layers of the OOPhoto application, it was suggested that I just start off by building the application in my old-school procedural manner first and then work on refactoring it into Object Oriented Programming (OOP). The idea is to get the most simple thing working first and then go back and see where it can be improved.
And so, that is what I have done. I now have a working application written in old-school, procedural programming. Please click here to play around with it.
I have to keep this post short as I have to work on some actual stuff, but there will be more on this soon; I just wanted to get this out there for people to play with. The application is quite simple, but the AJAX made it like 10 times harder than it needed to be. I don't regret the AJAX, though, as I think it will lend to a more robust understanding of OOP when I get to that point - not only do I have internal calls in the ColdFusion layer, I have external applications (the client) calling what will eventually be some sort of remote facade I assume.
Comments (4) | Post Comment | Ask Ben | Permalink | Other Searches | Print Page
Ask Ben: Rendering Javascript Line Breaks
ColdFusion 8.0.1 Bug Coldfusion.Image.ImageWriter $ ImageWritingException
Nice job Ben, very cool.
Posted by Steve Withington on Jul 17, 2008 at 5:07 PM
@Steve,
Thanks for the support. I am hoping to now start to re-factor it into object oriented programming styles.
Posted by Ben Nadel on Jul 17, 2008 at 6:59 PM
Ben, this is great! I'm glad you have decided to go this route as I think it will be easier now for you to make the jump piece by piece. It can really be overwhelming at first. It was the same for me. It might all make sense in your mind but once you are getting your hands dirty you don't know where to start.
Ask folks here questions as we are happy to help you out! You have had some great comments come through that also have helped me learn and reinforce certain ideas. Keep it going and don't get lazy! Keep us updated. :)
Posted by Javier Julio on Jul 18, 2008 at 11:19 AM
@Javi,
Thanks for the encouragement. Yesterday, I posted the procedural style application. Now, I am looking forward to start refactoring. Gonna kick it off with some simple service objects.
Posted by Ben Nadel on Jul 18, 2008 at 11:27 AM