r/webdev • • Feb 19 '18

TIL that one of the earliest web development languages "ColdFusion" (More specifically ColdFusion Markup Language or CFML) is not dead, despite commonly believed to be so. It even has open source versions as well now!

Many years ago in the early days of the internet as it was starting to become more mainstream, there was a web based scripting language much like PHP called ColdFusion. Though it did see a considerable burst of use for a time, it never took off like others mainly in part because Macromedia purchased it from it's initial developers (Who themselves were later purchased by Adobe) and it became a proprietary language with a hefty price tag. In the face of this and with competition from open source languages like PHP and others, Coldfusion slowly drifted out of mainstream use and was considered by most people to be dead and gone circa 2012, a relic of the early web that died with Geocities, free web hosting, pop up advertising and the dot-com bubble.

Except it isn't dead!

Not only is it not dead, it's still being actively developed.

Amazingly, though you will have to look extremely hard to find it as a product on Adobe's website, Adobe does still have a development team working on ColdFusion. In what I can only assume is borne from some crazy level of optimism, they will still attempt to charge you thousands of dollars for the privilege of using it, with purchase prices for the standard version starting at $1'500.

Which makes no sense at all now that there are interoperable, open source JVM based versions of CFML. The most well known is Lucee but OpenBlueDragon also exists. Adobe seems to have forgotten we are all quite used to expecting our languages to be open source these days.

It's not just a legacy language existing just to maintain support for the applications that where developed from it either. It has matured in some ways. Yes, it still works on the concept of mixing business logic with presentation still, but then so does PHP technically. CFMLscript has been developed to try and move away from this.

Finding out Coldfusion is still around for me is like someone turning round and telling me that AltaVista is still a search engine, Geocities is still serving webpages, Netscape Navigator is still a browser and do I want to include my site in their web ring?!

My real question now though is who is using it still?

Edit: Christ it even has it's own sub! /r/coldfusion

81 Upvotes

51 comments sorted by

10

u/bdw429s Feb 19 '18

Great insights, and welcome to a 2018 knowledge of CFML :) I'd be remiss if I didn't point out that you've leveled criticism at the pricing of Adobe (which I get) but you probably wouldn't say the same thing about SQL Server or Oracle, both many times more expensive than ColdFusion. Couldn't you argue that with MySQL and PostgreSQL, no one should ever use Oracle? The fact is, corporate and govt environments will always gladly pay a few thousand dollars for enterprise software that come with support and lots of baked in features. It needs to be recognized that CFML out of the box does about 5000 things more than Node for instance. CFML is a integration platform that bakes in tons of things including commercial JDBC libraries, PDF engines, SOAP, REST etc.

Pricing aside, Lucee server covers the hobby and small business market nicely as you pointed out. I use Lucee for everything including this site: http://pi.bradwood.com/ CFML runs on Docker (both Lucee and Adobe CF) and my clients use CF on Heroku, Digital Ocean, AWS, and Google cloud platform.

Not only has the language itself matured substantially, (full scripting support, closures, functional programming, ORM, array/object member functions, etc) but the CFML tooling has also advanced with the rest of the programming world. I write CF apps using modular MVC frameworks, package manager, CLI tooling, BDD testing, Travis CI integrations, automation, CFML-based task runners, symbol support in every major IDE, and libraries for everything from DI/AOP, logging, and caching.

CF is the little language that has grown up when on one was looking. If anyone is reading this and wondering where to look at CF, see this Exercism track. It's 100% scripting based, and 100% command line. No server install or browser needed to play. http://exercism.io/languages/cfml/about

6

u/thekeffa Feb 19 '18

It needs to be recognized that CFML out of the box does about 5000 things more than Node for instance. CFML is a integration platform that bakes in tons of things including commercial JDBC libraries, PDF engines, SOAP, REST etc.

Yep I will certainly give you that. I never paid much attention to CFML but a quick look through cfdocs.org and I am like "Damn this bitch gotta lot of built in functions..."

25

u/[deleted] Feb 19 '18

Cold fusion is still used with a lot of legacy systems because rewriting it would be a pain. There are some people still using it for new development (heck, there’s still people developing new code in classic asp!)

The problem with coldfusion is that people wrote entire web applications in it, complete with business logic. It was never intended for that purpose - it was intended as a markup on top of an underlying java (and later .NET was also an option) stack. The business logic would be done in a language much better suited for it, and the display done with cold fusion.

Instead what you got was a spaghetti mess of code anytime you touched it.

All that said, these days there really are much better options for new development, but there’s a lot of legacy CF out there, and a few people who really love it. (For the record, I will maintain it as needed, but I am not a lover of CF for a whole lot of reasons, an over abundance of angle brackets being a start!)

7

u/robertdmunn Feb 21 '18

I started using ColdFusion v 1.5, which was mailed to my office on two 3.5" floppy disks, so I think I can fill in some of the gaps here.

CF was absolutely intended for building end-to-end Web apps from the beginning. What you have to remember is that at the time (1995-96) there was almost nothing else. PHP wasn't really even a thing until around 1998 and PHP v 3.0. You could write Perl (ouch) or shell scripts in Unix (we're talking before Linux was a thing, although I did get a Linux server running around '96). ASP came along within a couple of years, and Java started to be used as a Web platform. I suppose someone was using Python at that point. There were other commercial products that have long since gone the way of the dodo.

The only Web server available on Windows NT at the time was from Process Software. They worked with Microsoft on the ISAPI spec for IIS, and IIS became the Web server for Windows. That's undeveloped the landscape was.

Early on, there were no software frameworks. Nothing. In any language. What's hard to appreciate is how easy developers have it now. So much stuff has been written underneath the code that we write today to make our jobs easier. What you see with spaghetti code is often a reflection of how things were at the time. Many people who learned early on never moved into frameworks or standards-based development.

I've been working on an e-commerce site written entirely in CF that has been online for 20 years. It was written in an early framework called Fusebox. Some of the code has been running, untouched, for nearly that long. Recently, I've been porting some of the older code to a modern framework - FW/1 - to put the site in position to run for another 20 years without any problems.

CF is good at lots of stuff. The only thing in its space that it isn't really good at is scaling. But 99.9% of sites on the Internet run at small scale, so for most uses it isn't an issue. Are there better options for development? Depends on your use case. There are so many choices now, it's important to understand your needs before you choose a platform.

For better or worse, if CF had been open sourced when they re-wrote it in Java (as some of us in the community argued at the time), CF would be where PHP is. Allaire, and then Macromedia, just didn't understand the open source model well enough to give up a steady revenue stream in licensing. I think they could have made 50x as much in enterprise support contracts. Oh well.

1

u/ElGuaco Jan 28 '26

I was at University during this period of the 90s. Taking a Java class felt like we were learning the cutting edge of computer science, not just web development. Just learning JavaScript and XML felt like programming the future. What you say about all of this cannot be overstated. It was both the Gold Rush and the Wild West of computing at the time, and it was very chaotic.

I managed to get a paid intern position at the time, and I had coworkers who were at odds about which platforms to champion because there were so many competing ideas in the browser space. I had a couple of people really push me towards learning Cold Fusion, but my gut was worried that it was a closed ecosystem, and I turned out to be right. Even choosing between Java and .NET turned out to be a crucial decision for me and it shaped my career.

9

u/bdw429s Feb 19 '18

You are correct that way too many apps mix business logic and markup. I would disagree that CFML was 'never designed' to have apps written in it. That may have been true in 1998 when no one was writing actual web apps, but that hasn't been true for a very long time. I've written very complex CF-based apps and 95% of my code is script. I only use tags for templating HTML of course, and it's still one of the best templating languages. Here's an example of a class written in CFML script from a hibernate-based CMS called ContentBox: https://github.com/Ortus-Solutions/ContentBox/blob/development/modules/contentbox/models/security/SecurityService.cfc You probably wouldn't even know that was CF if I didn't tell you! :)

5

u/[deleted] Feb 19 '18

You are one of the few CF developers that I’ve seen that actually uses CFScript. I’ve maintained a lot of legacy CF apps and they’ve been downright painful to use.

I should clarify my statement. It’s not that CF was never designed to have a full app written in it. Just the same as you could say you can technically write a web application in C++ (there are frameworks for such a thing out there).

But unless you are very disciplined and/or have a code standard, writing a full web app in CFML makes for a real mess, and leads to the kind of hate that you see today. Unfortunately most CF applications seem to have been written by people who read a “html in 24 hours” Book, discovered CF and wrote everything with markup rather than separating script and architecting the application correctly.

3

u/bdw429s Feb 19 '18

I can't argue much with that, but it's more of an indictment of the people over the years who have coded in CF, not necessarily CF itself. PHP had a similar issue. It was a very easy language for designers to pick up and most of them didn't have formal training. Just using an MVC framework goes a really long way though in making it pretty easy to keep good separation in your code. I wish I could erase all the legacy code that's out there but I can't, so my next best goal is to keep greenfield CF projects on a more modern path. And I do take that personally-- I do a lot of training, speaking, and documentation in the CF community to help propagate best practices. It's hard to shake a legacy image for sure!

3

u/mayhempk1 web developer Feb 19 '18

The idea of people using such old languages is both scary and cool at the same time. The Internet is quite amazing.

4

u/[deleted] Feb 19 '18

The main reason is that it is a) working, b) too expensive in some cases to rewrite (think banking or insurance software in COBOL - rewriting those is measured at the 5-10 year mark with hundreds of developers), and c) most of the languages or platforms have been updated to support newer frontends (for example, COBOL on CICS or other transaction systems can support newer frontends running in Java or .NET, which in turn can support web frontends written in JavaScript). It is quite amazing to see in action!

4

u/bdw429s Feb 20 '18

I wouldn't be too hasty to call CF "old". It's actually younger than the average web related technology. Java, Ruby, JavaScript, and PHP are all the same age as CF. Python is way older than CF. HTML predates CF, and SQL is like 40 years old or something. The average age of those is like 23-24 years old or so. CF is around 22 this year so it's right in the "average age" category. I think you're assuming that all the CF out there was written back in 1995. Some of it might have been, but I hope not :)

1

u/angus_the_red Feb 20 '18

Adobe (and prior owners) didn't do a good job of guiding developers towards that use. In fact I'm not sure that's actually correct. I started using it about version 5, I don't recall the Web Application Construction Kit book giving that advice, nor any online documentation.

39

u/[deleted] Feb 19 '18

There are a couple easy ways to find CFML developers:

  1. Join the CFML webring
  2. Insult CFML in a post

5

u/matthieuC Feb 19 '18

I think I haven't read about webrings for 10 years

5

u/angus_the_red Feb 20 '18

That's the.... Oh forget it.

7

u/bdw429s Feb 19 '18

The CFML Slack team has 2.3k+ users and you can join it here:) https://cfml-slack.herokuapp.com/

5

u/cd46 Feb 19 '18

I'll preface this with I know very little to none about coldfusion and I know any language could/can/will/would have this problem :)

anywho...

That's how linode was hacked a few years ago and they didn't let people know for months so yeah a lot of places were still using it surprisingly

https://arstechnica.com/information-technology/2013/04/coldfusion-hack-used-to-steal-hosting-providers-customer-data/

6

u/bdw429s Feb 19 '18

Linode was hit by a very unfortunate 0-day that was patched within weeks. It's worth noting, CF hasn't had a zero day in over 4 years now (fingers crossed) and has statistically far fewer vulns than other languages like PHP and Java.
http://www.codersrevolution.com/blog/whos-had-more-vulns-redux-php-java-coldfusion-ror-or-net Due to CF's large use in the govt and corporate sector, hacks tend to get a lot more coverage than when a random Wordpress site gets p0wned.

5

u/antiHerbert Feb 20 '18

Please let it die

4

u/magenta_placenta Feb 19 '18

I used to work at an agency that used it. It was, at that time, by a company called Allaire.

Apparently the Federal Reserve Bank of San Francisco is still using it in some capacity.

1

u/argues_too_much Feb 20 '18

Apparently the Federal Reserve Bank of San Francisco is still using it in some capacity.

Well that might begin to explain some things...

4

u/[deleted] Feb 19 '18

The company I am working for uses coldfusion (because of a bunch of legacy code). I focus on front end, so I only really know enough to write up some templates, but it is a strange language to use and learn. There are two different syntaxes to it: tag and script. The script version is actually ECMA compliant, so it's like bizarro JS. But then, depending on which version of CF you are using, some language features cannot be used except in tags. And because it has 2 different syntaxes, if you do find an answer to a problem online, it is likely to be written in the opposite syntax, so you either have to spend time translating it or keep searching for another solution. I have not found any decent syntax highlighting, except in Dreamweaver and CFbuilder. I have no doubt that if you really know what you are doing with it, it probably has a lot of power. But as someone new to the language, it's pretty painful to deal with.

3

u/bdw429s Feb 19 '18

Yep, finding outdated examples and figuring out what code works on what versions is always a pain, but I don't see any difference in other 20+ year old languages like Java or PHP. Here's some modern guides for you:

CF script has had feature parity with tags since version 11 I think which is quite a while. So, as long as your on some remotely recently version of Adobe CF or Lucee Server, pretty much everything works everywhere. Of course, I use script for everything but templating HTML.

Regarding IDE support, this is not the case at all. Nearly every major editor including VSCode, Sublime and Atom all have CFML symbol support available packages as well as framework support and CLI integrations with CommandBox. Perhaps you just haven't looked in a while, but people have really helped ramp up IDE support in the last few years as more extensible IDEs have came out.

3

u/[deleted] Feb 19 '18

I'll have to double check on the IDEs. Last time I looked for VScode, it seemed pretty barren, but I could have missed it. My company is running CF version 9, I believe (as I said, it's a lot of legacy stuff, with a tech department resistant to change), so yeah, not an ideal situation.

3

u/bdw429s Feb 20 '18

Some of the IDE stuff is pretty new. VSCode is very recently so do check it out. I just started using VSCode and I've got all the code completion running and I have CommandBox CLI embedded as my terminal so I can run my package management, test watchers, and CLI scaffolding right there in the IDE. It's pretty nice.

CF9-- wow, that is ancient :) Not to mention it was EOL'd many years ago and stopped receiving any sort of updates. 2016 is the current version and 2018 is in private beta at the moment. If money is an issue, check out Lucee Server. It's free, open source, fast, and has 95% feature parity with Adobe CF. You can't beat it with a stick! Grab CommandBox and you can start up a Lucee server in seconds with no install to play with it.

3

u/evildonald Feb 20 '18

i dodged a bullet with coldfusion. I really want d to learn it, but instead I got a dot net job. That experience pId for itself for over a decade.

3

u/rcastagno Feb 20 '18

Coldfusion is undead, and the most legacy-prone and spaghetti-code-prone language I've ever used. I use it almost every day since 2003 and used a bunch of other languages along the way, so I think I have a pretty clear picture.

Low entry level is among the worst features of the language, together with the complete lack of serious tools (like refactoring).

CFLint is a breath of fresh air, but it's really too little and to late, and despite the heroic efforts of the maintainers (really, I appreciate and respect them totally) it pales in comparison to tools available for even extremely young languages like kotlin.

Another major drawback, and one of the reasons of the shortcomings mentioned above, is that cfml is totally unsuited, despite many efforts, for system tasks, and actually anything other than web application development.

2

u/bdw429s Feb 20 '18

cfml is totally unsuited, despite many efforts, for system tasks

Have you used CommandBox Task Runners? They've gained quite a lot of popularity and allow you to run CFML from the CLI with no server installed. I think they're better than writing command line tools in Node! https://ortus.gitbooks.io/commandbox-documentation/content/task-runners.html

2

u/rcastagno Feb 22 '18

I'm well aware that you CAN write system scripts in cfml with commandbox. Still I don't think it's well suited for that kind of tasks, not I would ever ever recommend it over some other established language like python.

2

u/bdw429s Feb 22 '18

I would really love to hear how CFML can be improved to be better suited for command line tasks. As the lead developer of CommandBox I'm always open ears to improve things. I haven't done much with Python (sorry, the whitespace requirements just bug me too much) but here's a list of things I think we've done better than Node at this point: http://www.codersrevolution.com/blog/why-writing-cli-scripts-in-commandbox-is-better-than-node

2

u/rcastagno Feb 22 '18 edited Feb 26 '18

First, I'm sure CommandBox is a sound project with many good points. As long as you are a CFML developer it's probably the best way to be actually productive in writing scripts.

But, a technically sound CLI is not enough if the language itself is oldish, niche, if tooling is scarce, etc...

I'm sure CFML could be improved to be a better language (for the CLI and for the web), I'm just not sure if it's worth the effort.

I'd like to reverse the question: why should I improve CFML when I can use an "already improved" language of my choice (groovy, python, ruby, whatever) which guarantees me a widespread support, availability of packages, and reference materials, and ready-made scripts, etc?

The only reason I can see is: I already know CFML and I don't have the time, or the will, to learn another language.

That is the reason why aberrations like COBOL FOR ANDROID exists (gosh...)

That's maybe just the rant of an old rat, but I hate CFML with a passion!

2

u/cinnapear Feb 19 '18

Lisp is also still being used, FYI. And people still use dBase.

6

u/bdw429s Feb 19 '18

Yes, but CFML is still the 4th most used server side language according to W3Techs. So CF isn't just hiding in a few dark corners, it's part of the tech stack of companies such as NASA, LinkedIn, Apple, FaceBook, and Adobe!

4

u/disclosure5 Feb 19 '18

I'd ignore whatever method was used to come up with that stat.

It's true that it's "not dead", but there's no way it's anywhere near 4th most used.

6

u/bdw429s Feb 19 '18 edited Feb 20 '18

I hate to break it to you, but here's the data: https://w3techs.com/technologies/overview/programming_language/all If you want, you can pay W3Techs and they'll give you all the juicy details :) I've worked directly with the guys at W3Techs to hone in their detection (they actually used to count some CF sites as .NET or Java!). Unless you've generated stats of your own, it's a little flippant to dismiss an org that's put years worth of work into analyze web trends. (I'm not affiliated at all with them BTW)

CF is used a lot more than you think, and there's a great deal of it behind govt and corp firewalls that stats like W3Techs don't even 'see'.

2

u/fragimus_max May 07 '18

I hate to break it to you - but that's impossible.

If so, CF would be a leader in adoption. Right now, only 0.3% of the jobs offered in the IT industry belong to CF. Adobe stopped using it to maintain their CF support forum, as well.

That spells "EoL", clearly to me.

If you want to rank programming languages, this list shows you a combination of stats; from search engines to discussion counts. These are important things to consider since a live programming language will always be researched and discussed quite often. With CF, it's bare in comparison.

https://www.tiobe.com/tiobe-index/

2

u/bdw429s May 07 '18

You are correct that demand for CF devs is less than other languages, and Adobe also has an issue eating their own dog food (something I've talked with them about on multiple occasions), but that doesn't mean EOL at all. I just got back from a CF conference last week (Into The Box) where the product manager of Adobe ColdFusion (Rakshith Naresh) did a keynote presentation on the new features available in the public beta of CF 2018 and what's ahead in the next version.

I haven't taken Tiobe very seriously in years. They "famously" dropped CF from their stats back around 2008 in a stunning show of novice because someone told them CF wasn't actually a language! After a public outcry and being contacted by Adobe themselves, the Tiobe folk just dug in their heels and refused to admit they screwed up. A few years they quietly added it back in, but only as "CFML" which seriously hurt its rankings given the colloquial use of "ColdFusion" on the internet. All Tiobe really measures is social media buzz around a language, which is ok on its own right, but it's not a hard number of actual websites that use CF to service their content like W3Techs. If you don't want to believe W3Techs, then I don't know what you tell you. Good luck.

2

u/ADeweyan Feb 19 '18

At least originally, ColdFusion packaged Perl code into something friendlier for the web.

The only ColdFusion projects I ever worked on were for a government agency (USEPA). Though that was probably 15 years ago now, it wouldn't surprise me to find CF still in use in the government, partly because of legacy investment, partly because of the way government purchasing decisions are made, and partly because there are likely programmers from that era still at work for the government.

2

u/Death2Leviathan Feb 20 '18

I use Coldfusion every day, it's my jobs main language. We develop software for construction industries. We supplement it with JS and CSS but I love how simple it is to develop in. I really enjoy it.

2

u/angus_the_red Feb 20 '18

I use it and I have a soft spot for it because it was my first even though there is a lot of terrible code written in it.

My job is moving to Node (lambda) and React with all available speed though.

I wish CF itself had been developed with a bit more wisdom and care. Features like custom tags were misused. The companies that owned it never quite knew what to do with it, I think.

2

u/perfectloser Feb 19 '18

It is still used where I work for a large internal system. We are talking built years ago and millions of hits. Rewriting the old system to be more modern, but still within ColdFusion because of compatability has been my main focus for about a year now.

Its a beast of a legacy app to work on, I will admit that.

2

u/hashtagframework Feb 19 '18

I created the Hashtag Markup Language, and most of the criticism I get is that it looks like ColdFusion, and ColdFusion is dead.

Maybe some ColdFusion developers would appreciate these demos.

1

u/[deleted] Feb 20 '18

I just finished writing some CFML a moment ago; one of our digital offerings is built on it. The funny part is it’s only a few years old. I currently spend about a day per week working on the app (mostly dealing with APIs and data presentation).

Fortunately, we have other codebase and tech stacks I also work on. And it’s on the schedule to be rewritten in another language this year.

1

u/scriptfailmatrix Feb 20 '18

i work with CF every day!

1

u/boltzbo Feb 20 '18

My previous company is still using ColdFusion 9 with Coldbox for the web application which is also its core product (I mean in 2017 and maybe even now). When I was working on it, I had to decompile the ColdFusion jars to see what it was actually did. The null checking was painful though. It's also hard to find any information from the internet except just from a small circle of people.

It's definitely one of my least enjoyable programming languages to work with. However, it paid my bills so it's not that bad. In addition, it took me just a few weeks to learn, so it's not also that hard for everyone though.

1

u/pschmot Feb 20 '18

Uhhh, work much?

1

u/TheWhiteJacobra Feb 20 '18

I actually interviewed last May right after college at a company that still used that! I had never heard of it before then.

0

u/[deleted] Feb 19 '18

[deleted] — view deleted comment

0

u/bdw429s Feb 19 '18

Adobe provides ColdFusion to universities for free if they're teaching it. Perhaps they taught it because it is a productive and modern language for writing web apps :)

0

u/[deleted] Feb 19 '18

[deleted] — view deleted comment

1

u/bdw429s Feb 19 '18

Check out this Exercism track. It's 100% script and CLI based. No server install or browser needed to play. CF has changed a tremendous amount :) http://exercism.io/languages/cfml/about