News for hackers. Stuff that matters.
Re:CFWheels 2.0 – ColdFusion Markup Language framework inspi... by Posibyte on Monday October 02, 2017 @11:25AM (#15384508)
Is there a captivating set of advantages or other reason to use ColdFusion compared to any of the more common languages today?1 I'd love to play with this and learn something new if it brings something interesting and different to the table.

1: Of course, other than leveraging existing CF knowledge.

Re:CFWheels 2.0 – ColdFusion Markup Language framework inspi... by moduspol on Monday October 02, 2017 @01:32PM (#15385911)
We used it at my last job a few years ago, and it was pretty easy to get people who aren't normally even coders to build a ColdFusion page. We used it for the university's intranet and it was very good for making simple internal CRUD web apps that various members of our team could understand / troubleshoot / maintain easily.

One of the defining features of ColdFusion is the tag-based syntax. You can have a single "web page" file in, say, "my-widgets.cfm". It can then have a mix of HTML and CFML tags that lay out the page, which would include an SQL query of a database and the HTML being output for each row. Other languages have templating, but this is more like a core feature of the language.

By default, it's also got that PHP style of "just upload a file and open it in your web browser" that makes it simple. So if someone else wanted to make a page like my "my-widgets.cfm", they could simply duplicate it with a different name and make changes until it's ready to go. This lets you turn around internal web apps very quickly that, you know, does in realtime what an administrative assistant does in a week with an Excel spreadsheet.

I use Python now and I certainly recommend it, but it wouldn't be as simple to jump right into as a barely-techie. Same with modern PHP (on something like Laravel). Earlier PHP would be similar, but ColdFusion's <cfquery> functionality is so easy to use and so critical that it's really a big deal. You don't need to know much ColdFusion to run a query and output the results (safely even) in HTML.

Re:CFWheels 2.0 – ColdFusion Markup Language framework inspi... by bdcravens on Monday October 02, 2017 @02:58PM (#15386792)
A few of my favorites (some of which aren't relevant when using a framework like this):

- simplified query recordsets (loop through, values referenced as queryName.columnName)

- you can turn anything into a recordset

- in-memory SQL queries of recordsets

- easy access to SQL (<cfquery ...>select a,b,c from foo...</cfquery>)

- write code using integrated markup or using ECMAScript-type syntax

- built-in web-based UI

- simplified REST API construction

- simplified web services construction

- simplified access to global, app-local, session-local scopes

- delimited-lists as a top-level data structured

- simplified access to things like email, charting, etc

- most of what you need for a web app is in the box, so if a server is running a CFML application server, you can build an app with no boilerplate (frameworks like Wheels and ColdBox obviously work differently, but CF is no framework required)

Re:CFWheels 2.0 – ColdFusion Markup Language framework inspi... by rad_gruchalski on Tuesday October 03, 2017 @06:06PM (#15396626)
Not really, not much one can learn from ColdFusion. The problem with CF is that it tries to do everything. CF server is a huge monolith, some functionality you'd never use still loads and occupies the memory. I call it "a bag of memory leaks wrapped in legacy dependencies". Haven’t used it for a few years but back in the day “tuning the JVM" seemed to be a common pattern among the CF folks. Basically, instead of accepting the fact that CF is memory hungry, sometimes not releasing memory correctly and literally consuming gigs of RAM within minutes, everybody tried to find some magical JVM settings that would prevent this behavior. Server used to require rather often restarts. the other thing is, some of libraries used by the CF server, even the most recent versions are years old. It’s not really a problem if you plan on using CFML layer only but if you want to do some more advanced stuff with event gateways, you may find yourself in trouble. For example, I was recently writing some Kafka stuff that supposed to be working as an event gateway. The amount of shading required to deploy the JAR is insane.

There are some really nice things though, for example <cfprint> tag would be the sole reason I'd put a CF instance up. Haven't seen anything out there that would handle printers so easily.

Personal recommendation would be: if you do not have to, stay away. Nothing new to learn there. I am saying this as a certified Adobe ColdFusion 7 and 8 developer who’s not working with this technology for at least 6 years now.

Some people in this thread mention that it’s a benefit that people who know nothing about programming are able to write some working code. I find this a problem often contributing to the issues mentioned above.

Re:CFWheels 2.0 – ColdFusion Markup Language framework inspi... by timsayshey on Monday October 02, 2017 @11:49AM (#15384753)
It's been a long road to 2.0 with lots detours but we've finally made it! Thanks to an awesome dedicated team and community :)

Lol, and yes, asking if Coldfusion is still a thing is like asking if Java is still a thing. It's a dynamic scripting language on the JVM that gets stuff done. It's not going anywhere. If you had a bad perception of CF many years ago, do yourself a favor and check out Lucee before making any comments, lest you misrepresent the language and speak out of ignorance ;) -- Remember bad code happens in every language

Re:CFWheels 2.0 – ColdFusion Markup Language framework inspi... by rbanffy on Monday October 02, 2017 @12:21PM (#15385130)
> Remember bad code happens in every language

I remember writing a Windows service to reload the CF's DLL every time the number of concurrent connections to ISS exceeded a certain threshold.

That happened, literally, in the past century, but Cold Fusion earned its bad reputation at that time. I was glad when I saw most of the original plumbing being ejected years later.

Re:CFWheels 2.0 – ColdFusion Markup Language framework inspi... by bdcravens on Monday October 02, 2017 @03:10PM (#15386917)
Yeah, CF pre-2001 had an entirely different architecture (when it switched from a static binary format to running atop the JVM ... lol it was a JVM language before that was cool)
Re:CFWheels 2.0 – ColdFusion Markup Language framework inspi... by rad_gruchalski on Tuesday October 03, 2017 @06:09PM (#15396642)
"from a static binary to a monolithic JVM app"
Re:CFWheels 2.0 – ColdFusion Markup Language framework inspi... by clairity on Monday October 02, 2017 @02:03PM (#15386236)
i still have a soft spot in my heart for coldfusion (and the fusebox framework) and the ease with which you could get a dynamic page up on the web. </cfmemories>

it's remarkable how resilient the dynamic templated web paradigm has been over the years. we keep coming up with new variants, like php, or even ones that run client-side, like react (reminiscent of coldfusion components), or shoehorning it into other languages like java, python and perl.

Re:CFWheels 2.0 – ColdFusion Markup Language framework inspi... by wordpressdev on Monday October 02, 2017 @11:44AM (#15384690)
I did few projects in CF when it was the thing (before being acquired by Adobe etc). Here's one project I did back in 2001-2. It was my country's first jobsite for tech professionals. I was the web dev.

https://web.archive.org/web/20020605022808/http://www.jobnox...

Re:CFWheels 2.0 – ColdFusion Markup Language framework inspi... by harel on Tuesday October 03, 2017 @04:23AM (#15390968)
It was a thing a good while back. In fact it was the first Application Server. Still around early 2000s it was one of the best ways to create web applications. And then it wasn't. What is interesting is that the Lucee (http://lucee.org/) project doesn't even mention ColdFusion or CFML in the first few pages.
Re:CFWheels 2.0 – ColdFusion Markup Language framework inspi... by notjustanymike on Monday October 02, 2017 @11:48AM (#15384738)
Does anyone know if this is compatible with Fortran?
Re:CFWheels 2.0 – ColdFusion Markup Language framework inspi... by bdcravens on Monday October 02, 2017 @03:01PM (#15386824)
Worth noting the ColdFusion is about as old (1995) as Ruby (1993), Java (1995), and Javascript (1995). Python is of course a few years older than these. (1989)
Re:CFWheels 2.0 – ColdFusion Markup Language framework inspi... by tempodox on Monday October 02, 2017 @01:29PM (#15385883)
Nope, it requires COBOL.
Re:CFWheels 2.0 – ColdFusion Markup Language framework inspi... by rad_gruchalski on Tuesday October 03, 2017 @06:10PM (#15396649)
It's the new COBOL.
Re:CFWheels 2.0 – ColdFusion Markup Language framework inspi... by gremlinsinc on Monday October 02, 2017 @11:10AM (#15384364)
is coldfusion still a thing in 2017?
Re:CFWheels 2.0 – ColdFusion Markup Language framework inspi... by neokoenig on Monday October 02, 2017 @11:34AM (#15384593)
Personally, I've found the Open source version, http://lucee.org/ to be preferable to Adobe ColdFusion, although Adobe have at least committed to supporting it until at least 2025. (see http://wwwimages.adobe.com/content/dam/acom/en/products/cold... )
Re:CFWheels 2.0 – ColdFusion Markup Language framework inspi... by brixon on Monday October 02, 2017 @11:48AM (#15384733)
I doubt there are many new companies starting to use CF, but it was a good option in 2001 when CF5 came out when compared to PHP4, ASP3, or CGI from those days. Companies that have a decade of CF code is not going to just replace it all because it is not the cool flavor of the week. It works and generally does an OK job.

It has always been an approachable language to people that don't program full time. It looks and feels like HTML, so novice programmers were productive fairly quickly in CF. Career programmers tend to not like it since it is verbose and restrictive, but I have know numerous people use CF as a jumping point for programming and IT careers solving company problems with a bit of code.

Re:CFWheels 2.0 – ColdFusion Markup Language framework inspi... by bdw429s on Monday October 02, 2017 @05:09PM (#15387979)
According to a recent survey by Adobe, 75% of fortune 100's are using CFML and 70% of their CF base are building new applications in it. They have a steady stream of new licenses being purchased, and according to the latest W3Techs data, CF usage in the wild is actually climbing. (Whereas Java, .NET, and Ruby usage is dropping) https://w3techs.com/technologies/details/pl-coldfusion/all/a...

I use CF daily as my primary programming language, and I can assure you it's still a great option in terms of productivity and scalability in 2017.

Re:CFWheels 2.0 – ColdFusion Markup Language framework inspi... by rbanffy on Monday October 02, 2017 @12:26PM (#15385212)
Legacy code is a thing. I fear the merging of template and logic that CF encouraged (and I don't think it's currently discouraged enough) results in hard to test and hard to reutilize code.

Since hard to test and, hence, untestable codebases are the hardest to migrate, I'd assume web applications that depend too much on Cold Fusion (or PHP, ASP or Model 1 JSP) will remain in those technologies until the whole thing is rewritten from scratch.

Re:CFWheels 2.0 – ColdFusion Markup Language framework inspi... by neokoenig on Monday October 02, 2017 @02:03PM (#15386231)
CFWheels uses RoR MVC concepts, so separation from data/logic/display as you'd expect. This (major) second version has it's own built in test suite for TDD, RESTful routing etc, and the whole core has been written in CFScript which is "tag free". My point being that any modern CFML web app can easily engage with best practice development - that's of course not to say there aren't a lot of legacy apps out there as you rightly mention.
Re:CFWheels 2.0 – ColdFusion Markup Language framework inspi... by brixon on Monday October 02, 2017 @03:51PM (#15387329)
I'm not knocking CF, it put food on my dinner plate for many years. I used to use fusebox (MVC with all the terms renamed) and had manageable code. I could knock out a CF based web app much faster than I can today with C# ASP.NET. The only reason we switched was the availability of developers willing to work on CF. You can find C# people everywhere.
Re:CFWheels 2.0 – ColdFusion Markup Language framework inspi... by Semiapies on Monday October 02, 2017 @01:02PM (#15385619)
True for a lot of a lot of older stuff. But, on the CF apps I've been supporting, I've been reworking things to minimize the actual CF component, reducing it to APIs as much as possible. I suspect I'm not the only coder setting up to move away fast once Adobe drops it.
Re:CFWheels 2.0 – ColdFusion Markup Language framework inspi... by cicloid on Monday October 02, 2017 @01:10PM (#15385704)
And now we have JSX
Re:CFWheels 2.0 – ColdFusion Markup Language framework inspi... by bdw429s on Monday October 02, 2017 @05:06PM (#15387948)
Yes it is. Very much so actually. CFML has been a dynamic and loosely typed JVM language since before that was cool (~2002). It is reported by W3Techs as the 4th most popular web language on the internet today (behind PHP, .NET, and Java). Wow, amazing that Ruby, Node, and Clojure all aren't as popular as CFML for server side code still!

CFML has open source engines like Lucee Server, and a modern arsenal of tooling including CLI, REPL, package management, MVC, IDE plugins, conferences around the world, and active support forums like our Slack team with 2.2K people in it. CF's modern scripting syntax reads like JavaScript and includes function programming, closures, and classical OO constructs. It sounds like you need to check it out again. Everything I listed above has been around for years in the CF space.

Re:CFWheels 2.0 – ColdFusion Markup Language framework inspi... by bdcravens on Monday October 02, 2017 @08:50PM (#15389197)
Just noticed a link in another article on the front page about Tesla: (https://news.ycombinator.com/item?id=15388034)

http://ir.tesla.com/releasedetail.cfm?ReleaseID=1042449

(third-party site, but interesting nonetheless)

Re:CFWheels 2.0 – ColdFusion Markup Language framework inspi... by bdcravens on Monday October 02, 2017 @03:03PM (#15386853)
It has a lot of use in government and health care. I can't speak to his current projects, but Pud was still using it on some of his recent startups.
Re:CFWheels 2.0 – ColdFusion Markup Language framework inspi... by harel on Tuesday October 03, 2017 @04:20AM (#15390958)
Fu£@*dcompany was a CF site.
Re:CFWheels 2.0 – ColdFusion Markup Language framework inspi... by internalfx on Monday October 02, 2017 @11:10AM (#15384372)
apparently.