News for hackers. Stuff that matters.
Re:Lucee: A dynamic, Java-based, tag and scripting language ... by whalesalad on Thursday September 13, 2018 @12:26AM (#17976016)
I’m having a hard time understanding how to build apps with this. The docs are an endless labrynth of links containing very little meaningful information on what everything does and why it’s good.

At this point the only thing you can glean is it resembles java and it’s targeting the JVM.

A true start to finish hello world or basic app would be nice to see.

Re:Lucee: A dynamic, Java-based, tag and scripting language ... by wyqydsyq on Thursday September 13, 2018 @02:19AM (#17976443)
You wouldn't build apps with this. It's essentially a modern implementation of a ColdFusion engine. CFML is quite arguably an abandoned language and should never be used in new projects.

The only meaningful use case I see in Lucee is to be able to run and maintain legacy CF applications in an environment that is still supported without rewriting them for a more modern and capable language/runtime. It would be best utilised for putting legacy applications on life support, not for creating the next big thing.

Re:Lucee: A dynamic, Java-based, tag and scripting language ... by rmason on Thursday September 13, 2018 @04:09AM (#17976880)
I've got a lot of friends building new apps using it. I'm using it for the REST back end of my new startup. There's a strong vibrant community on Slack.

It may not be as popular as other languages but it has two advantages:

1. Rapid application development

2. A glue that ties other enterprise apps together

I got into a fight on Twitter over using CFML for new projects with a rather prominent fellow in the coding world. The year was 2008 and a lot of apps have been written in it since then;<).

Re:Lucee: A dynamic, Java-based, tag and scripting language ... by sjwright on Thursday September 13, 2018 @08:23PM (#17983848)
> You wouldn't build apps with this.

Why not? The environment is feature rich, runtime performance is fantastic, developer productivity is exceptional, and integration is compelling because it runs in the JVM. Yes, the JVM. So even if Lucee doesn't do what you need, you can natively call upon countless Java features like javax.script or javax.crypto, or third-party Java libs like JSoup or Lucene with just a couple extra lines of code.

And yes, like any language, it doesn't stop you from writing incompetent and stupid shit. The one big knock against the ColdFusion-inherited language is that the templating syntax is often overused for writing code, when it also has a great C/Java/JS-style scripting syntax.

Re:Lucee: A dynamic, Java-based, tag and scripting language ... by abraham_lincoln on Thursday September 13, 2018 @08:06AM (#17977924)
I disagree.

If you want legacy support, simply use the older Adobe provided Linux CF engines.

Look at the Coldbox framework and you will be pleasantly surprised at the implemented best practices and ease-of-use, all running in Lucee.

Re:Lucee: A dynamic, Java-based, tag and scripting language ... by nunobrito on Thursday September 13, 2018 @04:37AM (#17977004)
My thoughts are the same. I was looking for a simple hello world and it is a bit of a puzzle to find that.

Right on the front page a simple snippet example would already do wonders. Especially if the "rapid prototyping" is a key attribute.

Re:Lucee: A dynamic, Java-based, tag and scripting language ... by aidos on Thursday September 13, 2018 @05:03AM (#17977106)
Hello World in Lucee would simply be:

    echo "Hello World" > hello.cfm
I think the thing that's missing here is the context on the history. For most people using this project, they've come from CF (Adobe). It was "Hey, using CF and having a hard time with Adobe's code quality? We've made an opensource alternative! It's identical, but without the bugs and with these extra features..." And I guess the story for starting with it from scratch hasn't been more carefully considered.
Re:Lucee: A dynamic, Java-based, tag and scripting language ... by isapir on Thursday September 13, 2018 @03:48PM (#17981830)
As @aidos and @abraham_lincoln pointed out, an "Hello World" example is simply putting that string in a file named hello.cfm on the root of the web application and calling it with your browser, e.g. http://localhost:8080/hello.cfm

Before you can do that though, you need to install the CFML engine. I recently published a tutorial that shows how to install Lucee in Tomcat very easily:

https://www.youtube.com/watch?v=nuugoG5c-7M

http://blog.rasia.io/blog/how-to-easily-setup-lucee-in-tomca...

To make your Hello World example a bit more interesting, you can add the tag `<cfoutput>` with some dynamic content, e.g.

    <cfoutput>
        Hello World on #dateTimeFormat(now(), "mm/dd/yyyy 'at' HH:nn:ss")#
    </cfoutput>
See example at https://trycf.com/gist/226c10cbe74d4083743a617b25398224/luce...
Re:Lucee: A dynamic, Java-based, tag and scripting language ... by nunobrito on Monday September 17, 2018 @03:40PM (#18009262)
This would be a great "Hello World" snippet to thrill the newcomers on the website. That simple paragraph as you wrote.

Enough already to entice further curiosity now to explore on the dynamic content portion and start thinking on where this thing can be used on my daily tasks. All the best with Lucee.

Re:Lucee: A dynamic, Java-based, tag and scripting language ... by abraham_lincoln on Thursday September 13, 2018 @07:53AM (#17977861)
<cfdump var="Hello World!">

or

writeDump("Hello World!");

Re:Lucee: A dynamic, Java-based, tag and scripting language ... by bdcravens on Thursday September 13, 2018 @11:50AM (#17979547)
It's just ColdFusion/CFML.

The best approach would be the ColdBox framework at https://www.coldbox.org/