Helpful Information
 
 
Category: ColdFusion Development
coldfusion vs ASP

Dear all,

i'm a beginner. i am supposed to develop a "dynamic websites" for my school project. i will need to used Macromedia flash Mx too in this sites.

I'm thinking of to use coldfusion instead of ASP. is it possible to used them both? to integrate both of them?

can anyone give me some advise.

thank you.

If you have a choice between both, go with just ColdFusion. It's easier to learn, and comes with more functionality out of the box than classic ASP. Also, if you're using ColdFusion MX, your pages get compiled as Java Byte code so you get Java's speed. You don't even have to know Java. ColdFusion can do pretty much what ASP can do and much more.

For more information about ColdFusion, go here:
http://www.cffaq.com/

I've programmed in both ASP and ColdFusion, and I write less code in ColdFusion to do the same thing.

Also, it is stunningly easy to use ColdFusion Components to supply data to Flash MX using Flash Remoting.

and dreamweaver rocks for editing CFML. umm but i cant find a tut on how to get fkash to work with CFML.

Originally posted by bigcheese
and dreamweaver rocks for editing CFML. umm but i cant find a tut on how to get fkash to work with CFML. http://www.macromedia.com/devnet/mx/coldfusion/rich_internet_apps.html

Also, if you're using ColdFusion MX, your pages get compiled as Java Byte code so you get Java's speed.

Ok, a good point about the speed, but what people fail to realise about Java is it leaks, and i dont mean a few drips hear and there, it leaks like a tap. The Java VM also takes nearly 3 times as long to start up as perl or Pythons interpriters but i dont know if this is effects Cold Fusion or not but i'm pretty sure it must do. It's a good point that you dont have to know Java to use it's power but then im my mind Java is no more powerful than some other languages. Sorry im just not a lover of Java..

Take care,
Mark.

Originally posted by kiteless
http://www.macromedia.com/devnet/mx/coldfusion/rich_internet_apps.html

thanks

I don't know Coldfusion or ASP, but I hear CF is better.

I've never used CF or even played with it; but my current project uses ASP. And ASP sux the big one IMHO. Being my first web project maybe I don't have an appreciation of the general environment that is web development, but ASP was frustrating in the extreme for me.

Ironically I went through 3 ASP books, a total of over 2,700 pages of stuff and NOTHING about issues I was having. If I needed to deviate from the book examples, I was screwed. Just like in the move A Bugs Life, the line of ants carrying food to the hill - a leaf falls in front of one ant, he stops and cries "I'm lost!" That's what it was like for me working with ASP.

ASP Documentation - poor to non-existant. Also, It's difficult to work with heirarchial related data using ASP. We had to write funky code to make some things work. My professional software developer spidey sense was going off big time - this is not the way to write programs!

When I see the ace-coding I was able to do with JavaScript I knew something was wrong with ASP - I just can't explain it fully.

I think ASP is a nightmare. The functionality doesn't even come close as to PHP or CF. I've been on a few ASP projects and I was very frustrated that we had to code functionality that other languages provided built in. Finding good resources was not as abundant as PHP or CF (in my opinion anyways). Nothing good that we wanted was free. With PHP and CF you at least find a few good things that are. Whenever we wanted to extend the abilities of ASP (things that PHP, JSP, CF do natively) we had to create/buy and register components on the server, which was something we weren't too happy about.

Error checking on ASP is a shame compared with CF. Also, I think ASP is quite slow. The VBScript syntax is also quite annoying because carriage returns and spacing in your code do matter where in PHP and CF don't.

CF requires less code and can offer more functionality. A lot of it comes built in. The ColdFusion Administrator is also an awesome tool that comes with it. It allows for you to schedule tasks, control caching of queries and pages, security, debug options, datasources, and much more.

Originally posted by netytan
Java is it leaks, and i dont mean a few drips hear and there, it leaks like a tap.


I've heard this so many times. So many people say it doesn't, others say it does. (Funny, the people who aren't a fan of Java say it does leak.) I've never had a problem with it, nor has anyone I know personally that has. I think bad design and coding can cause any application to hog memory.


Originally posted by netytan
The Java VM also takes nearly 3 times as long to start up as perl or Pythons interpriters but i dont know if this is effects Cold Fusion or not but i'm pretty sure it must do.

I agree with you on this. ColdFusion, also, because it has to translate the code to Java then compile, has quite a bit of overhead in this process. Sometimes I prefer an interpreter when testing out pages.

Overall, it's a matter of taste. When picking a language, there are so many variables to take into account. I belief there is NO all purpose language that does everything perfectly. Even though I hate ASP, it does have its uses.

Just bare in mind that if you post in a PHP forum, then people are going to favor PHP. The same goes for ASP, or anything else. I usually just look at the extension of the pagename. If it's pl, cgi, then of course it'll be Perl. :p

I'm not a fan of Java either. :p

Originally posted by bigcheese
and dreamweaver rocks for editing CFML. umm but i cant find a tut on how to get fkash to work with CFML.
It does rock, but it's slow 60's rock. The kind you hear at old high school reunions. I have 256 MB RAM, on 1.8Mhz it's slow as a nail to start up and use. With 128MB RAM it's worse. Drumbeat and UltraDev were a lot faster. It's probably the GUI that they copied from Adobe that's making it slow. Other than that, I think DWMX is the best design/authoring tool out there. As far as coding in raw CFML, I think ColdFusion Studio 5.0 still beats it. You can configure it to support the CFMX tags.

Originally posted by netytan
Ok, a good point about the speed, but what people fail to realise about Java is it leaks, and i dont mean a few drips hear and there, it leaks like a tap. um....Amazon.com runs on Java. Yahoo runs on Java. Trust me, in the right hands Java can do just about anything. This issue about leaks might have been true in the early days of Java and the JVM, but the new versions are very tight, efficient, and fast.

Regards,

Brian

Originally posted by JessJenn
I have 256 MB RAM, on 1.8Mhz it's slow as a nail to start up and use. With 128MB RAM it's worse

you need more mem. get 51, i have 256 and it is slow but i have used it on a pc with 512 and its super fast. photo shop is also slow on 256 but fast on 512. but to bad my mem is $300 to get 256.

Trust me, in the right hands Java can do just about anything.

Brian, in the right hands any of today’s fav. Languages can be turned to just about anything, not just Java :)


This issue about leaks might have been true in the early days of Java and the JVM, but the new versions are very tight, efficient, and fast.

The article I read on this subject used 1.1.7 - which I don’t consider the "early days" or Java especially since you can still download this version from some sources and 1.2 form sun themselves - as the subject although I have read similar articles (which you should be able to find on google pretty easily) on latter versions which point out similar problems.

As I pointed out I am no Java lover :), in my opinion the only thing Java surpasses the other languages out there at is it's ability to be used as applets within web pages but then that’s because web browsers chose to use it, if say they decided to use C or perl for applets then I don't think Java would be were it is today.

Another good point, Java's much loved and much quoted "platform independence" is from my point of view utter crap :) Java programs are no more platform independent than an equivalent (well written) program in perl, C/C++, Python etc.

Here’s the article I was referring to above: http://www.twistedmatrix.com/users/glyph/rant/python-vs-java.html (which is one of many)

Hope this doesn't offend anyone, it's just my point of view and should be taken that way.

Have fun,
Mark.

Are those your only two options (CF and ASP)? Is PHP not an option for you? You can create your flash interaction with PHP also and you are getting the benefit of a more powerfull langauge in PHP.

I think I would reconsider and explore either PHP or even ASP.NET for your project.

The VBScript syntax is also quite annoying because carriage returns and spacing in your code do matter . . .
All I can say is that I agree whole heartedly. This "line sensitivity" of VBScript drives me nuts sometimes and leads to confusing code. That is, a one line IF statement does not need an END IF; however a multi line IF statement does require an END IF. It's a b(*&^ when one has multiple nested IF statements . :mad: :mad: :mad:

On multiple line statments a "line continuation" character is required at the end of each continued line. Makes editing existing code just that much harder.:mad: :mad:

My latest gripe is how the Visual Basic Editor built into MS Word (I'm developing some heavy-duty macros) wants to do all the formatting for you, and complains instantly if it thinks I'm typing something wrong. :mad: :mad: :mad: :mad:

For the life of me I do not understand why JScript - MS's version of JavaScript - is not used server-side. :mad:

The VBScript syntax is also quite annoying because carriage returns and spacing in your code do matter . . .

Being primarily a Python developer I "whole heartedly" have to defend indetation as a way of representing blocks in your code, if implemented correctly (as in Python) this can make code easier to read and maintain, as well as improving development time, sadly microsoft really didn't get this combination right with VB!

On the subject of editors, word really isn't the best choice for editing any kind of source code, anyone who's ever had to tidy up the mess word calls html will know what i'm talking about.

Visual studio on the other hand is surpposed to be very good - no surpising as it's the comercial standard for editing microsoft languages (also good for C/C++ and a number of plugins are available for other open source languages such as perl, Python and Java).

Take Care,
Mark.

The VBScript syntax is also quite annoying because carriage returns and spacing in your code do matter . . .
I actually kind of like this. Most of your lines of code aren't going to be much wide than a screen (unless its a long db command or something), and having a return in the code equal a return in the output saves writing things like \n (C++).
Word is terrible for writing/editing any sort of code, I agree completely with netytan.
I use Visual Studio quite a bit, and it really is good. VB6 isn't my favorite language, but if I'm using it, Visual Studio is the best way to do it.

Java itself isn't leaky because it uses the garbage collector.










privacy (GDPR)