On Tuesday, Jun 10, 2003, at 04:56 US/Pacific, E. Keith Dodd wrote:
> Is it a wise rule of thumb, that all else being equal, use CF rather 
> than
> ActionScript where possible? Obviously, would depend on specific 
> situation,
> but in general...?

There is no "general" answer to that (there's rarely a general answer 
to any computing problem). There are always tradeoffs.

Yes, you want to avoid doing too much computation in the client but you 
also want to avoid making too many round-trips to the server since that 
introduces latency and the very click-wait-click sort of thing you're 
presumably moving to Flash to avoid (that HTML suffers from in spades).

So you want to get reasonable chunks of data and do a reasonable amount 
of work on the client.

In your particular example, it would probably make sense for the UI to 
make the decision on whether to display the button rather than 'bleed' 
UI issues into the server-side code. Part of this is MVC-style 
considerations: separating presentation from your business logic so 
that the server-side components are more independent of their 
environment.

See if my article about fa�ades helps:

http://www.macromedia.com/devnet/mx/flashremoting/articles/facades.html
(from memory - apologies in advance if it's wrong!)

Sean A Corfield -- http://www.corfield.org/blog/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to