I wanted to highlight two series of blog posts that are going on at the moment. They highlight the differences, code-wise, between doing things in ASP.NET and PHP versus doing them in ColdFusion.
The first series is ColdFusion versus ASP.NET written by Mike Fleming at his blog: Magnetion Blog.
- ColdFusion & .NET: Resizing the Width of an Image
- ColdFusion & .NET: Resizing the Height of an Image
- ColdFusion & .NET: Send an Email
- ColdFusion & .NET: Parsing an XML Feed (Xbox Live)
- ColdFusion & .NET: Using FTP to Upload a File
The second series is ColdFusion versus PHP by Brandon Hansen at his blog: Let's Make the Web Better, and already blogged by Ben, but I'm linking the entire series.
What I really like about these posts is that they were written by people outside the ColdFusion community (or at least they were when the articles were written), and as such have a degree of objectivity. They give both ColdFusion and the competitor their pluses and minuses, but I think ColdFusion comes out on top in these articles.
12 response s so far ↓
1 Jon Hartmann // Mar 9, 2009 at 5:14 PM
That said, picking out single examples of code and saying "its smaller, so is better" isn't really a comparison at all. I mean, why don't we compare CF and Rails and see "How many lines of code does it take to implement an MVC implementation?" The answer in Rails is 0 and the answer in CF is quite a lot. The real questions are how well does it scale, how quickly can a usable application be created, how flexible is the code, etc. Those are answer's you can't get by counting lines.
2 Terrence Ryan // Mar 9, 2009 at 5:44 PM
Simplicity of execution is where I think CF shines in these coding examples.
3 Hector // Mar 9, 2009 at 5:54 PM
http://highscalability.com/scaling-twitter-making-twitter-10000-percent-faster
4 denny // Mar 9, 2009 at 6:46 PM
CF has code generation frameworks too (although everything takes at least *some* code-- depending on how you quantify "code"-- there are no 0 line programs (depending on your definition of a program, I guess.) ;])
Ruby not scaling well has been beaten to death (I think a good bit of this is because of one of the "main dev" dudes bouncing and then bitching), but I would like to point out that things in Rails-land are *much* better in this regard these days.
Seems like some things are harder with certain "languages" than others, and it really depends on WTF you're trying to accomplish, your "end goals", available talent, etc..
There is no single right answer, really. Well, besides philosophy, of course. :-)p
Some Philosophy (or something like that):
http://blog.objectmentor.com/articles/2009/02/26/10-papers-every-programmer-should-read-at-least-twice
5 Jon Hartmann // Mar 9, 2009 at 9:32 PM
@Denny: I think I was hinting at what you say explicitly; it all depends on what you're doing. If you're doing lots of smaller e-commerce sites, Rails might be your best friend. Working somewhere that does lots of heavy number crunching, you might go for Java or something else. I also wasn't trying to rag on Rails performance, but simply point out that there are other features then lines of code on which to evaluate a server and language. And thanks for the link; those look like awesome reads.
6 Brandon Hansen // Mar 10, 2009 at 1:25 AM
The point of the article was not at all to say that RoR is a bad framework. I actually love the framework, more and more each day. There is no framework that gets it done that quickly and effectively.
The reason that I stated that RoR should not have been used is simply because it is untested to that scale. I went on to say that it has performed quite well, and now we have an example of a site that does well using RoR. I actually don't know that CF would have been a good solution for that site. My suggestion would be to go with either PHP or Java (PHP powers facebook, and Java powers linkedin).
Please don't mistake a small point in the article for the purpose of the article. I do welcome your criticism, and will learn from my mistakes.
7 Brandon Hansen // Mar 10, 2009 at 1:25 AM
The point of the article was not at all to say that RoR is a bad framework. I actually love the framework, more and more each day. There is no framework that gets it done that quickly and effectively.
The reason that I stated that RoR should not have been used is simply because it is untested to that scale. I went on to say that it has performed quite well, and now we have an example of a site that does well using RoR. I actually don't know that CF would have been a good solution for that site. My suggestion would be to go with either PHP or Java (PHP powers facebook, and Java powers linkedin).
Please don't mistake a small point in the article for the purpose of the article. I do welcome your criticism, and will learn from my mistakes.
8 Brandon Hansen // Mar 10, 2009 at 1:26 AM
The point of the article was not at all to say that RoR is a bad framework. I actually love the framework, more and more each day. There is no framework that gets it done that quickly and effectively.
The reason that I stated that RoR should not have been used is simply because it is untested to that scale. I went on to say that it has performed quite well, and now we have an example of a site that does well using RoR. I actually don't know that CF would have been a good solution for that site. My suggestion would be to go with either PHP or Java (PHP powers facebook, and Java powers linkedin).
Please don't mistake a small point in the article for the purpose of the article. I do welcome your criticism, and will learn from my mistakes.
9 Brandon Hansen // Mar 10, 2009 at 1:27 AM
The comments form is not closing when the form is submitted for some reason. Please delete my extra comments when you get the chance (I posted the same thing 3x)
10 Hector // Mar 10, 2009 at 5:29 AM
I agree that we have learned much from Twitter's decisions. Anyone who wants to create a web application based on Ruby on Rails now has something of a scaling roadmap to follow. We're all lucky they revealed as much detail about their struggles as they did.
11 Mike // Mar 10, 2009 at 6:51 AM
12 Brandon Hansen // Mar 10, 2009 at 11:38 AM
This is a great article to read, straight from the horses mouth-
http://www.radicalbehavior.com/5-question-interview-with-twitter-developer-alex-payne/
Leave a Comment