Entries Tagged as 'Object Oriented (OO)'


Improving Page Load Performance

Tags: ColdFusion | Object Oriented (OO) | Structures


Posted on October 26, 2009 by Daria |


From Scopes to Structures

As I think about my transition to Object Oriented Programming, I have to reflect on my 'ah-hah' moments when things started to make sense. I thought this next post was going to be about my first experiences with CFCs, but in analyzing what drove me to them I realized that my understanding of structures was an important step in the transition to OO thinking.

I was introduced to structures while consulting for a large corporation in one of their small Competitive Intelligence (CI) divisions. (CI = Think business domain specific library services) At one point in my time with them, we hosted their site on their internal shared ColdFusion host. To host a CF site with them, our site's code had to comply with their best practice guidelines. The one rule that has stuck with me all these years is: Avoid CFQUERY within a loop (CFLOOP or CFOUTPUT with the query attribute)

Note: This is the actual rule from that time period. Notice the capital tag names. I still have old sites with all their tags capitalized. (shutter) That's why I still have HomeSite installed, to use the tag case conversion tool.  I'm just saying.

Prior to learning these techniques, I had only used simple variables and had never used structures or arrays. I had also used the session and application scopes extensively. My big 'ah-hah' moment came when I realized that scopes are just persistent structures. The concept of structures is a big stepping point in understanding the caching capabilities in ColdFusion and in CFCs.

Read More

 


My Homework Told Me to Drink Beer: My Introduction to OO

Tags: Object Oriented (OO) | Unified Modeling Language (UML)


Posted on September 21, 2009 by Daria |


Most of my object oriented (OO) knowledge up to this point has been purely theoretical. A few years ago I decided to go to grad school to get a double masters in Information Systems and Library Science. Unfortunately I haven't completed it yet because I found a FT job, but I fully intend to complete my degree.

I signed up for my first quarter of classes late and ended up taking an advanced class called 'Information Systems Analysis & Design'. From the description, I could not tell what the class was about. It turned out to be a UML (Unified Modeling Language) modeling class. This was the textbook:

Applying UML and Patterns: An Introduction to Object-Oriented Analysis and Design and Iterative Development (3rd Edition) Applying UML and Patterns: An Introduction to Object-Oriented Analysis and Design and Iterative Development by Craig Larman

When I first looked at the book I had no idea what UML or Patterns were and no idea why neither of the pictures on the cover are not sailboats. The class and the text assumed I had basic knowledge of OO and Java. Needless to say, the text was difficult to get through sometimes.

One evening as I was feeling particuarly lost with the reading assignment, I came upon p. 237.

I had to do a double-take! Did my homework really just tell me to drink beer? Yes, yes it did. Best. Class. Ever.

Well, to make a long story short, things started to click and my final project was to model a shopping cart for a music store. Seeing as I've re-written my spagetti code shopping cart/CMS system around 4 times by this point, I passed the class with flying colors.

But what did I really learn from the class? I came out with a basic understanding of what an object is and how to make pretty pictures to represent them in UML. I also am now a big fan of the Use Case and iterative design.

What I didn't have any idea about was how to apply these diagrams to ColdFusion. I was not yet using CFCs so the connection between components and objects wasn't there. I also had no idea what a pattern was. Which I find funny seeing how the book title has the word 'Patterns' in it. That would come later, and is the subject of a future blog post.

 


Learning OO in ColdFusion

Tags: ColdFusion | Libraries | Object Oriented (OO)


Posted on September 20, 2009 by Daria |


I've been coding in ColdFusion since 1996, since version 2. When I see the old yellow books i get nostalgic. 9tear: Co-workers encouraged me to start my own business in 1997 and I spent 10 years happy and content in my 5tagger universe.

Now I'm a web developer for the Free Library of Philadelphia, a site that gets 20 million hits a month on average.

I've seen the light and am braving the object oriented (OO) world. This is the documentation of that transition.