PHP or ColdFusion?

Status
Not open for further replies.
I'm building a site and I'm debating which to learn? Which is better for web site development? Which is faster, etc? Reasons? Thanks :)

I'm leaning more towards ColdFusion because it seems MUCH more organized and straightforward (which is the type of person I am). I like things that are straightforward and a bit simpler, it's just easier for me to NOT get sidetracked.
 

_Dent_

Ars Scholae Palatinae
607
from continuity @ everything2.com, all credit to where credit is due:

After being professionally employed writing ColdFusion for the past two years, here's my moderately informed opinion.

ColdFusion is the single best web-scripting language choice for an uneducated user with a small task at hand (that is, if you don't mind shelling out several hundred bucks to complete this small task). CFML is terribly easy to learn, and handles all the everyday tasks you'd expect from a web-scripting language. This allows you to get yourself in trouble very quickly. Why?

1. ColdFusion is slow. How slow? Like, Short bus slow. Slow enough that you need to be wary of loops that iterate more than 1,000 times. That's pretty fucking slow for 2001. This doesn't even mention query times, which leads us on to:

2. A typical ColdFusion corporate setup is to have CF as the web-scripting language and MS SQL Server as the database. How do these two communicate, you ask? ODBC. Which is really fucking slow. Like, Cousin no one in your family ever talks about slow.

3. A marketing department was obviously heavily involved in ColdFusion's development. How do I know? Simple things like for loops are sort-of implemented, but in what someone obviously thought was a "user-friendly" way. Here's a typical for loop:

for(int i = 0; i < 10; i++)
{
foo++;
}

Now here's the ColdFusion version:

<cfloop index=i from="0" to="9">
<cfset foo = #foo# + 1>
</cfloop>

ColdFusion does this sort of thing a lot, basically trumping typical programming language conventions. What this means for you: If you're new to the world of programming, all the assumptions you'll learn from ColdFusion are subtly, annoyingly wrong.

4. ColdFusion offers very little to help you, the programmer, manage complexity. At this time ColdFusion has reached release 5.0, and just now got around to giving users the ability to write functions. This lack of structure is where third parties come in, with products like the Fusebox method, but rote technique means little if your medium is crap.

If you're attempting to build a medium-large application with ColdFusion, you're looking at a minefield. You could, very easily, hire a bunch of schmoes from the local community college to learn CFML and write your application. Things would progress very rapidly, in the beginning. Given a bit of time and a few minor revisions, you'd be left with a grinding, slow application that was a nightmare to maintain. This is where you'd hire someone like me (at a mildly exorbitant rate) to come in, and essentially re-write your app from the ground up, in ColdFusion. Alternately, you could just hire me right away, but then what's the point of using ColdFusion?

Or you could just do it right, hire some programmers who know what they're doing, and build the thing with PHP. Which is what I'd have told you to do in the first place.

Personally, I use PHP and love it.
 

yoggo

Smack-Fu Master, in training
81
I find that PHP is more my style than Cold Fusion (although it's a while since I've used CF) because it's closer to C++, and that's how my programming mind works at the moment. I find the well-documented library really handy too - having all the docs for all the modules in a single place is really handy.

Free is nice, but well-documented is nicer.
 

pdampier

Ars Legatus Legionis
16,955
Nope its free.

You can get the full SDK (far more than just ASP.NET) from:

http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/msdn-files/027/000/976/msdncompositedoc.xml&frame=true

You need a server with IIS5 installed to use ASP.NET from the above install.

[This message was edited by pdampier on January 29, 2002 at 02:16.]
 
Originally posted by The_Hitman:
*sniff* *sniff* whats that smell?? OH... its that stench of single vendor, single platform, single os, single web server, LOCK-IN...
They call it "vertical leveraging" through a top-down, proactive approach allowing you to remain customer focused and goal-directed, innovate and be an inside-out organization which facilitates transforming turnkey wiz bang services into 24/365 'five nines' eBusiness paradigms implementing viral e-services and dot-com action-items.

:D

--- MWNH ---
 

Cupcake

Ars Tribunus Militum
2,688
you might also want to look at it from a $$$ perspective.

CF studio is not free. CF app server is not free either.

although the latter might be moot since you should be hosting it somewhere anyway.

There are a number of PHP editors out there. but it's true that CF Studio integrates pretty tightly.

also hitman. please stop it. your last few postings in this forum have been contentious and not helpful.


-cup
 
Originally posted by Cupcake:
There are a number of PHP editors out there. but it's true that CF Studio integrates pretty tightly.
Well yes to get this thread back on topic again (PHP or ColdFusion); I'm interest in something that could replace CF Studio, but in the PHP world.

Hence why I asked the question before.

I need something like CF that for a Linux server - which Macromedia doesn't do (and I don't like CF anyway - yes we do use it). I was thinking of a Notes/Domino thing, but PHP with a good studio-like thing would do just fine.

Mixed PHP/HTML editor?

--- MWNH ---
 

mudboy

Ars Legatus Legionis
17,501
Subscriptor
Originally posted by Man with no head:
Lets look at this from a different angle, people use ColdFusion Studio as the dev tool against ColdFusion Server/Spectra.

What would you use do the same against PHP?

--- MWNH ---

You can use HomeSite or CF Studio, there are PHP extensions available (they are essentially the same application, CF Studio just has some heavier duty developer functionality). See http://www.wilk4.com/asp4hs/php4hs.htm

Pete
 

mudboy

Ars Legatus Legionis
17,501
Subscriptor
Originally posted by _Dent_:
Quote: "get some development/programming skills established"

I don't know if using this and it's like:
Quote: " <cfloop index=i from="0" to="9">
<cfset foo = #foo# + 1>
</cfloop> "
is exceptionally good programming foundation

True, but for a person who has nothing but HTML experience (which there are PLENTY OF), it's much easier to pick up than PHP/ASP; true, looping, etc. are very basic, but you're teaching a concept here, along with the concepts of setting/reading variables, running queries and displaying output, etc. I've taken a number of "HTML Only" people and, in a single afternoon, given them the knowledge to be able to get information into and out of a database, build dynamic sites, etc.; sure, it's not "hard core" development, but for them, it's more than they ever thought they could do. So, if you've got some programming experience and you know how to loop, set and read var's, etc., PHP is probably the best choice. If you're a complete NewB, CF certainly isn't a bad way to go.

Again, I like CF but am fully aware of its' limitations, and would have a hard time recommending it for a site that gets hundreeds of thousands of hits a day. But when coded properly, CF sites CAN handle a pretty decent load.

Pete
 
Status
Not open for further replies.