Dan Sorensen
Member since Dec 11, 2008
- Profile: /members/612-dan-sorensen.htm
- Comments: 18
Recent Blog Comments By Dan Sorensen
-
ColdFusion Scope Existence During Various Request Types And Events
Posted on Mar 6, 2009 at 12:37 PM
To clarify: AJAX communication to a CFC (let's say with jQuery), would only have access to the application and session scopes if the CFC resides in the same application folder right? Related question: Assuming the CFC is within the same application, is it a horrible idea to directly access the user... read more »
-
OOPhoto - Modeling The Domain In Steps (Round I)
Posted on Jul 10, 2008 at 4:11 PM
...this is straying from the main point, so I'll keep this short. The prior comment about 'Java lite' caught my attention. What are the actual benefits of Coldfusion over Java that we should embrace on these OO projects to not only avoid 'Java lite', but truly get the best of both languages? Once u... read more »
-
OOPhoto - Another Attempt At Learning Object Oriented Programming (OOP) In ColdFusion
Posted on Jul 3, 2008 at 1:31 PM
@Ben: ...a further thought: Am I correct in thinking that only HTML would need to call: galleryService().displayForm() Wouldn't Flex use some other method? I imagine that the controller service could know what type (and source) of the view that was making the calls. Therefore the controller, bas... read more »
-
OOPhoto - Another Attempt At Learning Object Oriented Programming (OOP) In ColdFusion
Posted on Jul 3, 2008 at 1:25 PM
@Ben: But there's the problem. As the JavaWorld article illustrates, there will be crossover somewhere. Should the view know about the model or the model know how to render the model-relevant portion of the view? Maybe it would be best to have a service layer that builds the object relevant portion... read more »
-
OOPhoto - Another Attempt At Learning Object Oriented Programming (OOP) In ColdFusion
Posted on Jul 3, 2008 at 1:14 PM
@Jfish, @Ben, I entirely agree with Ben: I always use cfparam as a good practice for form submissions - however, I don't know how to populate cfparams at the top of the page without breaking OOP concepts. Unless you can ask the object to create it's own params. I agree with jfish that it would be w... read more »
-
OOPhoto - Another Attempt At Learning Object Oriented Programming (OOP) In ColdFusion
Posted on Jul 3, 2008 at 10:46 AM
@Brian, @Ben: Using Brian's suggestion, assuming you pass the form scope to the service layer on save... How do you initially cfparam the form values to begin with? Is cfparam not used? Is it better to do something like this: try{ if (structKeyExists(FORM, "submit") { /* save & validate form v... read more »
-
Indiana Jones And The Kingdom Of The Crystal Skull Starring Harrison Ford
Posted on Jun 12, 2008 at 3:03 PM
I agree that River Phoenix was much better suited for an Indy movie. --- Spoiler alert --- There is a fine line in action movies between exciting action that causes your pulse to race and makes you wonder how the hero will ever make it out alive! (Indy 3: River Phoenix is escaping bad guys on the ... read more »
-
June 1st 2008 - National Regular Expression Day! (Post A Comment, Win A Prize)
Posted on May 28, 2008 at 11:37 AM
If I were to use Regex Buddy, which variation of Regex would I select for Coldfusion? Does it use the Java version?... read more »
-
Array Iteration Is Much Faster That Struct Iteration (Thanks Eric Stevens)
Posted on May 27, 2008 at 11:27 AM
I've always been impressed by the speed and variety of list functions. Another intangible to consider is the fact that list looping is SO EASY to construct and understand. They all have their place, but I'm glad that we don't have to shy away from this one.... read more »
-
CFModule Works With Non-CFM Files
Posted on Feb 26, 2008 at 6:44 PM
Off topic from the post, but possibly useful to the previous comment, I believe that Sean Corfield was working on a project to handle PHP files within Coldfusion using a java library. Might be work looking at if that's something you need.... read more »
-
DreamWeaver CS3 Slows Me Down
Posted on Feb 18, 2008 at 11:30 PM
My job got me Dreamweaver MX 2004 when I started using Coldfusion. I've since gotten Dreamweaver 8 and Dreamweaver CS3 and sadly, I find that Dreamweaver MX 2004 is the fastest and most stable version I've used. :-P I use it as a text editor and it does a nice job with code hints and color coding, b... read more »
-
Creating Web Controls With ColdFusion Custom Tags
Posted on Feb 6, 2008 at 11:23 AM
I LOVE this out of the box thinking. :-) Needs more time in the oven though. ;-) For R&D purposes, it was well worthwhile. It could spark a better idea down the road. It could accept a query as an attribute, but then I guess the XML transformation isn't quite as necessary.... read more »
-
Ask Ben: Ending ColdFusion Session When User Closes Browser
Posted on Jan 29, 2008 at 1:18 PM
Given that some users close their browser RATHER than "logging off", I don't suppose there's a way for me to determine when they've closed their browser and killed their session cookie. If I wanted to run a cleanup function onSessionEnd (to store final user state or update stats), it will still wait... read more »
-
Ray's Friday Puzzler: Listing All Possibilities Of A Set
Posted on Apr 27, 2007 at 2:16 PM
Nice solution. I was working on something very similar by using the exponent to determine total possibilities and two loops, but I got a little stuck towards the end... I'm glad you solved it this way so that I can see where I went wrong. Dan... read more »