The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages - More
> ColdFusion Development
|
ATTN Experienced (coldfusion) web developers
Discuss ATTN Experienced (coldfusion) web developers in the ColdFusion Development forum on Dev Shed. ATTN Experienced (coldfusion) web developers ColdFusion Development forum discussing CFML coding practices, tips on CFML, and other CFML related topics. Find out why ColdFusion is the tool of choice for many e-commerce developers.
|
|
 |
|
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

May 30th, 2003, 10:01 AM
|
|
|
|
ATTN Experienced (coldfusion) web developers
I know this forum is partial to PHP, but I wanted to know if anyone would be kind enough to share some thoughts on coldfusion vs PHP or vs anything, really. I've read some nice things about CF, but then again they came from CFM sites, so I'd rather hear comments from regular developers. thanks.
|

May 30th, 2003, 02:25 PM
|
 |
Moderator Emeritus
|
|
Join Date: Feb 2002
Location: Scottsdale, AZ
|
|
I've had pretty extensive experience with both, actually.
Thusfar, and despite CF's claims to the contrary, I've found that CFML consistantly takes noticeably more coding to achieve the same results as PHP, especially in complex applications, though the same issue applies to even trivial one-page scripts.
CFML also uses what I consider to be counter-intuitive operators; for instance, CFML uses IS NOT in place of PHP's !=; while language substitutes such as AND instead of && are also available in PHP, CFML uses these to the exclusion of more commonly used methods.
CFML encapsulates its code within tags, as the original purpose of the language was to allow non-technical designers the chance to use their basic HTML skills in a programmatic setting. Thus, CFML has:
Code:
<cfoutput> text #var# text </cfoutput>
instead of :
as in PHP.
I find that the tag system can be cumbersome, esp. as most tags need end tags, which just adds to the amount of code you need. Also, by having the language tag-based, it makes it near impossible to separate functionality from layout/content. Such a separation is much easier to facilitate in PHP.
CFML starts arrays at the number 1, instead of 0, which just screams "this is a language for designers, not programmers", much like the operators.
I think its nice that Macromedia (MM) is trying to bind CFML to Java. However, much the same functionality is available via PHP.
The key difference between PHP and CFML in my opinion is the impact it has on your overall skillset.
PHP is essentially a web-specific descendant of C. If you've studied and used PHP, and it is the only programming language you've had experience with, PHP's syntax at least prepares you for using C/C++ and/or Java, due to various similarities between the languages. Also, in that same sense, Perl and Python are at least readable to you - if not even immediately available to you for use - if you've had experience with PHP. If sometime in your career there is a need for you to make a switch to one of the aforementioned languages, you stand a much, much better chance of picking up on key concepts of programming in those languages - from objects, functions, arrays, database interaction - because of PHP's similarity to other C-like languages.
ColdFusion is related to nothing, and is based on no prior programming language - and therefore cannot prepare you for working in other languages. There are no other programming languages that are similar in syntax to CFML. If your boss asks you to work with Java, or if you decide to make a career change and learn Perl, or C, you are going to have a much more difficult time, if CFML is the only "programming" language you know.
Last edited by drgroove : June 6th, 2003 at 04:23 PM.
|

May 30th, 2003, 03:49 PM
|
|
|
|
thanks. I doubted Coldfusion REALLY has advantages over PHP/ASP/Java in the long run. Although, I have to say, I've seen more websites use CFM than those of Perl, ASP, or even JSP.
|

May 30th, 2003, 04:44 PM
|
 |
Moderator Emeritus
|
|
Join Date: Feb 2002
Location: Scottsdale, AZ
|
|
More sites using CFML than ASP? Really? MS-related/owned websites have some 15-20% of all internet traffic, and they're using 100% ASP. JSP maybe - actually, fwiw, over the years I've seen many sites that used JSP move over to PHP or ASP. I don't think JSP works very well (I've always found it to be a royal pain in the arse, not to mention a bit unreliable, slow, buggy...etc; not that I'm a big fan of ASP, either ...)
Perl is a tough one... a lot of sites that use Perl have pages that end in .html, which basically masks their Perl usage. Hmmm... maybe its time to check Netcraft.
|

May 31st, 2003, 07:21 PM
|
|
|
|

June 1st, 2003, 01:40 AM
|
|
The Dude Abides
|
|
Join Date: Feb 2000
Location: grass valley,ca
Posts: 1,062
Time spent in forums: 1 Day 10 h 1 m 34 sec
Reputation Power: 15
|
|
|
They aren't necessarily using perl, you can set your webserver to parse any file extension using whatever (perl, php, etc).
On my server I setup .html files to be parsed as .php files. All I added was a line to an .htaccess file.
As for Cold Fusion, I looked into it several years ago and gave it the big thumbs down. For starters it generally runs on Windoze web servers. That alone is enough for me. But I also noticed that busy sites running CF were always painfully slow, and suffered a lot of downtime.
I'm hoping it will just slowly go away
__________________
The Dude
I'm the Dude. So that's what you call me.
That, or Duder, His Dudeness, Or El Duderino.
If, you know, you're not into the whole brevity thing
|

June 1st, 2003, 12:03 PM
|
 |
Moderator Emeritus
|
|
Join Date: Feb 2002
Location: Scottsdale, AZ
|
|
Quote: Originally posted by thedude
They aren't necessarily using perl, you can set your webserver to parse any file extension using whatever (perl, php, etc).
On my server I setup .html files to be parsed as .php files. All I added was a line to an .htaccess file.
As for Cold Fusion, I looked into it several years ago and gave it the big thumbs down. For starters it generally runs on Windoze web servers. That alone is enough for me. But I also noticed that busy sites running CF were always painfully slow, and suffered a lot of downtime.
I'm hoping it will just slowly go away |
What version CFML were you using?
CF / MX runs on Unix, Linux, or Windows equally as well; has a respectably fast load time; and its debugging messages are actually pretty good... those are essentially the only 3 things I like about working w/ CFML.
Otherwise, I'm w/ you- big thumbs down, hoping it will just go away. 
|

June 1st, 2003, 04:50 PM
|
|
The Dude Abides
|
|
Join Date: Feb 2000
Location: grass valley,ca
Posts: 1,062
Time spent in forums: 1 Day 10 h 1 m 34 sec
Reputation Power: 15
|
|
|
I don't remember what version, it was about 5 years ago. I knew it worked on several platforms, but the majority of hosts at the time only offered it on Windoze.
The biggest flaw I saw at the time was the number of sites I saw that were having problems with it. Especially when they got busy.
|

June 1st, 2003, 06:49 PM
|
|
Hopeless Romantic
|
|
Join Date: May 2003
Location: Australia
Posts: 30
  
Time spent in forums: < 1 sec
Reputation Power: 12
|
|
I do a lot of web coding with coldfusion. I'm definitely not a designer, btw  I'm not going to argue about syntax because that's purely a matter of taste, however a lot of the other common complainants about coldfusion are no longer valid with 6/MX. Performance is (a lot, lot) better, no more ODBC means everything comes and goes from your DB a lot faster too. In my opinion coldfusion's biggest weakness is that it is neither open source nor well supported by macromedia. If either of those two points where true, if it was open source or macromedia backed it to the hilt like MS does with ASP, i think you'd see coldfusion running in a lot more places - it really does have a lot going for it with regards to rapid application development.
|

June 1st, 2003, 07:50 PM
|
 |
Kiss My Converse!
|
|
Join Date: May 2003
Location: Davie, Florida
|
|
|
Would you guys think creating a Cold Fusion board would be a good idea?
|

June 1st, 2003, 08:11 PM
|
 |
Moderator Emeritus
|
|
Join Date: Feb 2002
Location: Scottsdale, AZ
|
|
Quote: Originally posted by Jcaputo
Would you guys think creating a Cold Fusion board would be a good idea? |
Believe it or not, as much as I prefer PHP over CFML, I wouldn't mind seeing a CF/MX board on Devshed. I have to code CFML for work, and as Macromedia's documentation on the language is just terrible, having an online resource to hit a community up for questions would rock.
Macromedia has a CFML forum, but the type of users on there can be a little basic... DS seems to attract more advanced/experienced programmers.
You got my vote.
|

June 1st, 2003, 08:17 PM
|
 |
Moderator Emeritus
|
|
Join Date: Feb 2002
Location: Scottsdale, AZ
|
|
Quote: Originally posted by cfgeek
I do a lot of web coding with coldfusion. I'm definitely not a designer, btw I'm not going to argue about syntax because that's purely a matter of taste, however a lot of the other common complainants about coldfusion are no longer valid with 6/MX. Performance is (a lot, lot) better, no more ODBC means everything comes and goes from your DB a lot faster too. In my opinion coldfusion's biggest weakness is that it is neither open source nor well supported by macromedia. If either of those two points where true, if it was open source or macromedia backed it to the hilt like MS does with ASP, i think you'd see coldfusion running in a lot more places - it really does have a lot going for it with regards to rapid application development. |
cfgeek - I didn't mean to offend you (or anyone else) in any way w/ my comment that CFML is a language for designers, not programmers. To clarify, what I think I was trying to get at with my comment was the history of the language - the original purpose of CFML was to provide a lightweight, easy to use scripting language for web developers/designers whose only coding experience was HTML. Hence why CFML is a tag-based language... sorry if I stepped on your toes.
I completely agree w/ you about MM's backing; CFML has been their red-headed step child ever since they bought Allaire; fwiw, MM used .jsp for their own website until just recently. The documentation for CFML is the pits - books, training materials... I haven't seen anything that approaches whats available for PHP or other web scripting languages.
|

June 1st, 2003, 08:41 PM
|
|
Hopeless Romantic
|
|
Join Date: May 2003
Location: Australia
Posts: 30
  
Time spent in forums: < 1 sec
Reputation Power: 12
|
|
Quote: Originally posted by drgroove
cfgeek - I didn't mean to offend you (or anyone else) in any way w/ my comment that CFML is a language for designers, not programmers. To clarify, what I think I was trying to get at with my comment was the history of the language - the original purpose of CFML was to provide a lightweight, easy to use scripting language for web developers/designers whose only coding experience was HTML. Hence why CFML is a tag-based language... sorry if I stepped on your toes. |
You didn't!  You're 100% correct.
Quote: Originally posted by drgroove
I completely agree w/ you about MM's backing; CFML has been their red-headed step child ever since they bought Allaire; fwiw, MM used .jsp for their own website until just recently. The documentation for CFML is the pits - books, training materials... I haven't seen anything that approaches whats available for PHP or other web scripting languages. |
I always got the impression that CFMX was traditionally geared more as an intranet solution. This seemed to be reflected in many aspects of the product, including support and pricing. It's changing, though. I, for one, hope that CFMX doesn't just go away 
|

June 1st, 2003, 08:44 PM
|
|
Hopeless Romantic
|
|
Join Date: May 2003
Location: Australia
Posts: 30
  
Time spent in forums: < 1 sec
Reputation Power: 12
|
|
Quote: Originally posted by Jcaputo
Would you guys think creating a Cold Fusion board would be a good idea? |
I'd like to see that. I have no delusions about it getting a lot of traffic, though. 
|

June 2nd, 2003, 08:16 AM
|
 |
Moderator Emeritus
|
|
Join Date: Feb 2002
Location: Scottsdale, AZ
|
|
Quote: Originally posted by cfgeek
You didn't! You're 100% correct.
I always got the impression that CFMX was traditionally geared more as an intranet solution. This seemed to be reflected in many aspects of the product, including support and pricing. It's changing, though. I, for one, hope that CFMX doesn't just go away |
Interesting... we actually use PHP for our internet sites, and CFML for our intranet sites where I work. Never made that connection, though...
Hey! Check out the CFML forum! JCaputo doesn't waste any time, does he???
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|