- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Isn't that kinf of like winning the special olympics?
Admin
Magic quotes were added to PHP because ColdFusion "wannabe-programmers" like yourself kept screwing up the firm.
You also said PHP didn't fit CF's category, but you do say CF is better than PHP. You are trying to imply that CF can do ALL that PHP can, and more!
I'm quite OK with scriptkids like yourself staying at CF, just don't lower yourself more by trying to say any RAD is better than a real platform.
Admin
ditto ... You will be amazed at the huge differences in performance you can accomplish by using the standard techniques such as quicksorts or binary searches. Whether you do web or desktop the principles move across language and platform boundaries. I try to stress that people know the core fundamentals because once you know those the only other thing you have to worry about is learning the libraries and the syntax of the language you like.
Oh, and RUBY ON RAILS daddy would kick ColdFusion's Daddy's A$$!!
Admin
Now that's a real-life problem :)
Come on, most of the time spent on development of web applications is debugging html and css. I've been developing webapps for 5 years using various java frameworks and the quickest part was always the glue code between sql and java.. (Except for some really craptastic frameworks.) Figuring out why that damned page is totally mangled under IE or Firefox took more than ten times longer.
Admin
<font><font size="3"> </font></font>
<font><font size="3"> </font></font>
Admin
I think the Anonymous user who started this debate went to WTF University.
Admin
Well, they wouldn't be able to use it anyway, because their SSN's start with "800-".
Admin
$res = mysql_query("SELECT firstname, lastname, username FROM users");
while($row=mysql_fetch_assoc($res))
echo "$row[firstname] $row[lastname] $row[username] <br />";
good work finding an CF example that's shorter and more readable in PHP.
Admin
YES! That's the best explanation of it I have ever seen. Cold Fusion is basically just about making it easy to shunt data between web pages and a database. If you ever have to do anything more intensive than that it fails horribly.
Admin
I would say the same thing about ASP, ASP.NET and PHP.
There are a plethora of languages and development platforms out there. CF is the only one that's mature, has good community support (apart from actual provider support), lets you develop applications faster then most of the languages out there, and although it not free or open-source, there are free alternatives (BlueDragon, Railo), has a ton of OO frameworks (Mach II, Model-Glue, to some level FuseBox 5), has free CMS systems (FarCry).
It's true that it's so simple that it allows people with very little programming knowledge to write bad code. But it also allows people with more programming knowledge focus more on application design, then on actually sitting there and escaping single quotes.
Any language allows people to write bad code, and we've yet to see a single CF wtf here, and all we see is ASP, ASP.NET and other .NET code here. Either ColdFusion is not prevalent enough, or maybe bad code written in CF is just not as monstrous as bad code written in ASP/PHP/.NET
Admin
Just because you can develop something quickly doesn't mean you should. What happens when you change a tablename and you've embedded something like that within 500 pages?
Some languages promote badly designed apps and call it a feature..
Admin
Admin
Yeah, escaping single quotes is a very tedious work indeed. If my project manager asks next time why did the coding take so long, I'll answer 'You see, we had to escape single quotes.'
Admin
three things.
I agree, coding a certain way just to satisfy your versioning system is sort of a weak justification. You have to store your sql create statements someplace too dont you ? Or should I look in your code for those too ?
Second if you're a programmer then you can do make your script do anything you like, hell you dont even need a database! you can use flat files, other then speed and stability and maintainability and not re-inventing the wheel what is the added benefit ?
third, isnt ColdFusion just some sort of glorified XML based markup ? CFML isn't a real language... or were you refering to the ColdFusion App server as a whole ? which then lets up consider things like ... like ...serverside action script ?
you're wrong.
Admin
Maybe the bad code written in coldfusion is harder to find because it's indistinguishable from the "good code".
Admin
Do the 20 minutes include thinking before coding and testing afterwards? (Not to mention writing HTML and CSS that works under both IE and Firefox.)
Admin
Which is why you abstract your datalayer, and if you need to change a tablename, it will usually be in 1 or 2 CFC's, and you can do a simple search and replace.
Admin
How many websites do you build a day?
Admin
I dont' remember asking for a gridview. I asked for a simple output with <br> to separate the lines.
and I wouldn't say this is even close to as easy to read as ColdFusion. And I'm having doubts as to the execution speed too.
Admin
And the new user? His name was Robert O'Hare.
<FONT size=-1></FONT> if (sLogin == "O'Hare") sLogin = "O''Hare";
There, problem solved.
Admin
I wuoldn't say it's necessarilty easier to ready in PHP. And didn't you leave something out? how does mysql_query know what database you're accessing?
Admin
First, a very important message (some have made similar statements, but IMO not clear enough):
<font size="+3">Forget escaping. Use parametrized queries. Always.</font>
Some database systems (e.g. Oracle) will hate you, really really hate you, and let you feel that, if you execute thousands of queries that only differ in the literal values. This hurts in term of performance, especially for very simple queries (like querying a single row by the primary key). Reason: The overhead for doing a hard parse is more relevant if the actual execution is fast.
About Coldfusion: Using a proprietary language or tool (like ColdFusion, VB6, Delphi or Oracle Forms) inevitably leads you to a point where you have no other option than rewriting the whole project from scratch. Unless the project has a limited lifespan because of external circumstances, always use tools/languages that do not depend on the survival or goodwill of a single company. COBOL is really awfull, but you still get compilers for it.
Admin
I don't build websites... I maintain and develop one large enterprise app that hosts many client's websites.
Admin
This is why, IMO, all programmers should have to start with assymbly as their first language. They can then graduate up to higher level languages.
If you understand the way the machine works, you understand the code you are writing. For example, take the following Java code.
int x = 2;
int x = x++ + 3;
System.out.println(x);
If you understand what happens under the covers you won't be surprised when it prints out 5 instead of 6.
Of course this problem was solved when the UI was updated with the following (I hope this works)
Please select your last name. <select name="Irish"> <option selected="selected" value="H">O'Hare</option> <option value="R">O'Reilly</option> </select>
If you do not see your name please contact the help desk.
Arrg. It was supposed to render a drop down. Would have worked with the old CS.
Admin
yes, you should always use parameterized queries. Now, it might be true that eventually you'll have to rewrite the project from scratch, but I don't see how ColdFusion is the cause for it any more then having to write the language in ASP.NET or anything else.
Also dont' forget, one of the largest sites in the world, myspace, is built on ColdFusion.
Admin
So how much does it count that you can build a page doing a simple query and displaying it in unacceptable format in 5 minutes, whereas doing the same in a normal language, with the environment already set up (we talk about maintenance, right?) can take as much as...20 minutes?
Admin
I'm not sure why you need to know assembly to understand that code... it's standard c++/java code, and has nothing to do with assembly. It's the type of thign you learn in the first programming course.
Admin
So in general, it takes you 4 times longer to code the same thing in a different language then it does in ColdFusion, therefore, I'm 4 times more productive.
Admin
Do you really want to point to MySpace as an example of a good web site?
Admin
I don't think that particular example requires assembly, but (at least from my experience) 9 out of 10 Java developers will guess the wrong output, and not be able to understand why.
Admin
Agreed (except for the declaring x twice part).
Admin
<font face="Courier New"><asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:SqlExpressConnString %>" ProviderName="<%$ ConnectionStrings:SqlExpressConnString.ProviderName %>" SelectCommand="SELECT [RoleId], [RoleName] FROM [vw_aspnet_Roles]"></asp:SqlDataSource>
<asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1">
<ItemTemplate><%# Eval("RoleId") %> -- <%# Eval("RoleName") %><br />
</ItemTemplate>
</asp:DataList></font>
You should really stop doubting things that you clearly don't understand.
Admin
surely this is just understanding the difference between ++x and x++? I don't know assembler, so have I missed something?
Admin
SQL Injection makes me sad... <leans>
Admin
Well, let's say MS drops support for ASP.NET in 2009 in favor of ASP.LIFE. If there was no other implementation of ASP.NET than MS', this would cause problems for exisiting ASP.NET applications. But since there is at least Mono's implementation of ASP.NET (I think DotGNU also made one but I'm currently to lazy to check that), ASP.NET users will have an option even if a security relevant bug found in 2011 makes it actually impossible to run ASP.NET on IIS anymore.
MySpace is large, but not necessarily very complex. Because it's the users who create the content.
Admin
Good point. Didn't think of that... I suppose the DoD could use any unassigned range of SSNs in that case.
A better term would have been "Identification Number."
Admin
No, MySpace is a horrible site, written by a bunch of cowboys that know nothing of good development. However, they were able to build the site fast, and sell it for a lot of money, in good part thanks to ColdFusion.
Admin
Leatning assembly helps in many ways:
-you learn to think the way a computer works (handy while debugging)
-you learn to get a quick global overview of many lines of code at a glance (the same as above)
-you learn to organise and comment your code (otherwise you're dead)
On the other hand, being the assembly feak I am, even I don't recommend anyone to start with assembly. It gives you very little feeling of success in the beginning. It's good to write a few things in assembly if you already know a bit of C or Pascal
Admin
The googles... they do nothing!!!
Seriously, that's a lot of special characters jus tto print out a couple of lines from the db.
Admin
It uses the default connection (that can be defined in php.ini), of course. You didn't provide information on how the dataset on CF is defined either :)
Admin
WTF is an impertive language? Is this some language used to direct perverted imps in some infernal machine?
Admin
You know. That is even funnier the second time you said it.
Admin
hahahah you really are braindead. you must work for ColdFusion's marketing division.
CF is mature, as in geriatric. PHP is mature - we have processed over a billion dollars in tax payments via PHP in the last two/three years. Apparently your definition of "app" is "a web form that submits into a database, and occasionally gets out of it" - no extensive business logic, no reliability, no error checking, no quality,
PHP has a ton of OO frameworks, we happen to have our own custom one, PHP is open source, PHP is actively supported, PHP doesn't cost an arm, leg and testicle to install, php has many free CMS systems
"BASIC is so simple that it allows people with very little programming knowledge to write bad code. But it also allows people with more programming knowledge focus more on application design, then on actually sitting there and escaping single quotes."
and yet you STILL have to call a function to escape quotes, just like EVERY. OTHER. LANGUAGE. PS: you can write query factories too that do all the for you in PHP, we have one in some of our apps
i'm sure we've seen CF wtf's - remember alex anonymizes them - or are you such a ColdFusion zealot that you ignore that fact.
Admin
This doesn't have anything to do with knowledge about assembler programming or how machines work. It's just a question of how the semantics of the language is defined, and what priorities different operators are given. Knowledge about machines just gives a hint how the statements would be translated into machine instructions.
Admin
Russ is some 13-year-old scriptkiddie who just read a coldfusion book and warez a copy of coldfusion server and is using/making-up suit buzzwords to sound intelligent
kinda like my captcha: shizzle
Admin
MySpace isn't very innovative (IMO) and was launched in 2003, 7 years or so after the beginning of the .com bubble. I see no reason why they had to build it fast.
Admin
You forgot the sarcasm tags, dude.
Admin
he used myspace as an example? oh that makes this even MORE hilarious!
captcha: craptastic
Admin
This explains why the IRS is so slow and inefficient.
What does basic have to do with anything. We're talking about ColdFusion. Or is your ADD kicking in again? One more time, CF automatically escapes single quotes in queries. There are no functions that you need to call.
I knwo alex anonymizes them, but he wouldn't convert it from CF into another language. It just doesn't translate easily. To my knowledge, there HAVE BEEN NO CF WTF's on this site.
Admin
I might.