Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default MVC

    Does anybody know a good book or documentation discussing about CF MX Model-View-Controller (MVC) in detail?

    Thank you,
    Andi
    ignandis Guest

  2. #2

    Default Re: MVC

    ignandis wrote:
    > Does anybody know a good book or documentation discussing about CF MX Model-View-Controller (MVC) in detail?
    >
    > Thank you,
    > Andi
    One popular implementation of MVC in ColdFusion is the Mach-II framework:
    [url]http://www.mach-ii.com[/url]
    [url]http://www.mach-ii.info[/url]

    Matt

    --
    Matt Woodward
    Team Macromedia - ColdFusion
    mpwoodward *TMM* Guest

  3. #3

    Default Re: MVC

    >>Does anybody know a good book or documentation discussing about CF MX
    >>Model-View-Controller (MVC) in detail?
    MVC is not common practice in coldfusion. It can be done, of course, but CF
    apps tend to be written by those wishing to avoid mainstream programming
    (largely web design types) and wanting a bit more "simplicity" - therfore
    the market for this stuff is too small for there to be any dedicated books
    on the subject.

    Mach-ii is good, real good actually, but again, as with a lot of things
    around coldfusion, there is very little in the way of a knowledge market
    other than a few articles and the docs.

    Keep in mind that MVC is not specific to coldfusion and the pattern itself
    is the pretty much the same across all languages - any implementation of MVC
    should map right back to coldfusion if you know what you are doing with
    CFC's - so any MVC material should do the trick - do a google for that
    perhaps.





    "ignandis" <webforumsuser@macromedia.com> wrote in message
    news:d36pm8$5gk$1@forums.macromedia.com...
    > Does anybody know a good book or documentation discussing about CF MX
    > Model-View-Controller (MVC) in detail?
    >
    > Thank you,
    > Andi

    ronnie Guest

  4. #4

    Default Re: MVC

    Try this book: ColdFusion MX Bilble by Wiley Publishing. This book gives a
    detailed example of and complete usage of the MVC with CFCs. Very informative
    and not just some wannabe be MVC/CFC implementation.

    LearningCFMX Guest

  5. #5

    Default Re: MVC

    Thank you for your post.

    I am AMAZED at what I am hearing! It really seems like CF is not capable of
    producing a solid MVC application. I am new to CF, and have diligently been
    searching for the design patterns used in CF..... but I really can't seem to
    find any?!?!?! Mach II still requires version 6 of CF!!

    I am coming from the java world, and I am finding it very hard to justify
    switching to CF.... sure there are some nice bells and whistles, but for
    anything more than simple web apps, it seems like you are better off with java?!

    Why wouldn't there be more support for MVC? I think your post sums it up in
    implying that CF is for weak/non-programmers....

    By all means some one prove me wrong... I would love to use all the bells and
    whistles, but not if I have to write klunky code that seems is the norm in CF...

    kedward Guest

  6. #6

    Default Re: MVC

    Try this article for a quick how-to on MVC and CF.

    [url]http://www.benorama.com/coldfusion/patterns/part2.htm[/url]

    I think the biggest benefit of Coldfusion over something like JSP/Servlets is
    time to development. Coldfusion was intended to be a RAD tool, and IMO, most
    certainly is. Web Services, DB Access, you name it. It's takes a lot less
    time to
    develop in CF. You may want to look over the CF tag library to convince
    yourself that these "bells and whistles" are really worth it.

    Couple other useful references.

    [url]http://cflib.org/[/url] - Library archive of UDF's

    If $ is a consideration, you may want to look at the following freeware CF
    application server.

    [url]http://www.newatlanta.com/products/bluedragon/index.cfm[/url]

    BSterner Guest

  7. #7

    Default Re: MVC

    On 2005-05-14 06:21:45 -0500, "kedward" <webforumsuser@macromedia.com> said:
    > I am AMAZED at what I am hearing! It really seems like CF is not
    > capable of producing a solid MVC application. I am new to CF, and have
    > diligently been searching for the design patterns used in CF..... but I
    > really can't seem to find any?!?!?! Mach II still requires version 6 of
    > CF!!
    CF is plenty capable of doing MVC. There's at least 4 frameworks out
    there for it and two articles in the latest CFDJ about it. Do a bit
    more homework and you'll find plenty of information out there about MVC
    and a lot of other design patterns in CF.

    Concerning Mach-II I'm not sure if you're saying requiring version 6 is
    too high a version or too low--CFCs didn't exist prior to 6 so it would
    be a bit difficult to implement an OO-style MVC pattern without
    objects. Also to be clear, Mach-II requires CFMX 6.1 or higher
    (doesn't work with 6.0), and it works great in CFMX 7.

    Matt
    --
    Matt Woodward
    [email]mpwoodward@gmail.com[/email]
    Team Macromedia - ColdFusion

    mpwoodward *TMM* Guest

  8. #8

    Default Re: MVC

    Hey kedward dont waste your time with CF. I am a CFMX programmer by occupation
    and yes I get paid decent money but the future of CFMX is shakey at the least.
    If you are a java guy I suggest learning ASP.Net written in C#. I just
    finished college and had a couple Java classes and was looking for a plan B for
    when CFMX finally dies off and I heard C# syntax was a lot like JAVA and it can
    be used in ASP.Net to make web apps and of course it can be used for a crapload
    of non-web based needless to say I jumped in!!! All these guys blabber on
    about how fast dev time with CFMX is have they ever written .Net. Man the iDE
    kicks ass and I can write killer apps 1 millions times more powerful and just
    as fast with C# && ASP.Net. Dude if you really are a Java guy dont mess around
    with a "scripting" langugae. It has been bought out by Adobe,its a SCRIPTING
    langugae and the IDE is the worst in the
    Buisness(Dreamweaver/Dreamwrecker,HomeSite/HomeShite)

    It doesnt make sense to jump on a train losing speed and running out of
    track. Thses cats up here are gonna flame me for this post but realize most of
    them have no clue what OO is and if CFMX does crash they are screwed. So leave
    this kiddy crap alone go get VS.Net and learn a kick-a$$ lang that can be used
    for thousands of projects.


    Remember you live and die by the choices you make, dont mess this one up!!!!

    LearningCFMX Guest

  9. #9

    Default Re: MVC

    Oh yeah here is a great book to start with:

    Visual C#.Net Programming


    In the first chapter you are creating web services and in chapter 2 you are
    using web forms in ASP.Net to consume the web forms you wrote. In chapter 2 it
    also gives great details how to connect to web services asynchtonously so your
    app can connect and do other crap while it waits for a response.....sorry CFMX
    only guys for using these big words you fellas just stick to the "cfif" and
    "cfmodule" stuff. Anyway here is the ISBN# 0-7821-4046-7 just put that
    ISBN into Amazon.com and you can get it brand new for like 10.00!!!!

    LearningCFMX Guest

  10. #10

    Default Re: MVC

    ColdFusion + Model-View-Controller = CFMVC - [url]http://coldfusion.sys-con.com/read/49185.htm[/url]
    Stressed_Simon Guest

  11. #11

    Default Re: MVC

    Thanks guys...

    I am looking a the frameworks below. What is the story with them? Which ones
    are worth considering?
    * Traditional Fusebox
    * MVC Fusebox
    * OO Fusebox
    * Simple Mach II
    * Refactored Mach II using design patterns
    * Fusebox + Tartan
    * Model-Glue

    I have to admit I am really scratching my head over the ease of use issue....
    I work with weblogic workshop, a java IDE, that allows you to design
    industrial grade page flows and interfaces to resources (db, web services,
    messaging, etc) visually... very powerful, fairly easy. When I use CF, I feel
    like I am playing with a toy. GRANTED, the flex technology is very nice, and
    java is way behind in thin rich clients....

    Heck, as far as I can tell a lot of Macromedia prodcuts make it "easier" by
    taking away all the options that java offers. Out of sight equals less
    complexity, equals "ease of use". I looked at Ben's very nice MVC article in
    the previous post, and I found it interesting that you can see how Macromedia
    has abstracted the javabeans/servlets -the general j2ee forms/structures are
    very evident.

    Learning a scripting language seems strange. Java is useful for so many things
    besides web programming....But I will learn CF just to expand my resume.

    Ed


    hownowbrowncow Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139