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 »
79 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 »
79 Comments

Oh yeah, and congratulations!


Feb 27, 2007 at 7:25 AM // reply »
11,314 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 »
11,314 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 »
11,314 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
Ben Nadel's Company - Epicenter Consulting Recent Blog Comments
Jun 19, 2013 at 8:17 AM
My Experience With AngularJS - The Super-heroic JavaScript MVW Framework
@Prateek, to match a word or text you should use .toContain('word') that's a jasmine reference. website is : http://pivotal.github.io/jasmine/ ... read »
Jun 19, 2013 at 8:10 AM
My Experience With AngularJS - The Super-heroic JavaScript MVW Framework
Hi Guys, Actually i am doing e2e test of angular js of my project but i am not getting one thing that is how to press enter key through the test when my form is filled as i am not using a button but ... read »
Jun 18, 2013 at 9:20 PM
Mapping AngularJS Routes Onto URL Parameters And Client-Side Events
I couldn't find examples of passing multiple arguments using the when() routing statement so figured out through trial and error that you can pass multiple arguments using the following format: .whe ... read »
Jun 18, 2013 at 3:39 PM
Experimenting With The Amazon Simple Storage Service (S3) API Using ColdFusion
Hi Ben, THANKS! While not bleeding edge, it is new to me & I like learning new things every day! ... read »
Jun 18, 2013 at 12:30 PM
Disabling Auto-Correct And Auto-Capitalize Features On iPhone Inputs
Also spellcheck="false" should be mentioned as part of html5 specs ... read »
Jun 18, 2013 at 8:40 AM
Using Named Functions Within Self-Executing Function Blocks In Javascript
Hi Ben, you forgot to mention the most important thing for named self-executing functions - they can be referenced by name ONLY inside their execution context (which is parens in this case), it mean ... read »
dee
Jun 18, 2013 at 7:01 AM
My Safari Browser SQLite Database Hello World Example
hai ben, this program is really good i could understand the concept but i dint know how to save it and how to open it as you have done in the video can u give that details pls ... read »
Jun 18, 2013 at 6:04 AM
Clearing Inline CSS Properties With jQuery
Thanks a lot for for post! It helped me a lot... after being stuck since 24 hrs.. found solution from your post. Thanks again! ... read »
InVision App - Prototyping Made Beautiful With Prototyping Tools