David Leventi Photography Is Now Live - Life Back To Normal

Posted February 26, 2007 at 6:12 PM

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.

Post Comment  |  Ask Ben  |  Other Searches  |  Print Page



Learning ColdFusion 9 - ColdFusion 9 tutorials, samples, examples, demos

Reader Comments

Feb 27, 2007 at 6:57 AM // reply »
76 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 »
76 Comments

Oh yeah, and congratulations!


Feb 27, 2007 at 7:25 AM // reply »
7,572 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 »
7,572 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 »
7,572 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 Comment  |  Ask Ben

Recent Blog Comments
Mar 19, 2010 at 7:26 PM
MySQL 3/4 - com.mysql.jdbc.Driver And allowMultiQueries=true
Thank you very much for this post. Adding allowMultiQueries="true" in context.xml didn't help until I added it to url as allowMultiQueries=true Good idea is to use prepared statements and it will he ... read »
Jim
Mar 19, 2010 at 4:49 PM
Nobody Puts Baby In The Corner!
Wow. This is like suddenly finding a support group for your secret shame. I'm not alone! I always liked this movie, even though it is extremely cheesy. I just wish Jennifer Grey hadn't gotten the ... read »
Mar 19, 2010 at 4:47 PM
Application.cfc OnRequest() Method Affects OnError() Arguments
@Jason and @Ben, I've been doing some CF9 refactoring on our systems and noticed an odd occurrence with onError as well. Found a way to work around my problem, but what I saw was... Background: Our ... read »
Jim
Mar 19, 2010 at 4:44 PM
Shoot 'Em Up Starring Clive Owen And Paul Giamatti
I actually enjoyed this movie quite a lot. It was different, certainly, but I think they were going for more of a Quentin Tarentino-"wow, that was weird"-vibe than an actual spoof. Once I realize ... read »
Mar 19, 2010 at 4:34 PM
An Intensive Exploration Of jQuery With Ben Nadel (Video Presentation)
Hey I guess the video is down. Is there anyway you can upload to youtube or vimeo or some other service? Greatly appreciated. ... read »
Mar 19, 2010 at 4:24 PM
ColdFusion CFPOP - My First Look
@Ben Thanks for the follow up! The root of the problem had to do with being able to trace bounced emails to specific records in a DB table. Let's say you run an email campaign and you get 1,000 bou ... read »
Mar 19, 2010 at 4:15 PM
SQL COUNT( NULLIF( .. ) ) Is Totally Awesome
Thank you Ben and Tony! Either of these work for the summary report I am working on and the info is much appreciated! I think I like Tony's a little better because I won't have to educate every ... read »
Mar 19, 2010 at 3:35 PM
ColdFusion Path Usage And Manipulation Overview
@Ben, Sorry. Clarification. expandpath worked for me in application.cfc, but not in other templates. ... read »