New to ColdFusion - Question about best practices

Hello.

I've been programming in Java / c# / PHP for the past two years or so, and as of late have really taken taste to ColdFusion.

The question I have is around the effective separation of the code, and if there are any best practices that are preached by using this language. While I was learning Java, I was taught that it is better to have several layers in your code; example: Front end (JSP or ASP)-> Business Objects-> support-> database. All the code I've written using these three languages followed this simple structure, most of the time.

As I dive deeper into ColdFusion, most of the examples I've seen of vetrans of this language really does incorporate a lot of separation. And I don't mean the simple ' here's what this function only "type of online examples where most of the code is written in a single file. I was able to see the projects that were created with this language.

I work with a few developers who have written in ColdFusion for a few years and put the question to them as well. Their response was something to the effect, ' I don't know if there is any recommended for this, but it really doesn't seem like there is really a problem, make calls like that. "

I searched online for any type of best practices or discussions around that and have not seen much.

I still consider myself a bit of a noobling when it comes to programming, but best practice is important to me for any language that I learn more about.

Thanks for the help.

You might want to take a look at a number of major frameworks available for

ColdFusion.

FW/1 II, model glue, CFWheels, ColdBox and Mach.  They do a great job of

giving you a path for the separation of code, best practices, etc.

http://www.carehart.org/cf411/#cffw

Tags: ColdFusion

Similar Questions

  • [^^ New here] Ask questions about the development of Blackberry GUI

    Hi everyone, im new here.

    (My English is not very good, but in any case I'll do my best to be understable).

    First of all, I'm going to introduce myself:

    My name is Díaz de Miguel (South America, Chile) and now I'm working with a team on what we called 'Santa Maria Mobile Challenge' here in my University (UTFSM, Universidad Tecnica Federico Santa Maria) and we have an app for phones mobile Blackberry... IM in charge of the User Interface of the application... so, here's my question:

    I conceive an idea of how it looks at the application (we are new to programming in java and J2ME for Blackberry), I designed in Photoshop, and with a few readings, I realize how can I do this on J2ME BB.

    In my research on J2ME and Clases de BB I think I can do this with HorizontalFieldManagers and VerticalFieldManagers... tie them a background image for each FieldManager (of course I have to divide my original and more image "images") and connect (or trigger) behaviour when he focused...

    The idea of this is to make each component of our application classes:

    IE: Where it says "task 1", which blocks will be a HorizontalFieldManager with 3 VerticalFieldManagers, one with the «!» Icon, the Second bearing the name of the task, in this example is "task 1", and the third will be the other information... and perhaps on the third HorizontalFieldManagers 2 more...)

    Well well... the idea of this post is to know if im on the right way to apply for ugly or there is a better way... I accept all the comments... I want to win this contest.

    Thank you!!

    Miguel Diaz

    ========================

    Reach:

    This is the Image:

    Hi and welcome to the development of BlackBerry,

    You are on the right track... It is difficult to design a beautiful blackberry app but you can do what you want with methods of painting FieldManagers und ...

    If you need help others let me know...

    Also if you need help doing some work im a blackberry developer contractor who is happy to help you any time...

    Concerning

    Paul Haenel

  • New on windows - question about installations of update failed

    I am new to Windows, but recently purchased a netbook with Windows 7. I also installed Norton Internet Security.  I do not use the netbook every day, so every time I restart, I ensure that I update Windows and Norton.  Today, I watched the history of update and discovered that some elements did not install on other occasions. I don't know whether to worry about this or not.  If the elements have failed to install, say, two weeks ago, Windows Update would not try to install them again when I ran the update engine then?  I have received no notification on this topic - I just noticed this by looking at the history of update.

    While some of the elements initially appear in history as 'impossible' later appear as "successful", I can't find two articles among the facilities of 'success'  They are:

    (1) definition update for Windows Defender - KB915597 (. 1.79.702.0) and

    (2) definition update for Windows Defender - KB915597 (1.75.377.0.)

    Since the date where these two updates could not be installed, there are several successful installations of security for Windows upgrades and updates security cumulative for Internet project.

    I am now, I was wondering if the above is not updates of definition for Defender could have been included in the broader future updates.  Or should I still worry that these two items do not have install and try to do it manually?

    Thank you very much for your help!

    If you use Norton 360, please turn off windows Defender. If the Defender and norton are running, your system can know the performance degradation and other problems caused by the conflict of two services providing real-time protection at the same time.

    It is very important to update the virus definitions regularly. Otherwise you will not be protected against the latest threats

    Swede08, Norton 360 provides complete protection. However for a home user, I won't recommend that Norton 360 or other paid antivirus solutions

    You can use Microsoft security essentials. Its free of cost. Its your choice and depends on you and what kind of protection you need

    I hope the above information helps you

    If this post can help solve your problem, please click the 'Mark as answer"or if you find it useful, mark it as useful by clicking the 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • New to Dell, question about restore/reset

    Just took my first laptop namely a 7559. All my other PC is auto built workstations.

    A question for future reference concerning recovery usb and windows built utility reset feature.

    If and when the time comes, I want to "reformat" and do not take care of having to reinstall applications and settings again once I'm fine using the reset in windows feature? I guess if I want to actually wipe the drive and reinstall the OS, then I should be the practical usb recovery?

    Thank you

    If you have 10 installed windows you have several options. I usually only a few points of recovery every now and then I can come back if necessary (i.e. driver fails).

    You should have an original image on your computer which also allows you to restore to the factory settings.

    I also created the laptop recovery media once I installed everything Basic that I needed and I use this as my tool of back-up/wipe. You can download windows 10 clean install-tool free-form their website, but this leaves you without drivers or anything (so remember to also back up SSD-pilots and drivers wifi on the usb port even if you use this method).

    To summarize:

    1. create recovery points every now and then

    2 create USB recovery media using the dell media recovery software - very useful, keep it somewhere safe.

    (3) you can always clean install with the feature 10 available at the website windows windows

    I hope this helps!

  • Inspiron 17 7737 new user with questions about the contribution of readable screens

    I just bought the laptop computer Inspiron 17 7737. When I enter the text in the ie browser, chrome or fire fox is very small. I found I can pinch on the touch screen, but I want to know if there is a parameter to make it large enough to read each time with having them to pinch. If this cannot be fixed, I might have to send again and I don't want to do this because I bought it to view Netflix and is great for this. Thanks for your help.

    I found the answer after playing with the laptop and my touchpad settings. Apparently, he was very sensitive and he had turned on gestures and I touch something on the touchpad that would make the text of the small screen. Now, it works almost like my Windows 7 and VIsta machines. Windows 8 takes a little getting used to.

  • Best practice: the name of each picture?

    Hi all.  It is more a question about best practices and what advanced suggest users.

    As I create simple, static webpages with clusters of images and text, it is important to assign a name to each graph?  I know it's crucial when you try to set animated buttons, but each image on the page have a unique name?

    Thanks in advance!

    My vote is "no".

    More thought - what do you mean by 'name' evey image? A "name" attribute or an attribute "id"? IMG tags do not get a NAME attribute and an ID attribute on each image would be overkill, unless you have a very specific accessibility or CSS reasons to need that.

  • ORACLE_HOME on best practice database backup issue

    Hello
    The next question is about best practices.
    I would like to know if the ORACLE_HOME on the physical database should have the same name
    as the basis of primary data.
    For example, if the primary database name is: / u01/app/oracle/prodcut/1120/PROD
    According to best practices should also be: / u01/app/oracle/product/1120/PROD or it should be:
    / u01/app/oracle/product/1120/STDY?
    Thank you

    Yes.

    Given what you just said I agree that is the way to do it. So when patch arrives, you should be less likely to make a mistake.

    I probably create a 'home' of the decoder sheet and hung it near my desk.

    Best regards

    mseberg

  • Import of Images/Illustrator files - best practices?

    Greetings

    I'm pretty new in InDesign. I have CS3. I have created a nice card in illustrator and I try to get into InDesign for print (can't seem to get it printed in Illustrator)?. I tried several methods: cut and paste, saving to JPEG in PhotoShop, place as .ai, place it as .ps file, put in jpeg.

    All are varying degrees of crappiness. Can someone give me a good method to do this. Not to sound impatient, but my INTERVIEW, it OF TOMORROW!

    Help, please.

    You should be able to print directly from Illustrator, or simply go file > save as > select PDF and print from that.  However, to answer your question, the best practice is to place as .ai.  I guess the reason why you think it's crap, it's a lo res preview, before it takes hi res go > display performance > high quality screen.

    Enjoy!

  • Independent endpoints of best practices

    Hello

    I am looking for any documentation that talks about best practices for independent video endpoints, I found Architecture preferred Cisco
    for the video, but still have Expressay C and E.

    I want to send to a client some info, whats better put endpoint behind the firewall for example in a DMZ?

    Concerning

    Leonardo Santana

    There are no guides that I know, or even remember seeing anywhere for this mater.  It is always better to put the end behind something, usually a firewall or a guard point, there never recommended that it is where it is directly accessible.

  • Removes the source of capture-best practices

    What are the best practices for capturing removes the source (10g)? I need to put the data in the data warehouse. Asynchronous CDC can do the job, but should I be aware of? If someone can talk about best practices of implementation of this? Other options?
    Thanks in advance.

    Published by: Rinne Sep 23, 2010 11:05

    do a delete trigger or enable auditing
    concerning

  • What are the best practices for a new employee to learn inside the instance of their business of Eloqua as efficiently as possible?

    We have companies everything changed at some point in our lives. And we all go through the process in the first weeks, where you feel new and are just trying to figure out how not to get lost on your way in the mornings.

    On top of that, trying to familiarize yourself with your new company Eloqua instance can be a daunting task, especially if it's a large organization.

    What are the best practices for new employees to learn as efficiently and effectively as possible?

    I am in this situation right now. Moved to a much larger organization. It is a huge task trying to understand all the ins and outs not only society, but also of the eloqua instance, especially when she is complex with many points of integration. I find that most of the learning happens when I really go do the work. I spent a ton of time going through the programs, documentation, integrations, etc., but after awhile, it's all just words on a page and not absorbed.

    The biggest thing that I recommend is to learn how and why things are made the way they are currently, ask lots of questions, don't assume not that things work the same as they did with your previous employer.

    Download some base in place level benchmarks to demonstrate additional improvement.

    Make a list of tasks in the long term. As a new pair of eyes, make a list of things you'd like to improve.

  • change the vswitch, best practical question

    Hello

    Here is the scenario, I invited XP and I want to spend the vswitch he connected too.

    Is it safe to simply change the properties of comments in the vshpere client, set up the different vswitch, select ok. (without closing comments)

    Here is what happened last week and I would like to get feedback to see if I did something outside best practices.

    I have a xp machine who's job it is to move files within our company.  In house app, had problems with the performance, of course the bandwidth network has been a problem but also a sustained the 100% CPU usage whenever the application in the House is running. I made a few changes, first I changed the network card to a vswitch with no other guests connected, than giving a non-shared on the network connection to this comments

    I stopped our applications in the House that copies the edited files the client settings, change to the another vswitch, selecting ok...  Everything seemed fine, restarted apps and found no problem.

    The next day, I increased the RAM on the host of Meg 512 to 1024 Meg as the available physical ram was weak, and I suspected disk cache.  Stop the guest computer, editing the memory and it has increased from 1024 to vsphere...  Restarted and is the reason for my questions, which connects to run the application has been corrupted and would not load the profile.

    I should add that the application users often use the method "end task" through windows to complete the process as soon as they are sometimes does not.  Not something I tend to do what I think may be a cause of file corruption.

    My boss suggested that he believes that my approach is the cause of profile corruption, citing specifically the way in which I changed the vswitch that the guest has been connected.  My understanding at this point is that my approach was equivalent to not patch a machine and plug in another switch, and I don't see how, which could cause a windows become corrupt profile.

    Ideas of the community?  Expect honesty burtal if my method is in error.

    Change the who vswitch a virtual computer to connect during operation is perfectly accetable as only the switch that you move to can access the subnet of the virtual computer is configured for - it's like unplugging a [machine to go to an actual physical switch and plug it into a new physical switch -

  • Questions about the installation of ColdFusion 9.0.2 version of existing in version 9.0.1

    Hello

    I'm currently running ColdFusion 9.0.1 enterprise edition and plan to upgrade to version 9.0.2 version. I understand that this requires uninstalling existing 9.0.1 and perform a new installation of version 9.0.2 version. My concerns are below:

    1. for the installation of the 9.0.2 version the 9.0.2 installer (demo / trial version) must be downloaded and the existing serial number (used in version 9.0.1) can be given during installation to convert it in fully registered mode - please correct me if my interpretation is incorrect here. My question is will the existing serial key (as shown in the page Admin of CF 9.0.1 version version) work with the 9.0.2 version as well?

    2. There are many features that are present in the current 9.0.1 version - for example the sources of data configured in the Admin see Y page there a way I can save these configurations of the existing version and to migrate settings to the new 9.0.2 install, or what I have to do the entire configuration manually after the installation of new? Data sources is something I can think; What other configurations can I save, if such a provision is available?

    3. in the installation of the 9.0.2 version there is a question about "configure the Web server for CF Connector" allows me to add Web/sites Internet servers during installation. If I select "built-in Web server" as the option (so do not configure any Web-site Web server), can I change this and configure Server/site later, after compeleting installation?

    What would be the things I need to be careful during this installation to version 9.0.2 from 9.0.1?

    Thank you!

    Arun-

    I did a successful version 9.0.2; installation answering my own questions, for the benefit of future development-

    1. Yes. Only the serial number is required (as shown in the Page of the CF Admin of existing facility)

    2 configurations (for example: data sources) can be exported. Go to CF Admin Page, click on packaging & deployment, click on Archives of CF. Basically, you export settings as files with the extension archive. car. Once exported from the current installation, it can be imported by clicking on the button deploying car file.

    3 server configuration can be modified (Add/Remove) by using the "Web Server Configuration Tool" which is installed by default with CF 9. You can find it under program files (windows OS).

    I had some problems during the installation. After installation, the CF Admin page would not be made. Virtually no cfm page don't take charge, because the extension is not known by the IIS (or the server you are using). To set this up, use the "Web Server Config Tool" mentioned above. This launch and activate the check box that is on the rendering cfm pages (forgot the exact name). Once this is done, cfm pages must load. I had to enable this and then do a reinstall but.

    -arun

  • Question about the new Yoga 10 HD +.

    Hello

    A few questions about the new Yoga 10 HD + that I hope you can answer.

    I bought the former model, last year. Love the design and long battery life, but a few major questions made me return.

    • Somewhere that I've read that it can not read NTFS on USB so I guess that's the same thing with a NTFS formatted microSD card?
    • Can it read exFAT formatted microSD cards?
    • Anyone who has questions about the audio via bluetooth?
      (I know that BT is not exactly High End HiFi but the old 10 Yoga for some obscure reason - most likely a driver problem which nobody cared to fix - rang * very * worst with visibly distortion while both my phone and a Tablet noname cheap I have zero about fidelity - any of my devices bluetooth audio) I tried aptX or not)

    So to avoid buying it back it also I really I would like to see if I can get my questions answered before buy you.

    While I love the form factor and long term issues above are only two Mayor dealbreakers for me. Bad audio quality = no joy listen to spotify, local etc. MP3s. not of NTFS or exFAT = some great movies.

    My old noname android Tablet really could use an upgrade so I'm really curious it may be, or I should watch the competition and will be form factor and battery LIFE.

    Thanks in advance.

    EDIT:

    If it does not support NTFS or exFAT on microSD card have someone at - he tried ext3 or ext4?

    I mean with Linux Android root, it should be a no-brainer to support at least when it comes to royalties unlike NTFS or exFAT where it * might * have some trouble with Microsoft.

    I used a USB through a USB OTG cable. NTFS or exFAT have been recognized by the Tablet PC. FAT32 is seems to be the preference.

  • Best practical Question - update the query (see object) based on the drop-down list selection

    I have a question about the most efficient way to perform the following task:

    I create a page that contains several DVT components to display data based on specific requests.  Top of page I am hoping to have a drop down menu (selectOneChoice) that contains dates different and based on what the user selects (i.e. 2010, 2011, 2012, 2013, etc.), this will update the query in the view object of some (i.s. WHERE Date = '2011', or WHERE Date = 2013"), and then you view the appropriate data in the DVT.  What is the best way to do this - from a point of view bean managed / page, as well as the View object?  Advice/documentation would be appreciated.

    Thank you!

    When you drag the vo executeWithParams one another that will create links for operations such as 'executeWithParams2', 'executeWithParams3 '. On the method that you use to update a view by calling the executeWithParams operation, you call the other operations too.

    Timo

Maybe you are looking for