Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 620 Vote(s) - 3.48 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using ColdFusion frameworks

#1
Can anyone expound on disadvantages, if there are any, to using a ColdFusion development framework? I'm developing an application traditionally, and I'm tempted to use a framework having seen how simple some things can be done.

I'm new to ColdFusion and frameworks in general. I want to understand the implications of using a framework, including advantages and disadvantages.
Reply

#2
Disadvantages:

- learning curve (pick a lean framework to reduce this)
- front controller makes ugly URL, often needs URL rewrite on web server layer
- risk of framework being discontinued (no support, hard to maintain, break on new CF ver)
- framework bugs (pick a popular framework with good & fast support)
- harder to debug sometimes, since actions are generally not a .cfm anymore. Tip: make use of cfdump and cfabort to see the dump in the controller layer
- some frameworks takes longer to reinit. Since most frameworks will cache the configurations and controller layer for performance, during the development phase, you'll need to reinit all the time. CF9 eases this problem 'cause it is much faster.
- lastly, sometimes you'll be using framework's API, an abstraction from CFML, and missed out on the native ColdFusion way of solving the same problem.

Performance generally is a non issue. Don't worry.
Reply

#3
Henry's already given a good answer, but I would just like to pick up on this part of your question:

> But does it not come with a performance tax?

The performance overhead of a framework is negligible.

In fact, you may even get *better* performance from frameworks such as [ColdBox][1], which have built-in caching.

Remember, most frameworks are mature codebases used by lots of people - most likely, your newly written untested code is going to be the culprit, not the framework.

<br/>
However, as a general rule (not specific to frameworks) **performance is not a problem unless you've got measurable results that say it is**.

i.e. don't just think "I'm going to do X instead of Y because I think it'll be faster" - go with the simplest option that meets user's needs, and only change it if you can prove that it has a performance problem *and* that your proposed solution is better.



[1]:

[To see links please register here]

Reply

#4

It depends the nature of project you are into. I think its always advisable to use a frameowrk for better code organization, scalability, conventions and other. If you are supposed to start with a enterprise level application then coldbox is the best framework as far as my expriece goes. It has a bigger learning curve but its worth learning. If its simple start up project then FW1 is good. You can find a list here

[To see links please register here]


Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through