ColdFusion: Quicker Scripting, At A Price.
ColdFusion is a rapid application development language for the web, developed by Macromedia. It's not free, but many people say that it's more important to them to have the development speed that ColdFusion offers – and you can download a free 'developer version' to experiment with before you commit to anything.
No Need for a Test Server.
One of the nicer features of ColdFusion is that it comes with a whole application to help you write it the language. While it can be used with Apache or IIS once you're finished, this application effectively acts as your test server while you're writing your scripts, saving you quite a lot of trouble.
As a downside, though, ColdFusion on the web can sometimes be unreliable and slow, mainly because it runs on a Java framework. Its Java support does, however, make it capable of running on many more operating systems than it otherwise would be – for most purposes, having written a page in ColdFusion is as good as having used Java for it, but much less difficult. Since ColdFusion also uses the ODBC (Open Database Connectivity) standard instead of tying itself down to one database, this gives you a lot of choices.
In other words, you're sacrificing some of your website's speed in exchange for more choices and compatibility, and quicker development time.
Easy to Learn.
One of the things that makes ColdFusion easy to learn is that it isn't all that different from normal HTML: it acts more like a set of extension tags for HTML than like trying to get a programming language to do things and output HTML afterwards. This is because it was designed from scratch for the web – it's not just a normal language trying to be web-compatible.
For example, here's some code that queries a database and writes the fields it finds to the page:
SELECT * FROM table WHERE id = '1'
#result.field_from_query#
You can see that the 'cfquery' tag is used for sending queries to a database, while the 'cfoutput' tag adds text to the HTML. The text surrounded by hashes (#) is a variable. How are variables defined, you wonder? Like this:
Once you get used to thinking in tags, it starts to feel quite natural: ColdFusion just feels more HTML-like than other languages do.
Despite its simplicity, though, ColdFusion is considered to compete more with languages like JSP and ASP.Net than it does with PHP.
CFScript.
Unfortunately, trying to write dynamic web pages with nothing but tags can start to feel restrictive quite quickly, especially if you want to do something complicated – you end up with a hard-to-read mass of tags, reminiscent of trying to do a page's layout with tables. To solve this problem, Macromedia introduced CFScript, a Javascript-like language that you can use by putting it between tags. If you're already a programmer, you may find CFScript easier to work with than 'real' ColdFusion code.
Java.
One ColdFusion strength is that it doesn't just run on top of Java – it can also call Java classes using its createObject function and use any methods it needs to, with the results being put in ColdFusion variables. This will be very useful to you if you have existing Java code or know of Java code that you'd like to make use of – you'll get access to all the J2EE libraries as well as ColdFusion's own. It's this fact that has led Macromedia to market ColdFusion as "a scripting layer for J2EE". Of course, whether or not that excites you is a matter of personal preferences.
Integration with Other Macromedia Products.
If you already design your pages in Dreamweaver, it can be good to do the scripting in ColdFusion, as you get the advantages that integration between the two gives you. You can insert ColdFusion code into Dreamweaver files quickly and easily, and you can even use its built-in editor to edit the code however you want without messing up Dreamweaver's WYSIWYG view.
ColdFusion also integrates surprisingly well with Macromedia's flagship product, Flash – but don't let that lead you into developing nothing but ColdFusion-scripted websites with fancy Flash interfaces, whatever you do.
|
|
Web Design
Home Page
The Confusing World Of Web Hosting: Making Your Decision.
The Basics Of Web Forms.
Beware The Stock Photographer: Picking Your Pictures.
An Introduction To Paint Shop Pro.
Setting Up A Test Server On Your Own Computer.
Uploading Your Website With FTP.
Make It Easy To Buy From Your Site
Some Places To Go For More Information.
RSS: Really Simple Syndication.
|
Web Design
Ways To Improve Sales Through Your Website
... the problems and solutions that your product offers. Not everyone will read your text copy from the head to the tail, but most people will pay attention to images on your website. Offer quality bonuses to accompany the product. When you offer bonuses that complement your product, your prospects will feel ...
The Art Of The Logo.
... avoid the painful clich logos that are so common on the web. To help you out, here's a quick list of logo types to stay away from: Decade-linked logos. Please don't make your logo look like something from the '60s, '70s or '80s, unless one of those decades is directly relevant to your site. If you just ...
Hiring Professionals: 5 Things To Look For.
... Web design is a new enough industry that what qualifications there are have ended up being largely stupid and meaningless. I've never met a good designer who has a qualification in web design a qualification in proper graphical design is, of course, something else entirely. You can guarantee that most ...
The Case Against Flash.
... many users disable all their browser's sound functions, not wanting random websites to be able to make sounds at them, but Flash sound still gets through, since it's a plugin and doesn't obey these settings. Flash is part of the reason why users end up browsing the web with their speakers turned off altogether ...
Which Database Is Right For You?
... vulnerability in SQL Server. The problems caused were bad enough that the entire Internet actually slowed down, and although Microsoft says it has committed to improving security in all its software, it remains to be seen whether something similar might happen again. Oracle. Oracle is widely considered ...
| |