Re: [ACFUG Discuss] CFUnited Report - Adobe Keynote

2008-06-18 Thread Douglas Knudsen
Implicit getters/setters
 The cfproperty will generate the implicit getters and setters on the
backend to save you from writing the code.

nice!  Was overriding mentioned for these?

DK

On Wed, Jun 18, 2008 at 10:28 AM, John Mason [EMAIL PROTECTED] wrote:
 I just posted my notes from the keynote this morning at my blog,
 www.codfusion.com The keynote covered a lot of new features coming in the
 next release of Coldfusion.

 John Mason
 [EMAIL PROTECTED]
 770.337.8363

 www.FusionLink.com - ColdFusion and Flex hosting
 Now offering VPS Plans running with VMware technology
 Now offering ColdFusion 8 Enterprise hosting
 FREE Subversion hosting



 -
 To unsubscribe from this list, manage your profile @
 http://www.acfug.org?fa=login.edituserform

 For more info, see http://www.acfug.org/mailinglists
 Archive @ http://www.mail-archive.com/discussion%40acfug.org/
 List hosted by http://www.fusionlink.com
 -







-- 
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


-
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-





RE: [ACFUG Discuss] CFUnited Report - Adobe Keynote

2008-06-18 Thread John Mason
Yes, so if you have your own getters/setters then CF will use those. If they
are not present, then the implicit ones will take effect. I can only imagine
how much code this will save everyone from typing. 


John Mason
[EMAIL PROTECTED]
770.337.8363
 
www.FusionLink.com - ColdFusion and Flex hosting
Now offering VPS Plans running with VMware technology
Now offering ColdFusion 8 Enterprise hosting
FREE Subversion hosting

This e-mail message and all attachments transmitted with it may contain
legally privileged and/or confidential information intended solely for the
use of the addressee(s). If the reader of this message is not the intended
recipient, you are hereby notified that any reading, dissemination,
distribution, copying, forwarding or other use of this message or its
attachments is strictly prohibited. If you have received this message in
error, please notify the sender immediately and delete this message and all
copies and backups thereof.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Douglas Knudsen
Sent: Wednesday, June 18, 2008 10:39 AM
To: discussion@acfug.org
Subject: Re: [ACFUG Discuss] CFUnited Report - Adobe Keynote

Implicit getters/setters
 The cfproperty will generate the implicit getters and setters on the
backend to save you from writing the code.

nice!  Was overriding mentioned for these?

DK

On Wed, Jun 18, 2008 at 10:28 AM, John Mason [EMAIL PROTECTED] wrote:
 I just posted my notes from the keynote this morning at my blog, 
 www.codfusion.com The keynote covered a lot of new features coming in 
 the next release of Coldfusion.

 John Mason
 [EMAIL PROTECTED]
 770.337.8363

 www.FusionLink.com - ColdFusion and Flex hosting Now offering VPS 
 Plans running with VMware technology Now offering ColdFusion 8 
 Enterprise hosting FREE Subversion hosting



 -
 To unsubscribe from this list, manage your profile @ 
 http://www.acfug.org?fa=login.edituserform

 For more info, see http://www.acfug.org/mailinglists Archive @ 
 http://www.mail-archive.com/discussion%40acfug.org/
 List hosted by http://www.fusionlink.com
 -







--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


-
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-





-
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-





Re: [ACFUG Discuss] CFUnited Report - Adobe Keynote

2008-06-18 Thread Cameron Childress
I also saw that CF will now be FREE for academic use, including
Enterprise.  That's fantastic.  Very very cool.

-Cameron

On Wed, Jun 18, 2008 at 10:39 AM, Douglas Knudsen
[EMAIL PROTECTED] wrote:
 Implicit getters/setters
  The cfproperty will generate the implicit getters and setters on the
 backend to save you from writing the code.

 nice!  Was overriding mentioned for these?

 DK

 On Wed, Jun 18, 2008 at 10:28 AM, John Mason [EMAIL PROTECTED] wrote:
 I just posted my notes from the keynote this morning at my blog,
 www.codfusion.com The keynote covered a lot of new features coming in the
 next release of Coldfusion.

 John Mason
 [EMAIL PROTECTED]
 770.337.8363

 www.FusionLink.com - ColdFusion and Flex hosting
 Now offering VPS Plans running with VMware technology
 Now offering ColdFusion 8 Enterprise hosting
 FREE Subversion hosting



 -
 To unsubscribe from this list, manage your profile @
 http://www.acfug.org?fa=login.edituserform

 For more info, see http://www.acfug.org/mailinglists
 Archive @ http://www.mail-archive.com/discussion%40acfug.org/
 List hosted by http://www.fusionlink.com
 -







 --
 Douglas Knudsen
 http://www.cubicleman.com
 this is my signature, like it?


 -
 To unsubscribe from this list, manage your profile @
 http://www.acfug.org?fa=login.edituserform

 For more info, see http://www.acfug.org/mailinglists
 Archive @ http://www.mail-archive.com/discussion%40acfug.org/
 List hosted by http://www.fusionlink.com
 -







-- 
Cameron Childress
Sumo Consulting Inc
http://www.sumoc.com
---
cell: 678.637.5072
aim: cameroncf
email: [EMAIL PROTECTED]


-
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-





RE: [ACFUG Discuss] CFUnited Report - Adobe Keynote

2008-06-18 Thread Gurevich, Gerry (NIH/NIEHS) [C]
What if you have already written your own framework to use the
cfproperty tag for this very thing?  I guess I'll have to wait and see.


Gerry Gurevich
Application Development
NIEHS ITSS Contractor
Lockheed Martin Information Technology
919-361-5444 ext 311


-Original Message-
From: John Mason [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 18, 2008 10:55 AM
To: discussion@acfug.org
Subject: RE: [ACFUG Discuss] CFUnited Report - Adobe Keynote

Yes, so if you have your own getters/setters then CF will use those. If
they
are not present, then the implicit ones will take effect. I can only
imagine
how much code this will save everyone from typing. 


John Mason
[EMAIL PROTECTED]
770.337.8363
 
www.FusionLink.com - ColdFusion and Flex hosting
Now offering VPS Plans running with VMware technology
Now offering ColdFusion 8 Enterprise hosting
FREE Subversion hosting

This e-mail message and all attachments transmitted with it may contain
legally privileged and/or confidential information intended solely for
the
use of the addressee(s). If the reader of this message is not the
intended
recipient, you are hereby notified that any reading, dissemination,
distribution, copying, forwarding or other use of this message or its
attachments is strictly prohibited. If you have received this message in
error, please notify the sender immediately and delete this message and
all
copies and backups thereof.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Douglas
Knudsen
Sent: Wednesday, June 18, 2008 10:39 AM
To: discussion@acfug.org
Subject: Re: [ACFUG Discuss] CFUnited Report - Adobe Keynote

Implicit getters/setters
 The cfproperty will generate the implicit getters and setters on the
backend to save you from writing the code.

nice!  Was overriding mentioned for these?

DK

On Wed, Jun 18, 2008 at 10:28 AM, John Mason [EMAIL PROTECTED]
wrote:
 I just posted my notes from the keynote this morning at my blog, 
 www.codfusion.com The keynote covered a lot of new features coming in 
 the next release of Coldfusion.

 John Mason
 [EMAIL PROTECTED]
 770.337.8363

 www.FusionLink.com - ColdFusion and Flex hosting Now offering VPS 
 Plans running with VMware technology Now offering ColdFusion 8 
 Enterprise hosting FREE Subversion hosting



 -
 To unsubscribe from this list, manage your profile @ 
 http://www.acfug.org?fa=login.edituserform

 For more info, see http://www.acfug.org/mailinglists Archive @ 
 http://www.mail-archive.com/discussion%40acfug.org/
 List hosted by http://www.fusionlink.com
 -







--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


-
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-





-
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-





-
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-





Re: [ACFUG Discuss] CFUnited Report - Adobe Keynote

2008-06-18 Thread Dean H. Saxe
Which of course sucks if you want encapsulation and limits on the  
setters/getters based on authorization.  Is this controllable in some  
manner?


-dhs


Dean H. Saxe, CISSP, CEH
[EMAIL PROTECTED]
Free speech exercised both individually and through a free press, is  
a necessity in any country where people are themselves free.

-- Theodore Roosevelt, 1918


On Jun 18, 2008, at 10:39 AM, Douglas Knudsen wrote:


Implicit getters/setters
The cfproperty will generate the implicit getters and setters on the
backend to save you from writing the code.

nice!  Was overriding mentioned for these?

DK

On Wed, Jun 18, 2008 at 10:28 AM, John Mason [EMAIL PROTECTED]  
wrote:

I just posted my notes from the keynote this morning at my blog,
www.codfusion.com The keynote covered a lot of new features coming  
in the

next release of Coldfusion.

John Mason
[EMAIL PROTECTED]
770.337.8363

www.FusionLink.com - ColdFusion and Flex hosting
Now offering VPS Plans running with VMware technology
Now offering ColdFusion 8 Enterprise hosting
FREE Subversion hosting



-
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-








--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


-
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-







-
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform


For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-





Re: [ACFUG Discuss] CFUnited Report - Adobe Keynote

2008-06-18 Thread Dean H. Saxe
I should say beyond having to implement your own setters/getters...  
which still doesn't really solve the problem of properties which you  
explicitly do not want setters/getters on unless you throw exceptions  
on the unimplemented ones.  Yuck.


-dhs


Dean H. Saxe, CISSP, CEH
[EMAIL PROTECTED]
What is objectionable, what is dangerous about extremists is not that  
they are extreme, but that they are intolerant.

-- Robert F. Kennedy, 1964


On Jun 18, 2008, at 12:01 PM, Dean H. Saxe wrote:

Which of course sucks if you want encapsulation and limits on the  
setters/getters based on authorization.  Is this controllable in  
some manner?


-dhs


Dean H. Saxe, CISSP, CEH
[EMAIL PROTECTED]
Free speech exercised both individually and through a free press,  
is a necessity in any country where people are themselves free.

   -- Theodore Roosevelt, 1918


On Jun 18, 2008, at 10:39 AM, Douglas Knudsen wrote:


Implicit getters/setters
The cfproperty will generate the implicit getters and setters on the
backend to save you from writing the code.

nice!  Was overriding mentioned for these?

DK

On Wed, Jun 18, 2008 at 10:28 AM, John Mason [EMAIL PROTECTED]  
wrote:

I just posted my notes from the keynote this morning at my blog,
www.codfusion.com The keynote covered a lot of new features coming  
in the

next release of Coldfusion.

John Mason
[EMAIL PROTECTED]
770.337.8363

www.FusionLink.com - ColdFusion and Flex hosting
Now offering VPS Plans running with VMware technology
Now offering ColdFusion 8 Enterprise hosting
FREE Subversion hosting



-
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-








--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


-
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-







-
To unsubscribe from this list, manage your profile 
@http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-







-
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform


For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-





Re: [ACFUG Discuss] CFUnited Report - Adobe Keynote

2008-06-18 Thread Cameron Childress
These sorts of questions are why people participate in alpha/beta
programs.  These are all points which should be brought up and aired
out WAY before the final bits ship.  Some thoughts come to mind

1) Add access attributes to cfproperty for public/private
2) Add roles attribute for authorization
3) Override anything that required more complex logic
4) Type attribute already exists in cfproperty, implicit getter setter
could check types based on that

These already exist in other areas of CF.  Would be intuitive to add them.

This is pretty much how ActionScript 3 works BTW.

-Cameron

On Wed, Jun 18, 2008 at 12:01 PM, Dean H. Saxe
[EMAIL PROTECTED] wrote:
 Which of course sucks if you want encapsulation and limits on the
 setters/getters based on authorization.  Is this controllable in some
 manner?

 -dhs


 Dean H. Saxe, CISSP, CEH
 [EMAIL PROTECTED]
 Free speech exercised both individually and through a free press, is a
 necessity in any country where people are themselves free.
-- Theodore Roosevelt, 1918


 On Jun 18, 2008, at 10:39 AM, Douglas Knudsen wrote:

 Implicit getters/setters
 The cfproperty will generate the implicit getters and setters on the
 backend to save you from writing the code.

 nice!  Was overriding mentioned for these?

 DK

 On Wed, Jun 18, 2008 at 10:28 AM, John Mason [EMAIL PROTECTED] wrote:

 I just posted my notes from the keynote this morning at my blog,
 www.codfusion.com The keynote covered a lot of new features coming in the
 next release of Coldfusion.

 John Mason
 [EMAIL PROTECTED]
 770.337.8363

 www.FusionLink.com - ColdFusion and Flex hosting
 Now offering VPS Plans running with VMware technology
 Now offering ColdFusion 8 Enterprise hosting
 FREE Subversion hosting



 -
 To unsubscribe from this list, manage your profile @
 http://www.acfug.org?fa=login.edituserform

 For more info, see http://www.acfug.org/mailinglists
 Archive @ http://www.mail-archive.com/discussion%40acfug.org/
 List hosted by http://www.fusionlink.com
 -







 --
 Douglas Knudsen
 http://www.cubicleman.com
 this is my signature, like it?


 -
 To unsubscribe from this list, manage your profile @
 http://www.acfug.org?fa=login.edituserform

 For more info, see http://www.acfug.org/mailinglists
 Archive @ http://www.mail-archive.com/discussion%40acfug.org/
 List hosted by http://www.fusionlink.com
 -






 -
 To unsubscribe from this list, manage your profile
 @http://www.acfug.org?fa=login.edituserform

 For more info, see http://www.acfug.org/mailinglists
 Archive @ http://www.mail-archive.com/discussion%40acfug.org/
 List hosted by http://www.fusionlink.com
 -







-- 
Cameron Childress
Sumo Consulting Inc
http://www.sumoc.com
---
cell: 678.637.5072
aim: cameroncf
email: [EMAIL PROTECTED]


-
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-





Re: [ACFUG Discuss] CFUnited Report - Adobe Keynote

2008-06-18 Thread Dean H. Saxe
What I would want to is annotate the properties to say whether the  
getter/setter should be autogenerated, that way it leaves control to  
the developer.  I like the idea of the addition of a roles check for  
authorization to call specific setters/getters.


Also, is the autogenerated setter/getter secure?  Remember, java  
passes by value... the value is a reference to the original object  
except for primitive types, in which case it is a copy of the  
primitive (e.g. String).  So for object references, if I use the  
getter to get a CFC reference (e.g. myFoo.getBar() returns a Bar CFC),  
and then modify a property of that CFC using its setter (e.g.  
bar.setFooBarBlah(blah...)) ... did I just modify the private  
instance of bar that is held by Foo?  This can result in some pretty  
interesting vulnerabilities...  (Yes, this is probably overkill, but  
why not enquire...)


-dhs


Dean H. Saxe, CISSP, CEH
[EMAIL PROTECTED]
Great spirits have often encountered violent opposition from weak  
minds.

--Einstein


On Jun 18, 2008, at 2:33 PM, Cameron Childress wrote:


These sorts of questions are why people participate in alpha/beta
programs.  These are all points which should be brought up and aired
out WAY before the final bits ship.  Some thoughts come to mind

1) Add access attributes to cfproperty for public/private
2) Add roles attribute for authorization
3) Override anything that required more complex logic
4) Type attribute already exists in cfproperty, implicit getter setter
could check types based on that

These already exist in other areas of CF.  Would be intuitive to add  
them.


This is pretty much how ActionScript 3 works BTW.

-Cameron

On Wed, Jun 18, 2008 at 12:01 PM, Dean H. Saxe
[EMAIL PROTECTED] wrote:

Which of course sucks if you want encapsulation and limits on the
setters/getters based on authorization.  Is this controllable in some
manner?

-dhs


Dean H. Saxe, CISSP, CEH
[EMAIL PROTECTED]
Free speech exercised both individually and through a free press,  
is a

necessity in any country where people are themselves free.
  -- Theodore Roosevelt, 1918


On Jun 18, 2008, at 10:39 AM, Douglas Knudsen wrote:


Implicit getters/setters
The cfproperty will generate the implicit getters and setters on the
backend to save you from writing the code.

nice!  Was overriding mentioned for these?

DK

On Wed, Jun 18, 2008 at 10:28 AM, John Mason  
[EMAIL PROTECTED] wrote:


I just posted my notes from the keynote this morning at my blog,
www.codfusion.com The keynote covered a lot of new features  
coming in the

next release of Coldfusion.

John Mason
[EMAIL PROTECTED]
770.337.8363

www.FusionLink.com - ColdFusion and Flex hosting
Now offering VPS Plans running with VMware technology
Now offering ColdFusion 8 Enterprise hosting
FREE Subversion hosting



-
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-








--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


-
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-







-
To unsubscribe from this list, manage your profile
@http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-








--
Cameron Childress
Sumo Consulting Inc
http://www.sumoc.com
---
cell: 678.637.5072
aim: cameroncf
email: [EMAIL PROTECTED]


-
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-







-
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform


For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-





Re: [ACFUG Discuss] CFUnited Report - Adobe Keynote

2008-06-18 Thread Cameron Childress
On Wed, Jun 18, 2008 at 3:10 PM, Dean H. Saxe
[EMAIL PROTECTED] wrote:
 What I would want to is annotate the properties to say whether the
 getter/setter should be autogenerated, that way it leaves control to the
 developer.

If you don't want it autogenerated, just call it private.  It's not
generating code in the CFC, just an implicit getter setter.  Would a
private get/set that you never even have to look at be good enough?
Bigger question, what's the use case for a property that you couldn't
get/set, even privately?

 I like the idea of the addition of a roles check for
 authorization to call specific setters/getters.

Cool.

 Also, is the autogenerated setter/getter secure?  Remember, java passes by
 value... the value is a reference to the original object except for
 primitive types, in which case it is a copy of the primitive (e.g. String).
  So for object references, if I use the getter to get a CFC reference (e.g.
 myFoo.getBar() returns a Bar CFC), and then modify a property of that CFC
 using its setter (e.g. bar.setFooBarBlah(blah...)) ... did I just modify
 the private instance of bar that is held by Foo?  This can result in some
 pretty interesting vulnerabilities...  (Yes, this is probably overkill, but
 why not enquire...)

In CF, I always assume complex objects (CFCs/Arrays) are always passed
by reference.  This is the same as explicit functions where you pass
in a CFC in a cfargument tag.

Frequently, if I have a function that accepts a typed CFC as an
argument and the function makes some change to that passed in CFC
Instance, I don't even bother returning the modified CFC Instance
because it's already been modified by reference.  On these functions I
usually just return void and get on with it.

-Cameron

-- 
Cameron Childress
Sumo Consulting Inc
http://www.sumoc.com
---
cell: 678.637.5072
aim: cameroncf
email: [EMAIL PROTECTED]


-
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-





Re: [ACFUG Discuss] CFUnited Report - Adobe Keynote

2008-06-18 Thread Steven Ross
I can see a reason to have auto generated getters and setters based on a
database table (and possibly typed) but you can effectivley do this now with
a missing method handler...


I'm guessing this is based on a table somewhere?

On Wed, Jun 18, 2008 at 3:26 PM, Cameron Childress [EMAIL PROTECTED]
wrote:

 On Wed, Jun 18, 2008 at 3:10 PM, Dean H. Saxe
 [EMAIL PROTECTED] wrote:
  What I would want to is annotate the properties to say whether the
  getter/setter should be autogenerated, that way it leaves control to the
  developer.

 If you don't want it autogenerated, just call it private.  It's not
 generating code in the CFC, just an implicit getter setter.  Would a
 private get/set that you never even have to look at be good enough?
 Bigger question, what's the use case for a property that you couldn't
 get/set, even privately?

  I like the idea of the addition of a roles check for
  authorization to call specific setters/getters.

 Cool.

  Also, is the autogenerated setter/getter secure?  Remember, java passes
 by
  value... the value is a reference to the original object except for
  primitive types, in which case it is a copy of the primitive (e.g.
 String).
   So for object references, if I use the getter to get a CFC reference
 (e.g.
  myFoo.getBar() returns a Bar CFC), and then modify a property of that CFC
  using its setter (e.g. bar.setFooBarBlah(blah...)) ... did I just
 modify
  the private instance of bar that is held by Foo?  This can result in some
  pretty interesting vulnerabilities...  (Yes, this is probably overkill,
 but
  why not enquire...)

 In CF, I always assume complex objects (CFCs/Arrays) are always passed
 by reference.  This is the same as explicit functions where you pass
 in a CFC in a cfargument tag.

 Frequently, if I have a function that accepts a typed CFC as an
 argument and the function makes some change to that passed in CFC
 Instance, I don't even bother returning the modified CFC Instance
 because it's already been modified by reference.  On these functions I
 usually just return void and get on with it.

 -Cameron

 --
 Cameron Childress
 Sumo Consulting Inc
 http://www.sumoc.com
 ---
 cell: 678.637.5072
 aim: cameroncf
 email: [EMAIL PROTECTED]


 -
 To unsubscribe from this list, manage your profile @
 http://www.acfug.org?fa=login.edituserform

 For more info, see http://www.acfug.org/mailinglists
 Archive @ http://www.mail-archive.com/discussion%40acfug.org/
 List hosted by http://www.fusionlink.com
 -






-- 
Steven Ross
web application  interface developer
http://blog.stevensross.com
[mobile] 404-488-4364 [fax] (404) 592-6885
[ AIM / Yahoo! : zeriumsteven ] [googleTalk : nowhiding ]



-
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-



Re: [ACFUG Discuss] CFUnited Report - Adobe Keynote

2008-06-18 Thread Cameron Childress
No, if it follows the pattern seen in AS3, it would be something like
this... Given a property definition like this:

cfcomponent
cfproperty name=firstname type=String access=public roles=Admin,User /
[]
/cfcomponent

You'd get two implicit getters/setters with the signature
getFirstname(void):String and setFirstname(String):void

Access would be controlled by a combination of access level
(public/private/package) and authenticated user level - Admin and
User roles would have access, another role such as Visitor would
not.

Of course, this is all based on wild assumptions and predictions on my
part and definitely DOES NOT represent any official plan from Adobe
for CF9.

-Cameron

On Wed, Jun 18, 2008 at 5:52 PM, Steven Ross [EMAIL PROTECTED] wrote:
 I can see a reason to have auto generated getters and setters based on a
 database table (and possibly typed) but you can effectivley do this now with
 a missing method handler...


 I'm guessing this is based on a table somewhere?

 On Wed, Jun 18, 2008 at 3:26 PM, Cameron Childress [EMAIL PROTECTED]
 wrote:

 On Wed, Jun 18, 2008 at 3:10 PM, Dean H. Saxe
 [EMAIL PROTECTED] wrote:
  What I would want to is annotate the properties to say whether the
  getter/setter should be autogenerated, that way it leaves control to the
  developer.

 If you don't want it autogenerated, just call it private.  It's not
 generating code in the CFC, just an implicit getter setter.  Would a
 private get/set that you never even have to look at be good enough?
 Bigger question, what's the use case for a property that you couldn't
 get/set, even privately?

  I like the idea of the addition of a roles check for
  authorization to call specific setters/getters.

 Cool.

  Also, is the autogenerated setter/getter secure?  Remember, java passes
  by
  value... the value is a reference to the original object except for
  primitive types, in which case it is a copy of the primitive (e.g.
  String).
   So for object references, if I use the getter to get a CFC reference
  (e.g.
  myFoo.getBar() returns a Bar CFC), and then modify a property of that
  CFC
  using its setter (e.g. bar.setFooBarBlah(blah...)) ... did I just
  modify
  the private instance of bar that is held by Foo?  This can result in
  some
  pretty interesting vulnerabilities...  (Yes, this is probably overkill,
  but
  why not enquire...)

 In CF, I always assume complex objects (CFCs/Arrays) are always passed
 by reference.  This is the same as explicit functions where you pass
 in a CFC in a cfargument tag.

 Frequently, if I have a function that accepts a typed CFC as an
 argument and the function makes some change to that passed in CFC
 Instance, I don't even bother returning the modified CFC Instance
 because it's already been modified by reference.  On these functions I
 usually just return void and get on with it.

 -Cameron

 --
 Cameron Childress
 Sumo Consulting Inc
 http://www.sumoc.com
 ---
 cell: 678.637.5072
 aim: cameroncf
 email: [EMAIL PROTECTED]


 -
 To unsubscribe from this list, manage your profile @
 http://www.acfug.org?fa=login.edituserform

 For more info, see http://www.acfug.org/mailinglists
 Archive @ http://www.mail-archive.com/discussion%40acfug.org/
 List hosted by http://www.fusionlink.com
 -






 --
 Steven Ross
 web application  interface developer
 http://blog.stevensross.com
 [mobile] 404-488-4364 [fax] (404) 592-6885
 [ AIM / Yahoo! : zeriumsteven ] [googleTalk : nowhiding ]
 -
 To unsubscribe from this list, manage your profile @
 http://www.acfug.org?fa=login.edituserform

 For more info, see http://www.acfug.org/mailinglists
 Archive @ http://www.mail-archive.com/discussion%40acfug.org/
 List hosted by FusionLink
 -



-- 
Cameron Childress
Sumo Consulting Inc
http://www.sumoc.com
---
cell: 678.637.5072
aim: cameroncf
email: [EMAIL PROTECTED]


-
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-





RE: [ACFUG Discuss] CFUnited Report - Adobe Keynote

2008-06-18 Thread John Mason
But that's pretty much what they are talking about and it's how AS3 handles
it. I can't see why they would implement it differently. 

John Mason
[EMAIL PROTECTED]
770.337.8363
 
www.FusionLink.com - ColdFusion and Flex hosting
Now offering VPS Plans running with VMware technology
Now offering ColdFusion 8 Enterprise hosting
FREE Subversion hosting

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cameron
Childress
Sent: Wednesday, June 18, 2008 6:34 PM
To: discussion@acfug.org
Subject: Re: [ACFUG Discuss] CFUnited Report - Adobe Keynote

No, if it follows the pattern seen in AS3, it would be something like
this... Given a property definition like this:

cfcomponent
cfproperty name=firstname type=String access=public
roles=Admin,User / [] /cfcomponent

You'd get two implicit getters/setters with the signature
getFirstname(void):String and setFirstname(String):void

Access would be controlled by a combination of access level
(public/private/package) and authenticated user level - Admin and User
roles would have access, another role such as Visitor would not.

Of course, this is all based on wild assumptions and predictions on my part
and definitely DOES NOT represent any official plan from Adobe for CF9.

-Cameron

On Wed, Jun 18, 2008 at 5:52 PM, Steven Ross [EMAIL PROTECTED] wrote:
 I can see a reason to have auto generated getters and setters based on 
 a database table (and possibly typed) but you can effectivley do this 
 now with a missing method handler...


 I'm guessing this is based on a table somewhere?

 On Wed, Jun 18, 2008 at 3:26 PM, Cameron Childress 
 [EMAIL PROTECTED]
 wrote:

 On Wed, Jun 18, 2008 at 3:10 PM, Dean H. Saxe 
 [EMAIL PROTECTED] wrote:
  What I would want to is annotate the properties to say whether the 
  getter/setter should be autogenerated, that way it leaves control 
  to the developer.

 If you don't want it autogenerated, just call it private.  It's not 
 generating code in the CFC, just an implicit getter setter.  Would a 
 private get/set that you never even have to look at be good enough?
 Bigger question, what's the use case for a property that you couldn't 
 get/set, even privately?

  I like the idea of the addition of a roles check for authorization 
  to call specific setters/getters.

 Cool.

  Also, is the autogenerated setter/getter secure?  Remember, java 
  passes by value... the value is a reference to the original object 
  except for primitive types, in which case it is a copy of the 
  primitive (e.g.
  String).
   So for object references, if I use the getter to get a CFC 
  reference (e.g.
  myFoo.getBar() returns a Bar CFC), and then modify a property of 
  that CFC using its setter (e.g. bar.setFooBarBlah(blah...)) ... 
  did I just modify the private instance of bar that is held by Foo?  
  This can result in some pretty interesting vulnerabilities...  
  (Yes, this is probably overkill, but why not enquire...)

 In CF, I always assume complex objects (CFCs/Arrays) are always 
 passed by reference.  This is the same as explicit functions where 
 you pass in a CFC in a cfargument tag.

 Frequently, if I have a function that accepts a typed CFC as an 
 argument and the function makes some change to that passed in CFC 
 Instance, I don't even bother returning the modified CFC Instance 
 because it's already been modified by reference.  On these functions 
 I usually just return void and get on with it.

 -Cameron

 --
 Cameron Childress
 Sumo Consulting Inc
 http://www.sumoc.com
 ---
 cell: 678.637.5072
 aim: cameroncf
 email: [EMAIL PROTECTED]


 -
 To unsubscribe from this list, manage your profile @ 
 http://www.acfug.org?fa=login.edituserform

 For more info, see http://www.acfug.org/mailinglists Archive @ 
 http://www.mail-archive.com/discussion%40acfug.org/
 List hosted by http://www.fusionlink.com
 -






 --
 Steven Ross
 web application  interface developer
 http://blog.stevensross.com
 [mobile] 404-488-4364 [fax] (404) 592-6885 [ AIM / Yahoo! : 
 zeriumsteven ] [googleTalk : nowhiding ]
 -
 To unsubscribe from this list, manage your profile @ 
 http://www.acfug.org?fa=login.edituserform

 For more info, see http://www.acfug.org/mailinglists Archive @ 
 http://www.mail-archive.com/discussion%40acfug.org/
 List hosted by FusionLink
 -



--
Cameron Childress
Sumo Consulting Inc
http://www.sumoc.com
---
cell: 678.637.5072
aim: cameroncf
email: [EMAIL PROTECTED]


-
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http