in reply to Cold Fusion

I'm going to echo a few things already said here, mostly by jeffa, so forgive me. :-)

I am rather sad to admit that I have written more lines in ColdFusion Markup Language (CFML) than in Perl. Each have their strengths and disadvantages, and it's important (as has been mentioned) not to "defend" Perl (nor, for that matter, to "attack" me^H^HColdFusion) but to realize that each technology has it's strengths and weaknesses.

Alongside the development of three intranets and a handful of e-commerce sites in ColdFusion, I was coding up barchart generators and webserver logfile parsers in Perl. I really got a firsthand look (always the best) at the two languages and how they butt up against each other. ColdFusion is incredibly simple to learn and deploy, and really is the epitomy of Web RAD (Rapid Application Development). Take this simple example:

<cfquery name="ProductList" database="#DSN#"> SELECT Name, Description, Price FROM Products ORDER BY Name </cfquery> <table border="0"> <tr> <th align="left">Name</th> <th align="left">Price</th> </tr> <cfloop query="ProductList"> <tr> <td>#Name#</td> <td>#DollarFormat(Price)#</td> </tr> <tr> <td colspan="2">#Description#</td> </tr> </cfloop> </table>

It really doesn't get any easier than that. At the time, developing for a Windows platform, the only other option was really ASP with VBScript. PHP hadn't arrived yet, DBD::ODBC was still in it's infancy, and we needed a fairly robust, easy to learn and use solution. Enter the Dragon, as they say. It also had the advantage of being portable to Solaris Unix (to contradict an earlier poster, CF is cross-platform, albiet not nearly at the level that Perl is).

Backend programming wasn't really a problem (again, to contradict an earlier poster) because ColdFusion came with a scheduler that could be used to run pre-written scripts and specific intervals and times. It has a decent collection of functions for any data type you can imagine (especially dates and times, let me tell you) and could even perform regexps without too much of a hassle. Not only that, but it came with a binary file search engine (PDFs, Word docs, spreadsheets) that was simple to setup and even easier to use. How can you lose? ;-)

I'll tell ya. CF's worst failing points are where Perl steps in and whoops butt:

Knowing what I know now about Perl, Apache, DBI and friends, I probably would have never put myself through the hell that I went through if I could have avoided it. <flame retardant>I actually enjoy programming in Perl. I really didn't in CFML. Perl is just a "better" language.</flame retardant>

Hope this helps to clarify things a little more, and hopefully my incessant rambling didn't put you to sleep...

Alakaboo

Replies are listed 'Best First'.
Re: RE: Cold Fusion
by hacker_j99 (Beadle) on Nov 20, 2002 at 16:06 UTC
    Has Anyone done a side by side comparison of load and run times.
    I am looking for some sort of benchmark.
    My roommate all the time tries to convince me to switch to CF and abandon the old perl, but I realize that perl has more flexablity and is robust for non-web applications.(plus has a large support base, shout out to perlmonks)
    www.cfmtools.com

    A couple of my friends say that CF is a bloated. I neither support nor deny this clam since I have little experience with CF.
    Is short I would apperiate it if someone who is strong in both perl and CF knowledge comparies and contrasts the two in detail.
    (ya I know compairing a markup language to a scripting program is like apples to hairy coding monkey)

    Should I add CF to my language collection?

    Hacker_j99

      You should never shy away from adding another language to your personal repertoire.

      ColdFusion is bloated IMO. Didn't I say just that in the OP? :-) But if you think you have a need for it, knock your socks off! It's a fun and easy language that a lot of sites still use.

      But Perl is faster, more powerful, and much, much cheaper. A side by side comparison isn't really necessary. It's maybe 10-20% faster to code up a database-to-web app in CFML. Spend a few weeks coding in ColdFusion if you don't believe me. But Perl is FREE. And it's FAST. And you can do more than just database-to-web apps! That's all it boils down to.

      Alakaboo