New Blog Post - Lucee 5 features reviewed - Static

Hi All,

There is a new blog post with lots of details and examples of the new
static function in Lucee 5 on the blog:

Kind regards,

Andrew
about.me http://about.me/andrew_dixon
mso http://www.mso.net - Lucee http://lucee.org - Member

Andrew,

Excellent post!

Aria Media Sagl
Via Rompada 40
6987 Caslano
Switzerland

+41 (0)91 600 9601
+41 (0)76 303 4477 cell
skype: ariamediaOn Wed, Apr 22, 2015 at 11:37 PM, Andrew Dixon <@Andrew_Dixon> wrote:

Hi All,

There is a new blog post with lots of details and examples of the new
static function in Lucee 5 on the blog:

http://lucee.org/blog/lucee-5-features-reviewed-static.html

Kind regards,

Andrew
about.me http://about.me/andrew_dixon
mso http://www.mso.net - Lucee http://lucee.org - Member


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAG1WijXXYfYq9k8%3Dw_kovQ5hUpjaNm3sp68zMoTv%3D2mrTG2FJw%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAG1WijXXYfYq9k8%3Dw_kovQ5hUpjaNm3sp68zMoTv%3D2mrTG2FJw%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

Great post. Thanks!On Thursday, April 23, 2015, Nando Breiter <@Nando_Breiter> wrote:

Andrew,

Excellent post!

Aria Media Sagl
Via Rompada 40
6987 Caslano
Switzerland

+41 (0)91 600 9601
+41 (0)76 303 4477 cell
skype: ariamedia

On Wed, Apr 22, 2015 at 11:37 PM, Andrew Dixon <@Andrew_Dixon <javascript:_e(%7B%7D,‘cvml’,’@Andrew_Dixon’);>> wrote:

Hi All,

There is a new blog post with lots of details and examples of the new
static function in Lucee 5 on the blog:

http://lucee.org/blog/lucee-5-features-reviewed-static.html

Kind regards,

Andrew
about.me http://about.me/andrew_dixon
mso http://www.mso.net - Lucee http://lucee.org - Member


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com
<javascript:_e(%7B%7D,‘cvml’,‘lucee%2Bunsubscribe@googlegroups.com’);>.
To post to this group, send email to lucee@googlegroups.com
<javascript:_e(%7B%7D,‘cvml’,‘lucee@googlegroups.com’);>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAG1WijXXYfYq9k8%3Dw_kovQ5hUpjaNm3sp68zMoTv%3D2mrTG2FJw%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAG1WijXXYfYq9k8%3Dw_kovQ5hUpjaNm3sp68zMoTv%3D2mrTG2FJw%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com
<javascript:_e(%7B%7D,‘cvml’,‘lucee%2Bunsubscribe@googlegroups.com’);>.
To post to this group, send email to lucee@googlegroups.com
<javascript:_e(%7B%7D,‘cvml’,‘lucee@googlegroups.com’);>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAGHrs%3D-sMDftUwbsEU4G1w0%2B5ayaN9sMenc9oaP5N7VMv2%3DS5w%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAGHrs%3D-sMDftUwbsEU4G1w0%2B5ayaN9sMenc9oaP5N7VMv2%3DS5w%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.


Sent from Gmail Mobile

All new features lucee 5 has are available in both dialects…

MichaOn Thursday, April 23, 2015, Kai Koenig <@Kai_Koenig> wrote:

A lot of the arguments are valid — in an academic world of
object-orientedness.

In such a world, functional programming would be wrong either.

The reality is: the concept of static can be useful in a variety of
scenarios, similarly to a Singleton (which is according to some people also
the root of all evil — and it can be, but it depends on the use case).

Anyway, happy for Lucee to have that now.

My question to Andrew and the LAS though is: Do I understand it correctly
that this is and will be available in Lucee’s CFML dialect or is that going
to be a .lucee feature?

Cheers
Kai

I’m just going to roll this hand grenade into the room and walk away.

https://r.je/static-methods-bad-practice.html

On 23 April 2015 at 07:37, Andrew Dixon <@Andrew_Dixon <javascript:_e(%7B%7D,‘cvml’,’@Andrew_Dixon’);>> wrote:

Hi All,

There is a new blog post with lots of details and examples of the new
static function in Lucee 5 on the blog:

http://lucee.org/blog/lucee-5-features-reviewed-static.html


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com
<javascript:_e(%7B%7D,‘cvml’,‘lucee%2Bunsubscribe@googlegroups.com’);>.
To post to this group, send email to lucee@googlegroups.com
<javascript:_e(%7B%7D,‘cvml’,‘lucee@googlegroups.com’);>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAEhA4Mot3zRp3iKAkPfUU3aSND%3DkwZD5VWax8mJZxfx4hEHBzg%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAEhA4Mot3zRp3iKAkPfUU3aSND%3DkwZD5VWax8mJZxfx4hEHBzg%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com
<javascript:_e(%7B%7D,‘cvml’,‘lucee%2Bunsubscribe@googlegroups.com’);>.
To post to this group, send email to lucee@googlegroups.com
<javascript:_e(%7B%7D,‘cvml’,‘lucee@googlegroups.com’);>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/4AB50544-C7F3-492F-979F-3678C7074A66%40gmail.com
https://groups.google.com/d/msgid/lucee/4AB50544-C7F3-492F-979F-3678C7074A66%40gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

I’m just going to roll this hand grenade into the room and walk away.

https://r.je/static-methods-bad-practice.htmlOn 23 April 2015 at 07:37, Andrew Dixon <@Andrew_Dixon> wrote:

Hi All,

There is a new blog post with lots of details and examples of the new
static function in Lucee 5 on the blog:

http://lucee.org/blog/lucee-5-features-reviewed-static.html

I’m just going to roll this hand grenade into the room and walk away.

https://r.je/static-methods-bad-practice.html

The limitations static methods have when it comes to DI could be mitigated
by Ryan’s suggestion here:
https://bitbucket.org/lucee/lucee/issue/258/inability-to-refer-to-static-members

I think being able to reference classes & static methods dynamically is a
very CFMLish idea, and would be quite handy.

Certainly in our own work we are very cautious about using static methods
before of the barriers they throw up to testing. And I’ve yet encountered a
case for static properties (over just constants, which we do use). But a
mutable value shared across all instances of a class? Nah, I don’t think
there’s many good use cases for that.

Anyway, my main point was go have a look @ Ryan’s E/R.On Thursday, 23 April 2015 03:30:19 UTC+1, James Holmes wrote:


Adam

out of curiosity i did a count of the keyword static in the Java Runtime
Enviroment (Version 5, was the newest source i had), they use the keyword
static 35975 times :wink:

MichaOn Thu, Apr 23, 2015 at 4:30 AM, James Holmes <@James_Holmes> wrote:

I’m just going to roll this hand grenade into the room and walk away.

https://r.je/static-methods-bad-practice.html

On 23 April 2015 at 07:37, Andrew Dixon <@Andrew_Dixon> wrote:

Hi All,

There is a new blog post with lots of details and examples of the new
static function in Lucee 5 on the blog:

http://lucee.org/blog/lucee-5-features-reviewed-static.html


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAEhA4Mot3zRp3iKAkPfUU3aSND%3DkwZD5VWax8mJZxfx4hEHBzg%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAEhA4Mot3zRp3iKAkPfUU3aSND%3DkwZD5VWax8mJZxfx4hEHBzg%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

Thanks for the post.

Is there a RSS feed we can subscribe to for the lucee blog?

JeanOn Thu, Apr 23, 2015 at 7:38 AM, Michael Offner <@Michael_Offner> wrote:

In my opinion static is like salt, you need it to survive but you should
not take to much of it, in other words don’t overdo it.
In my opinion this arguments also only have some ground on strict oo
language like Java but not on languages like cfml or php.

Micha

On Thursday, April 23, 2015, James Holmes <@James_Holmes> wrote:

I’m just going to roll this hand grenade into the room and walk away.

https://r.je/static-methods-bad-practice.html

On 23 April 2015 at 07:37, Andrew Dixon <@Andrew_Dixon> wrote:

Hi All,

There is a new blog post with lots of details and examples of the new
static function in Lucee 5 on the blog:

http://lucee.org/blog/lucee-5-features-reviewed-static.html


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAEhA4Mot3zRp3iKAkPfUU3aSND%3DkwZD5VWax8mJZxfx4hEHBzg%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAEhA4Mot3zRp3iKAkPfUU3aSND%3DkwZD5VWax8mJZxfx4hEHBzg%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAG%2BEEBxNVPEM20OSEn%3D8OB2_iw-eNbvPnXz9LYuTKD3rKHQFAQ%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAG%2BEEBxNVPEM20OSEn%3D8OB2_iw-eNbvPnXz9LYuTKD3rKHQFAQ%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

A lot of the arguments are valid — in an academic world of object-orientedness.

In such a world, functional programming would be wrong either.

The reality is: the concept of static can be useful in a variety of scenarios, similarly to a Singleton (which is according to some people also the root of all evil — and it can be, but it depends on the use case).

Anyway, happy for Lucee to have that now.

My question to Andrew and the LAS though is: Do I understand it correctly that this is and will be available in Lucee’s CFML dialect or is that going to be a .lucee feature?

Cheers
Kai> I’m just going to roll this hand grenade into the room and walk away.

https://r.je/static-methods-bad-practice.html

On 23 April 2015 at 07:37, Andrew Dixon <@Andrew_Dixon> wrote:
Hi All,

There is a new blog post with lots of details and examples of the new static function in Lucee 5 on the blog:

http://lucee.org/blog/lucee-5-features-reviewed-static.html


You received this message because you are subscribed to the Google Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/CAEhA4Mot3zRp3iKAkPfUU3aSND%3DkwZD5VWax8mJZxfx4hEHBzg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Thanks for the post.

Is there a RSS feed we can subscribe to for the lucee blog?

Last time someone asked (a coupla weeks back) the person who could switch
this on or make it happen or whatever was out of the office until the
following week (I suspect it was Dom?). It’s probably not on their radar
though. It’d be a great help though, as it’s how I track blogs still. Call
me old-school.On Thursday, 23 April 2015 07:59:01 UTC+1, jmoniatte wrote:


Adam

In my opinion static is like salt, you need it to survive but you should
not take to much of it, in other words don’t overdo it.
In my opinion this arguments also only have some ground on strict oo
language like Java but not on languages like cfml or php.

MichaOn Thursday, April 23, 2015, James Holmes <@James_Holmes> wrote:

I’m just going to roll this hand grenade into the room and walk away.

https://r.je/static-methods-bad-practice.html

On 23 April 2015 at 07:37, Andrew Dixon <@Andrew_Dixon <javascript:_e(%7B%7D,‘cvml’,’@Andrew_Dixon’);>> wrote:

Hi All,

There is a new blog post with lots of details and examples of the new
static function in Lucee 5 on the blog:

http://lucee.org/blog/lucee-5-features-reviewed-static.html


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com
<javascript:_e(%7B%7D,‘cvml’,‘lucee%2Bunsubscribe@googlegroups.com’);>.
To post to this group, send email to lucee@googlegroups.com
<javascript:_e(%7B%7D,‘cvml’,‘lucee@googlegroups.com’);>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAEhA4Mot3zRp3iKAkPfUU3aSND%3DkwZD5VWax8mJZxfx4hEHBzg%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAEhA4Mot3zRp3iKAkPfUU3aSND%3DkwZD5VWax8mJZxfx4hEHBzg%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

out of curiosity i did a count of the keyword static in the Java Runtime
Enviroment (Version 5, was the newest source i had), they use the keyword
static 35975 times :wink:

Yup.

As per that link that I posted regarding Betteridge’s Law. In general when
a headline asks a question like “Am I confident of the basis of this
article?”, one can immediately assume the answer is “no”.

If the author was sure of himself, the article title would be “Static
Methods/Variables are bad practice” rather than “Are Static
Methods/Variables bad practice?”

Still: it’s food for thought.

I’d rather have and not need, than need and not have.On Thursday, 23 April 2015 08:47:36 UTC+1, Micha wrote:


Adam

On Thu, Apr 23, 2015 at 4:30 AM, James Holmes <james....@gmail.com <javascript:>> wrote:

I’m just going to roll this hand grenade into the room and walk away.

https://r.je/static-methods-bad-practice.html
https://www.google.com/url?q=https%3A%2F%2Fr.je%2Fstatic-methods-bad-practice.html&sa=D&sntz=1&usg=AFQjCNFEBI3Dgm-JVqiDgQPXdBcjmUEzMw

Excellent post! Thank you… Hope to see more like this…On Thursday, April 23, 2015 at 7:37:02 AM UTC+10, Andrew Dixon wrote:

Hi All,

There is a new blog post with lots of details and examples of the new
static function in Lucee 5 on the blog:

http://lucee.org/blog/lucee-5-features-reviewed-static.html

Kind regards,

Andrew
about.me http://about.me/andrew_dixon
mso http://www.mso.net - Lucee http://lucee.org - Member

Call me old-school.

Nothing beats RSS.On Thu, Apr 23, 2015 at 9:14 AM, Adam Cameron <@Adam_Cameron> wrote:

I’m just going to roll this hand grenade into the room and walk away.

https://r.je/static-methods-bad-practice.html

;-)On Thursday, 23 April 2015 03:30:19 UTC+1, James Holmes wrote:


Adam