RE: Procedure and Function (Rambling thought)

2001-04-15 Thread Dave Watts

 A function must return a single value.  What language uses 
 functions that don't?

This is a bit misleading. While most languages limit what functions can
return to a single variable, that variable may well be a complex data
object, like an array.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Procedure and Function (Rambling thought)

2001-04-12 Thread Xing Li

I kinda think the new CF functions as poor man's objects without the
protection and inheritance stuff.

I don't agree with the fact that objects are too complex are not suited for
scripting languages. If used right, they actually save tons of work/time
long term and can actually make our programs run faster especially if the
app is pretty large in scale. After all, objects are created to ease our
programming headaches if used in the right places.

CF/Allaire want to capture the enterprise market which is why they have all
the loadbalancing intergration so that they can make huge profit margins on
the Enterprise editions and the bloated/hugely complex enterprise level
projects demand objects to make life a lot easier.

I wouldn't be surprised if the spotlight feature for CF 6.0 (hopefully the
JSP/pharoh? version) would be objects. It's just a matter of when not if in
my mind.

xing

- Original Message -
Subject: RE: Procedure and Function (Rambling thought)


 I agree! I dont know what the big fuss is about... CF Tags are functions
as
 far as anyone should be concerned - just because they're not implemented
in
 exactly the same way VB, Java, etc implements functions means didley
 squat... I'll be the first to admit that I'am sometimes frustrated by how
CF
 Tags are carried out but more often then not i thank god that they work as
 they do, it makes life so much easier when your output is HTML.

 As for objects - Anyone thinking of using a scripting language to create a
 program that requires objects should be taken out and given a good talking
 to. CF is great as the glue that holds together all the objects that we
need
 to create effective websites (DB connections, Email, Files, Forms, etc)
but
 by no means would i use CF to create something as complicated as a credit
 card transaction gateway - Java is much more nicely designed to do this.

 In short, i think CF has been brilliantly written to create websites
 quickly, effectively and under budget - an equivilent website could take
as
 long as 3 times longer if written in C++ or Java... The right tool for the
 right job - you dont complain when your drill doesnt perform well as a
 hammer.

 Regards,
 Javier

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, April 12, 2001 2:29 PM
  To: CF-Talk
  Subject: RE: Procedure and Function (Rambling thought)
 
 
  Sorry, but my wandering mind's gotten the better of me and I've got a
  concept to throw out for those who might want to chew on an idea (no
  spitting, please... we just washed the floors).
 
  From what I remember from my CS classes (my degree is in
  Electronics, not
  CS) functions and procedures are devices that use either an
  individual or
  multiple attributes to perform some computation.  In the case
  of a function,
  at least one value is returned to the calling process.
  Forgive me if I'm
  reaching a bit here, but doesn't that remind anyone else of a
  custom tag or
  CFX tag?  A procedure doesn't return a value, but simply
  performs an action
  or actions on attributes passed to it.  Taking a bigger
  stretch, doesn't
  that sound a bit like an include?
 
  Now I know, this is getting abstract, but it seems to my
  thought process
  that Allair actually did provide us with a mechanism for
  performing external
  functions that can be used repetively across a wide array of
  applications
  and scopes.  So to throw a kink into the wheel, yes, Cold
  Fusion does have
  functions.  We simply call them something different: Custom Tags.
 
  As for implementing Object Oriented programming concepts,
  that may be a bit
  outside the bounds of what can be done.  In all honesty,
  that's okay.  I
  personally hated OOP... especially when I had a PhD that was
  more interested
  in researching multiprocessor programming concepts than
  teaching, but I
  digress.
 
  Sorry for the rant and the ramble... 19 days nicotine free,
  living with
  in-laws and looking at buying my first house.  All this and I
  haven't had a
  drop of alcohol (yet)!
 
  Enjoy!
  C. Hatton Humphrey
  Cold Fusion Developer
  Fisher, Towne  Associates
  http://www.fishertowne.com
  [EMAIL PROTECTED]
 
  -Original Message-
  Hi Haryono,
 
  if you refer to your previous posts on this issue, and other peoples
  subsequent replies ...
  I'm sure you will notice that CF isn't OOP and we do not make any
  Your post :
  http://www.mail-archive.com/cf-talk@houseoffusion.com/msg49020.html
  My reply :
  http://www.mail-archive.com/cf-talk@houseoffusion.com/msg49023.html
  Please take notice of answers when you post a question.
 
   Hallo,
   How can i use procedure and function in ColdFusion?
   Is this possible to use OOP in ColdFusion?
 
 
 

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk

RE: Procedure and Function (Rambling thought)

2001-04-12 Thread Jeffry Houser

At 12:28 AM 04/12/2001 -0400, you wrote:
 From what I remember from my CS classes (my degree is in Electronics, not
CS) functions and procedures are devices that use either an individual or
multiple attributes to perform some computation.

   ;)  functions must always return one value.  Procedures can return one, 
none, or more than one.  I think that is the only distinction.


In the case of a function,
at least one value is returned to the calling process.  Forgive me if I'm
reaching a bit here, but doesn't that remind anyone else of a custom tag or
CFX tag?  A procedure doesn't return a value, but simply performs an action
or actions on attributes passed to it.  Taking a bigger stretch, doesn't
that sound a bit like an include?

   Well, custom tags are similar to procedures.  Includes are not.  If you 
call an include multiple times in a template it could produce weird side 
effects (or not), depending upon how you wrote the code in the 
include.  There is no way to pass values into, or out of, an include.  They 
are processed as if they were part of the original code.


Jeffry Houser | mailto:[EMAIL PROTECTED]
AIM: Reboog711  | ICQ: 5246969 | Phone: 860-229-2781
--
Instant ColdFusion 5.0  | ISBN: 0-07-213238-8
Due out June 2001
--
DotComIt, LLC
database driven web data using ColdFusion, Lotus Notes/Domino
--
Half of the Alternative Folk Duo called Far Cry Fly
http://www.farcryfly.com | http://www.mp3.com/FarCryFly


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Procedure and Function (Rambling thought)

2001-04-12 Thread Andy Ewings

Functions have the ability to return a value but don't have to.  Procedures
do not return values.

-- 
Andrew Ewings
Project Manager
Thoughtbubble Ltd 
http://www.thoughtbubble.net 
-- 
United Kingdom 
http://www.thoughtbubble.co.uk/ 
Tel: +44 (0) 20 7387 8890 
-- 
New Zealand 
http://www.thoughtbubble.co.nz/ 
Tel: +64 (0) 9 488 9131
-- 
The information in this email and in any attachments is confidential and
intended solely for the attention and use of the named addressee(s). Any
views or opinions presented are solely those of the author and do not
necessarily represent those of Thoughtbubble. This information may be
subject to legal, professional or other privilege and further distribution
of it is strictly prohibited without our authority. If you are not the
intended recipient, you are not authorised to disclose, copy, distribute, or
retain this message. Please notify us on +44 (0)207 387 8890. 



-Original Message-
From: Jeffry Houser [mailto:[EMAIL PROTECTED]]
Sent: 12 April 2001 18:08
To: CF-Talk
Subject: RE: Procedure and Function (Rambling thought)


At 12:28 AM 04/12/2001 -0400, you wrote:
 From what I remember from my CS classes (my degree is in Electronics, not
CS) functions and procedures are devices that use either an individual or
multiple attributes to perform some computation.

   ;)  functions must always return one value.  Procedures can return one, 
none, or more than one.  I think that is the only distinction.


In the case of a function,
at least one value is returned to the calling process.  Forgive me if I'm
reaching a bit here, but doesn't that remind anyone else of a custom tag or
CFX tag?  A procedure doesn't return a value, but simply performs an action
or actions on attributes passed to it.  Taking a bigger stretch, doesn't
that sound a bit like an include?

   Well, custom tags are similar to procedures.  Includes are not.  If you 
call an include multiple times in a template it could produce weird side 
effects (or not), depending upon how you wrote the code in the 
include.  There is no way to pass values into, or out of, an include.  They 
are processed as if they were part of the original code.


Jeffry Houser | mailto:[EMAIL PROTECTED]
AIM: Reboog711  | ICQ: 5246969 | Phone: 860-229-2781
--
Instant ColdFusion 5.0  | ISBN: 0-07-213238-8
Due out June 2001
--
DotComIt, LLC
database driven web data using ColdFusion, Lotus Notes/Domino
--
Half of the Alternative Folk Duo called Far Cry Fly
http://www.farcryfly.com | http://www.mp3.com/FarCryFly
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Procedure and Function (Rambling thought)

2001-04-12 Thread Jeffry Houser


   A function must return a single value.  What language uses functions 
that don't?

   On the other hand, you're write about procedures.  However, procedures 
are (were) often used to modify values of the passed parameters, which is 
what I was referring to below.

At 03:25 PM 04/12/2001 +0100, you wrote:
Functions have the ability to return a value but don't have to.  Procedures
do not return values.

--
Andrew Ewings
Project Manager
Thoughtbubble Ltd
http://www.thoughtbubble.net
--
United Kingdom
http://www.thoughtbubble.co.uk/
Tel: +44 (0) 20 7387 8890
--
New Zealand
http://www.thoughtbubble.co.nz/
Tel: +64 (0) 9 488 9131
--
The information in this email and in any attachments is confidential and
intended solely for the attention and use of the named addressee(s). Any
views or opinions presented are solely those of the author and do not
necessarily represent those of Thoughtbubble. This information may be
subject to legal, professional or other privilege and further distribution
of it is strictly prohibited without our authority. If you are not the
intended recipient, you are not authorised to disclose, copy, distribute, or
retain this message. Please notify us on +44 (0)207 387 8890.



-Original Message-
From: Jeffry Houser [mailto:[EMAIL PROTECTED]]
Sent: 12 April 2001 18:08
To: CF-Talk
Subject: RE: Procedure and Function (Rambling thought)


At 12:28 AM 04/12/2001 -0400, you wrote:
  From what I remember from my CS classes (my degree is in Electronics, not
 CS) functions and procedures are devices that use either an individual or
 multiple attributes to perform some computation.

;)  functions must always return one value.  Procedures can return one,
none, or more than one.  I think that is the only distinction.


 In the case of a function,
 at least one value is returned to the calling process.  Forgive me if I'm
 reaching a bit here, but doesn't that remind anyone else of a custom tag or
 CFX tag?  A procedure doesn't return a value, but simply performs an action
 or actions on attributes passed to it.  Taking a bigger stretch, doesn't
 that sound a bit like an include?

Well, custom tags are similar to procedures.  Includes are not.  If you
call an include multiple times in a template it could produce weird side
effects (or not), depending upon how you wrote the code in the
include.  There is no way to pass values into, or out of, an include.  They
are processed as if they were part of the original code.


Jeffry Houser | mailto:[EMAIL PROTECTED]
AIM: Reboog711  | ICQ: 5246969 | Phone: 860-229-2781
--
Instant ColdFusion 5.0  | ISBN: 0-07-213238-8
Due out June 2001
--
DotComIt, LLC
database driven web data using ColdFusion, Lotus Notes/Domino
--
Half of the Alternative Folk Duo called Far Cry Fly
http://www.farcryfly.com | http://www.mp3.com/FarCryFly

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Procedure and Function (Rambling thought)

2001-04-11 Thread C. Hatton Humphrey

Sorry, but my wandering mind's gotten the better of me and I've got a
concept to throw out for those who might want to chew on an idea (no
spitting, please... we just washed the floors).

From what I remember from my CS classes (my degree is in Electronics, not
CS) functions and procedures are devices that use either an individual or
multiple attributes to perform some computation.  In the case of a function,
at least one value is returned to the calling process.  Forgive me if I'm
reaching a bit here, but doesn't that remind anyone else of a custom tag or
CFX tag?  A procedure doesn't return a value, but simply performs an action
or actions on attributes passed to it.  Taking a bigger stretch, doesn't
that sound a bit like an include?

Now I know, this is getting abstract, but it seems to my thought process
that Allair actually did provide us with a mechanism for performing external
functions that can be used repetively across a wide array of applications
and scopes.  So to throw a kink into the wheel, yes, Cold Fusion does have
functions.  We simply call them something different: Custom Tags.

As for implementing Object Oriented programming concepts, that may be a bit
outside the bounds of what can be done.  In all honesty, that's okay.  I
personally hated OOP... especially when I had a PhD that was more interested
in researching multiprocessor programming concepts than teaching, but I
digress.

Sorry for the rant and the ramble... 19 days nicotine free, living with
in-laws and looking at buying my first house.  All this and I haven't had a
drop of alcohol (yet)!

Enjoy!
C. Hatton Humphrey
Cold Fusion Developer
Fisher, Towne  Associates
http://www.fishertowne.com
[EMAIL PROTECTED]

-Original Message-
Hi Haryono,

if you refer to your previous posts on this issue, and other peoples
subsequent replies ...
I'm sure you will notice that CF isn't OOP and we do not make any
Your post :
http://www.mail-archive.com/cf-talk@houseoffusion.com/msg49020.html
My reply :
http://www.mail-archive.com/cf-talk@houseoffusion.com/msg49023.html
Please take notice of answers when you post a question.

 Hallo,
 How can i use procedure and function in ColdFusion?
 Is this possible to use OOP in ColdFusion?


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Procedure and Function (Rambling thought)

2001-04-11 Thread Jared Clinton

Another rambling thought follows:

Haryono my apologies, your question wasn't exactly the same as the original
one.

You can USE procedures and functions THROUGH any of the extensability that
CF offers,

CORBA
COM
Java
C++
Delphi

Although cf has no concept of a 'procedure' or 'function'. 

It does have an equivalent, 'tags', it is a tag based scripting language,
making it easy for people to not think to hard about things if they dont
want to. 

Jared Clinton.
(I've got tooo many 2cents!)


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, 12 April 2001 14:29
 To: CF-Talk
 Subject: RE: Procedure and Function (Rambling thought)
 
 
 Sorry, but my wandering mind's gotten the better of me and I've got a
 concept to throw out for those who might want to chew on an idea (no
 spitting, please... we just washed the floors).
 
 From what I remember from my CS classes (my degree is in 
 Electronics, not
 CS) functions and procedures are devices that use either an 
 individual or
 multiple attributes to perform some computation.  In the case 
 of a function,
 at least one value is returned to the calling process.  
 Forgive me if I'm
 reaching a bit here, but doesn't that remind anyone else of a 
 custom tag or
 CFX tag?  A procedure doesn't return a value, but simply 
 performs an action
 or actions on attributes passed to it.  Taking a bigger 
 stretch, doesn't
 that sound a bit like an include?
 
 Now I know, this is getting abstract, but it seems to my 
 thought process
 that Allair actually did provide us with a mechanism for 
 performing external
 functions that can be used repetively across a wide array of 
 applications
 and scopes.  So to throw a kink into the wheel, yes, Cold 
 Fusion does have
 functions.  We simply call them something different: Custom Tags.
 
 As for implementing Object Oriented programming concepts, 
 that may be a bit
 outside the bounds of what can be done.  In all honesty, 
 that's okay.  I
 personally hated OOP... especially when I had a PhD that was 
 more interested
 in researching multiprocessor programming concepts than 
 teaching, but I
 digress.
 
 Sorry for the rant and the ramble... 19 days nicotine free, 
 living with
 in-laws and looking at buying my first house.  All this and I 
 haven't had a
 drop of alcohol (yet)!
 
 Enjoy!
 C. Hatton Humphrey
 Cold Fusion Developer
 Fisher, Towne  Associates
 http://www.fishertowne.com
 [EMAIL PROTECTED]
 
 -Original Message-
 Hi Haryono,
 
 if you refer to your previous posts on this issue, and other peoples
 subsequent replies ...
 I'm sure you will notice that CF isn't OOP and we do not make any
 Your post :
 http://www.mail-archive.com/cf-talk@houseoffusion.com/msg49020.html
 My reply :
 http://www.mail-archive.com/cf-talk@houseoffusion.com/msg49023.html
 Please take notice of answers when you post a question.
 
  Hallo,
  How can i use procedure and function in ColdFusion?
  Is this possible to use OOP in ColdFusion?
 
 

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Procedure and Function (Rambling thought)

2001-04-11 Thread Javier Woodhouse

I agree! I dont know what the big fuss is about... CF Tags are functions as
far as anyone should be concerned - just because they're not implemented in
exactly the same way VB, Java, etc implements functions means didley
squat... I'll be the first to admit that I'am sometimes frustrated by how CF
Tags are carried out but more often then not i thank god that they work as
they do, it makes life so much easier when your output is HTML.

As for objects - Anyone thinking of using a scripting language to create a
program that requires objects should be taken out and given a good talking
to. CF is great as the glue that holds together all the objects that we need
to create effective websites (DB connections, Email, Files, Forms, etc) but
by no means would i use CF to create something as complicated as a credit
card transaction gateway - Java is much more nicely designed to do this.

In short, i think CF has been brilliantly written to create websites
quickly, effectively and under budget - an equivilent website could take as
long as 3 times longer if written in C++ or Java... The right tool for the
right job - you dont complain when your drill doesnt perform well as a
hammer.

Regards,
Javier

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 12, 2001 2:29 PM
 To: CF-Talk
 Subject: RE: Procedure and Function (Rambling thought)
 
 
 Sorry, but my wandering mind's gotten the better of me and I've got a
 concept to throw out for those who might want to chew on an idea (no
 spitting, please... we just washed the floors).
 
 From what I remember from my CS classes (my degree is in 
 Electronics, not
 CS) functions and procedures are devices that use either an 
 individual or
 multiple attributes to perform some computation.  In the case 
 of a function,
 at least one value is returned to the calling process.  
 Forgive me if I'm
 reaching a bit here, but doesn't that remind anyone else of a 
 custom tag or
 CFX tag?  A procedure doesn't return a value, but simply 
 performs an action
 or actions on attributes passed to it.  Taking a bigger 
 stretch, doesn't
 that sound a bit like an include?
 
 Now I know, this is getting abstract, but it seems to my 
 thought process
 that Allair actually did provide us with a mechanism for 
 performing external
 functions that can be used repetively across a wide array of 
 applications
 and scopes.  So to throw a kink into the wheel, yes, Cold 
 Fusion does have
 functions.  We simply call them something different: Custom Tags.
 
 As for implementing Object Oriented programming concepts, 
 that may be a bit
 outside the bounds of what can be done.  In all honesty, 
 that's okay.  I
 personally hated OOP... especially when I had a PhD that was 
 more interested
 in researching multiprocessor programming concepts than 
 teaching, but I
 digress.
 
 Sorry for the rant and the ramble... 19 days nicotine free, 
 living with
 in-laws and looking at buying my first house.  All this and I 
 haven't had a
 drop of alcohol (yet)!
 
 Enjoy!
 C. Hatton Humphrey
 Cold Fusion Developer
 Fisher, Towne  Associates
 http://www.fishertowne.com
 [EMAIL PROTECTED]
 
 -Original Message-
 Hi Haryono,
 
 if you refer to your previous posts on this issue, and other peoples
 subsequent replies ...
 I'm sure you will notice that CF isn't OOP and we do not make any
 Your post :
 http://www.mail-archive.com/cf-talk@houseoffusion.com/msg49020.html
 My reply :
 http://www.mail-archive.com/cf-talk@houseoffusion.com/msg49023.html
 Please take notice of answers when you post a question.
 
  Hallo,
  How can i use procedure and function in ColdFusion?
  Is this possible to use OOP in ColdFusion?
 
 

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists