Ask a Question related to Coldfusion - Getting Started, Design and Development.

  1. #1

    Default Best Practices?

    I've been an ASP developer for ... swhoo, too long and so I'm used to doing
    everything all in one page (the form, validation and then processing).

    In CF, what's the best practice. Should I do everything in one page or should
    I use individual pages?

    mikeap Guest

  2. Similar Questions and Discussions

    1. Best practices in LINUX?
      I have CFMX 7.02 running on ubuntu. It is running as the default user, NOBODY, and I'm experiencing alot of security headaches. I need access to...
    2. application.cfc best practices
      I'm trying to migrate code in my application.cfm page to a application.cfc file. I tried applying my cfapplication tag code to the...
    3. Best practices
      Hello All, I am working on an application involving the interoperability between J2EE and .NET. One of my requirements is to send an XML document...
    4. ASP Classic Best Practices
      Hi all, i am an ASP developer with 1,5+ years experience. After sneaking around the ASP Classic world for a bit i became a bit dissatisfied of my...
    5. Some PHP best practices
      I'm starting a new project, and I was wondering what is considered best practise in the following cases: * Connecting to multiple databases...
  3. #2

    Default Re: Best Practices?

    It doesn't matter. I'm an individual page type of guy myself.

    Dan Bracuk Guest

  4. #3

    Default Re: Best Practices?

    >>In CF, what's the best practice. Should I do everything in one page or should
    I use individual pages?

    Depends, very small apps (simple feedback form and the like) just whack it all
    one page if you like. But usually it?s best to break stuff up using different
    templates (pages) that can potentially be reused. In larger apps it may be
    worth using a more Model 2 like approach and have cfc?s handle business logic
    and db persistence and your pages handle presentation only ? frameworks like
    mach ii can help with this.

    I don?t believe there are any real ?Best Practices? as such, just common sense
    applied to each situation. I have seen Model 2 applied in situations where it
    has caused more harm than good, for example (as in overkill solving nothing,
    yet introducing harder to debug and longer to craft code)


    Andley Jandley Guest

  5. #4

    Default Re: Best Practices?

    Originally posted by: Andley Jandley
    >>In CF, what's the best practice. Should I do everything in one page or
    should I use individual pages?

    Depends, very small apps (simple feedback form and the like) just whack it all
    one page if you like. But usually it?s best to break stuff up using different
    templates (pages) that can potentially be reused. In larger apps it may be
    worth using a more Model 2 like approach and have cfc?s handle business logic
    and db persistence and your pages handle presentation only ? frameworks like
    mach ii can help with this.

    I don?t believe there are any real ?Best Practices? as such, just common sense
    applied to each situation. I have seen Model 2 applied in situations where it
    has caused more harm than good, for example (as in overkill solving nothing,
    yet introducing harder to debug and longer to craft code)



    Yes. For very large applications, I usually seperate them so that each module
    can be reuse anywhere else.

    redevolve 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