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
|
Page 2 -
ATTN Experienced (coldfusion) web developers
Page 2 - 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:
|
|
|

June 26th, 2003, 03:44 PM
|
|
Moderator
|
|
Join Date: Jun 2002
Location: Raleigh, NC
|
|
Quote: Originally posted by drgroove
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. | Well, I'm what I would consider to be an advanced CF developer, and I'd say that this statement is not correct. Maybe a coding challenge is in order?
Quote:
Thus, CFML has:
Code:
<cfoutput> text #var# text </cfoutput>
instead of :
| This would be true...except that you don't need to wrap EVERY call to a CF variable or function in <cfoutput>, as you are trying to show. In reality, an entire CF template can be written with only one set of <cfoutput> tags, which would result in much less code than the similar PHP output that you have shown.
I appreciate PHP as a great language, but the reality is that CF is much easier to code in and requires much less code in the end. Snippets and functions can help, but the wonderful abstraction that CFML provides is very hard to beat.
|

July 2nd, 2003, 03:51 PM
|
|
Junior Member
|
|
Join Date: Jun 2003
Posts: 9
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
all i can say, is i have a great extent of experiance using CFML and while it is maybe more simple, it is still as effective for many things as php imho. Coldfusion is definatly a language for designers, its simple, user friendly, and easy to understand, but not nearly as dynamic as php. in the long run id rather use php but cfml is not a bad alternative (i recently coded a LARGE web based inventory management system using cfml with a backend of oracle 9i for a fortune 500 company that exports to excel, is reportable, searchable, and updateable with a minimal amount of code. it works fairly well and they are happy, the php code may have been a bit more consolidated and compacted but not to any large extent.) coldfusion also does not need to be wrapped by tags for everything it does on every line. 2 tags on one page and an if statement and u got yourself a nice search for a table in a database. also as for the comment of windowz based systems running cfml, pure lack of knowledge. we are currently running CFML on a sun enterprise 10000 w/ an iplanet webserver as well as other smaller sun boxes such as a sun 3000 w/ apache. it is unix/linux friendly. anyway just my thoughts.
Last edited by firest0rm : July 2nd, 2003 at 03:56 PM.
|

July 5th, 2003, 07:02 PM
|
|
Junior Member
|
|
Join Date: Jul 2003
Location: Derby, UK
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
blah well there we go, no need for me to post this reply to drgroove's stupid comment about CF using <CFOUTPUT> #var# </CFOUTPUT> as opposed to php's <? echo $var ?>
but there is one flaw in your argument kiteless, nesting <CFOUTPUT>'s causes problems, but even with that in mind it's still far shorter than php's echo for everything method
as for drgroove ignoring that post, - opinions are like arseholes, everyone has one, and some people are their opinion, drgroove, you fit that perfectly
php/CF features, the only benefit i can see with php is its image functionality, but then using CF with something like director would compensate for that, there are also methods inside Java and C++ for creating images, and since CF unlike php has the ability to utilise Java and C++ to further extend its abilities, i really dont see php as anything other than the popular kid that failed all his tests at school.
Last edited by herakles : July 5th, 2003 at 07:25 PM.
|

July 8th, 2003, 12:47 PM
|
|
Moderator
|
|
Join Date: Jun 2002
Location: Raleigh, NC
|
|
Quote: Originally posted by firest0rm
all i can say, is i have a great extent of experiance using CFML and while it is maybe more simple, it is still as effective for many things as php imho. Coldfusion is definatly a language for designers, its simple, user friendly, and easy to understand, but not nearly as dynamic as php. | Well I don't want to get into a big argument here, but I have no idea what you mean by CF not being "nearly as dynamic". I've been using CF for over 5 years and as far as I know, you can make virtually any CF variable name, or variable assignment, dynamic. Do you have an example of what you are trying to say?
|

July 8th, 2003, 01:03 PM
|
|
Moderator
|
|
Join Date: Jun 2002
Location: Raleigh, NC
|
|
Quote: Originally posted by herakles
but there is one flaw in your argument kiteless, nesting <CFOUTPUT>'s causes problems, but even with that in mind it's still far shorter than php's echo for everything method | you shouldn't ever need to nest CFOUTPUTs, except when outputting a query and using the GROUP attribute, when you have to nest CFOUTPUTs.
And yes, it is very easy to use something like the Java Image API classes from CF to create thumbnails and manipulate images.
ttfn,
Brian
|
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
|
|
|
|
|