EasyCFM.COM ColdFusion Forums / Good Coding Tips! / to oop or not to oop?

   Reply to Discussion | New Discussion << previous || next >> 
Posted By Discussion Topic: to oop or not to oop? -- page: 1 2

book mark this topic Printer-friendly Version  send this discussion to a friend  new posts last

gmilby
11-26-2007 @ 8:08 PM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Senior Member
Posts: 281
Joined: Nov 2007

anyone have any good demo apps/examples that show the advantages of oop in coldfusion?
i'm from a 3g world (PICK/jbase) and just as soon as i think i understand oop - i learn something more about it and realize there is a lot more to it.
maybe a good example/etc would help(?)
TIA,
Greg



=:All Hail, er - i mean "oh hell...":=

louissto56
11-26-2007 @ 8:41 PM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Moderator
Posts: 1149
Joined: Jan 2007

Yeaah!! I am also interested in this. Maulins was getting so excited (and i mean excited) about it on MSN so I need to see what the fuss is about

Thanks'
Louis

Notice-Board in NZ has now been released. Check it out at www.notice-board.co.nz !!

Webmaster
11-26-2007 @ 10:18 PM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Administrator
Posts: 4542
Joined: Jan 2002

If you want to see something like this... I would suggest you check out a framework (such as Mach-II) or something like Reactor.

Those are the best examples (public) that you can see how to take advantage of OOP.

Pablo Varando
Senior Application Architect
EasyCFM.COM, LLC.

904.483.1457 \\ mobile
webmaster@easycfm.com \\email

gmilby
11-27-2007 @ 8:31 AM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Senior Member
Posts: 281
Joined: Nov 2007

Two answers... pick one and reply to it:
A:   dude - i've been checking out framworks
hand-over-fist, and most of them seem to be application concentric... they reuse code within themselves (which is the point), but the language methodology appears to be leaning towards reusable code (much like .net does and cf8 is even incorporating into it's basic os framework).
aabrams worked with me to help me understand the basic of frameworks - that was a good start - so that i knew what i was looking at when i was looking into frameworks.
it's probably just me, but i see a big gap between the way coders appear to be going and the way the software is being developed. like i said, i could be just be taking too much medication and imagining the whole thing, but it seems that a 'contact form' is a 'contact form'... doesn't usually get much more basic than that (on any app or os).
i invision a layering of operations, forms, fields/objects that can be added/adjusted on the fly with a basic premis of what each component is (by it's nature).  
maybe i just need to find a way to "think through" what i see - maybe it's just not there yet, and then again, maybe i should just call my dr and schedule some blood work  Playful Wink

(in case that was way too much bull shoot for ya)
B:  Cool, can you give us some pointers?  Playful Wink


=:All Hail, er - i mean "oh hell...":=

This message was edited by gmilby on 11-28-07 @ 1:30 PM

gmilby
12-08-2007 @ 6:59 AM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Senior Member
Posts: 281
Joined: Nov 2007

i found this website in someone signature http://cfoop.org/  going to give it a look-see and hopefull it'll shed some light on the subject(?)

Never pick a fight with an ugly person, they've got nothing to lose.
-Robin Williams

megan
12-08-2007 @ 8:17 AM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Moderator
Posts: 2398
Joined: Jan 2003

hmmm - somehow I never saw this thread till today - for a gentle intro to cf & oop try growly's http://www.cfpaperclip.com/

hth ~megan

We have art so that we shall not die of reality ~ Nietzsche

SirRawlins
12-08-2007 @ 8:30 AM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Moderator
Posts: 951
Joined: Mar 2006

OO is a very difficult subject to get your head around, especialy as many of us as web developers come from a proceedural and scripting background, trying to understand what 'objects' are can be a little tricky, then once you start throwing in design patterns and alike it can become quite a tricky thing to get into. OO is all about concepts and principles, there isnt really any one way to tackle a problem, its just about finding what is most comfortable for you to work with.

My two major reccomendations are nothing web related, or even coldfusion related :-D

Get hold of the following two books, they're part of the 'head first' series and will help you grasp OOP at a conceptual and design level, without actualy talking about the physical code you use to achieve it! this is very important.

http://www.amazon.co.uk/Head-First-Object-oriented-Analysis-Design/dp/0596008678/ref=pd_bbs_sr_2?ie=UTF8&s=books&qid=1197120326&sr=8-2

http://www.amazon.co.uk/Head-First-Design-Patterns/dp/0596007124/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1197120326&sr=8-1

Both of them have code examples written in JAVA and focus on UML diagrams and things like that. Those two books had a massive influence on the way in which I develope and application and I can reccomend them highly enough.

Pablo is right to reccomend some of the frameworks, you should definatly look into them, however, perhaps take some time to grasp the basic OO concepts before doing it, you'll learn a great deal from the frameworks and they'll also lighten your development woes.

Rob

gmilby
12-08-2007 @ 9:12 AM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Senior Member
Posts: 281
Joined: Nov 2007

thanks for the advice, i'll look at cfpaperclip and i'm pretty sure the nypl (new york public library) has most all the head first series where i can download the digital editions.

i appreciate the help - thank you.

edit::: actually i have both books now - was able to download both.  thanks.
now i'll go check out cfpaperclip - it looks like it may be very informative.


Never pick a fight with an ugly person, they've got nothing to lose.
-Robin Williams

This message was edited by gmilby on 12-8-07 @ 12:22 PM

megan
12-16-2007 @ 10:30 AM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Moderator
Posts: 2398
Joined: Jan 2003

Hey greg - you might be beyond this now, but here is a simple demo/tutorial of how CF can do OO

http://tutorial5.learncf.com/

hth ~megan

We have art so that we shall not die of reality ~ Nietzsche

gmilby
12-16-2007 @ 10:55 AM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Senior Member
Posts: 281
Joined: Nov 2007

hey cool!  i have the ebooks but have only skimmed them at this point. the design pattern books looks more interesting, but it appears to read like a psychology text book Smile

Thanks for the link!

Success is the ablity to go from one failure to another with no loss of enthusiasm.
-Sir Winston Churchill

PAGE: 1 2

Website Designed and Developed by Pablo Varando.