David Leventi Photography Is Now Live - Life Back To Normal

Posted February 26, 2007 at 6:12 PM by Ben Nadel

For the past several weeks, I have been spending various nights working on my friend's web site, David Leventi Photography. It was a nice, simple site, and my first use of jQuery in any sort of production situation. It was a fairly easy site to build; the majority of the time was spent resizing images and getting the graphics to work (I didn't have the right fonts and had to keep going back to the designer for all "graphical" text changes - we've all been there!).

But that's not the point. The point I wanted to get to was that the methodology in which I coded the site was what some might call the "No Methodology," methodology. Yeah, that's right, I said it. I included a header and footer file on each template. I had a function (UDF) file that I include in the Application.cfm file - what's that? Yes, I did use the Application.cfm rather than the Application.cfc, cause frankly, it was just quicker.

Did I use any of my traditional framework stuff? No, not at all. Did I use good, clean programming? Absolutely! Just because I didn't have a set framework doesn't mean that I wrote sloppy code.

Was the site successful? I like to think so. I wish it loaded a bit faster, but I think a lot of that has to do with the fact that it's graphical content and there is only so much I could do. I coded the photo galleries in such a way that makes it very easy to add more. It's somewhat flexibly and does exactly what it needs to do.

Ok, so I've rambled a bit... what does it all mean? I means that I don't always need a framework or OOP style programming to create a successful site. It means that just because I didn't use a framework doesn't mean that I was "programming by coincidence". Now, some of you might read this and think to yourself "Of course you don't always need a framework," but for each one of you out there, there seems to be someone who lives and dies by the framework mentality and thinks that all other methodologies only work "by accident."

Frameworks have their place, very true... well, sometimes, so does some sweet, clean spaghetti code.



Reader Comments

Feb 27, 2007 at 6:57 AM // reply »
78 Comments

Ben, it looks like you've arranged the noodles in nice straight lines. =)

I agree with you. When working on similar, smaller projects like this, I often use the same method you did. Well, the only difference is I put the header and footer in Application.cfm and Onrequestend.cfm instead of including it on each page. If it grows, I'll start putting things into objects and such, but if there is not reason to add to the complexity to keep things simpler, why do it?


Feb 27, 2007 at 6:57 AM // reply »
78 Comments

Oh yeah, and congratulations!


Feb 27, 2007 at 7:25 AM // reply »
10,640 Comments

Sam,

Thanks. I think it sticks with the whole KISS (Keep it simple [stupid]) mentality. I don't think anyone would argue that frameworks DO add a bit of overhead. Why do it if I am not gonna use any of it.


Feb 27, 2007 at 8:38 AM // reply »
1 Comments

When I click on a thumbnail the photo flashes on and then immediately disappears. Using IE6 on WinXP.


Feb 27, 2007 at 8:44 AM // reply »
10,640 Comments

Dave,

I have gotten than once or twice before but could never seem to duplicate it. I also test on IE / XP (which is where I would get it). Does it happen for you all the time? Or just occasionally?

I think it has something to do with the jQuery call-back method that I am not fully aware of yet.


Feb 27, 2007 at 8:53 AM // reply »
95 Comments

Ben,

your post kind of reminds of a rambling I had recently. However, instead of frameworks, it was about objects. Everybody and their grandma is using objects. Wtf? Grandma does not need to be an object! OOP has it's place but it's not everywhere. I recently ran into this with JavaScript and the use of objects for simple JS calls using prototype.


Feb 27, 2007 at 10:32 AM // reply »
92 Comments

Because you didn't use OOP it sucks Ben. I mean come on man, developing a good application also with using application.cfm?? You should be banned from CF development! For those that are a little slow today... uhhhh... yes that is sarcasm. :) Great job with the site Ben. It's nicely done and I'm sure your friend is impressed with it's flashy interactivity. Simple applications shouldn't be built with OOP unless preferred but its not needed. OOP is beneficial (and using design patterns) when trying to solve reoccurring problems. With a simple application you just won't run into this but in this case you built more of a web site (a portfolio) rather than an application per say. So no need to be all "ohhh I didn't use OOP" and "my site is sooo cool because I didn't use it". :) Nonetheless well done Ben. Hopefully now you get to have some more free time for yourself.


Feb 27, 2007 at 11:45 AM // reply »
10,640 Comments

More free time and less wrist pain :) I can't seem to work a full day and then a long evening without my wrists kicking me in the butt! Damn you repetitive stress pains!


Feb 4, 2008 at 11:00 AM // reply »
1 Comments

thank you


Post A Comment

Comment Etiquette: Please do not post spam. Please keep the comments on-topic. Please do not post unrelated questions or large chunks of code. And, above all, please be nice to each other - we're trying to have a good conversation here.

Please review the following issues:

Author Name:


Author Email:

Author Website:

Comment:

Supported HTML tags for formatting: <strong>bold</strong>   <em>italic</em>   <code>code</code>







  • Help Wanted - Find Your Next ColdFusion Job
InVision App - Prototyping Made Beautiful With Prototyping Tools Ben Nadel's Company - Epicenter Consulting Recent Blog Comments
Feb 10, 2012 at 7:21 PM
jQuery AJAX Strips Script Tags And Inserts Them After Parent-Most Elements
Update! Instead of $(eval(options.insertAfter)).after(data['insertData']); I now use: var ajaxNode = document.createElement('span'); var parent = $(eval(options.insertAfter))[0].parentNode; ... read »
Feb 10, 2012 at 6:18 PM
jQuery AJAX Strips Script Tags And Inserts Them After Parent-Most Elements
encountered this same, what I consider, jQuery bug last week. I'm building a site in which I load some content via AJAX. This content contains Linkedin share button placeholders which Linkedin API ne ... read »
Feb 10, 2012 at 11:30 AM
Cross-Origin Resource Sharing (CORS) AJAX Requests Between jQuery And Node.js
After you understand the concepts here, this is an awesome cheatsheet for enabling CORS in just about anything http://enable-cors.org/ ... read »
JM
Feb 10, 2012 at 9:10 AM
My Safari Browser SQLite Database Hello World Example
@Amy, Here is a very good tutorial on how to use JOIN: http://www.sqltutorial.org/sqljoin-innerjoin.aspx ... read »
Feb 10, 2012 at 4:42 AM
Building A Twitter-Inspired RESTful API Architecture In ColdFusion
This is great, very useful Ben. I spotted a small typo in the api.cgm listing: <cfthrow type="Unauthroized" /> Cheers Stefan ... read »
Feb 9, 2012 at 10:35 PM
CFDirectory Filtering Uses Pipe Character For Multiple Filters (Thanks Steve Withington)
I was wondering if there would be a filter you could apply so that you got everything but what you included in the filter. As in show me all docs that are not a .pdf. ... read »
Feb 9, 2012 at 10:29 PM
Learning ColdFusion 9: Application-Specific Data Sources
@Ben, No offence, but if people were really wanting advanced features they would be using a platform like ASP.NET MVC. CFML is so structurally compromised as a tag-based scripting language that ... read »
Feb 9, 2012 at 10:03 PM
Subversion - Cleanup Failed To Process The Following Paths
@Leviaguirre, do you still have problems with this? ... read »