Andrew Scott
Member since Feb 25, 2010
- Profile: /members/5529-andrew-scott.htm
- URL: http://www.andyscott.id.au/
- Comments: 10
Recent Blog Comments By Andrew Scott
-
Exceptions Are For Exceptional Circumstances Is Not A Value-Add Answer
Posted on Nov 2, 2014 at 11:27 AM
Ben, That's the sort of thing that I do as well, for example, if we go back to my earlier example. There are times when we throw an exception deliberately, with specific values. One is to identify the function and the other is to identify the reason/severity, as in the example I posted earlier, the... read more »
-
Exceptions Are For Exceptional Circumstances Is Not A Value-Add Answer
Posted on Nov 1, 2014 at 3:48 PM
@Steve, Tone! I think throwing a 500 server error is stupid, but as the post was about the way we think about the use of exceptions and not whether we capture them or not, I think it is fair to say that we should not need any excuse or reason to throw an exception that we need to catch later. I a... read more »
-
Exceptions Are For Exceptional Circumstances Is Not A Value-Add Answer
Posted on Nov 1, 2014 at 1:17 PM
A well-designed app handles exceptions and errors to prevent app crashes. For example public function ReadAll(fileToRead) { try { if (fileToRead == null || fileToRead == "") { Debug.Log("Idiot you must pass a valid filename to use!!")... read more »
-
Exceptions Are For Exceptional Circumstances Is Not A Value-Add Answer
Posted on Nov 1, 2014 at 7:22 AM
I am with Adam. When I learnt programming back in the late 80's, that was the one thing that was drummed into my head. If your block of code can error, then you need to throw the right exception and handle it upstream. Can you imagine clients connecting remotely, then the application errors, but t... read more »
-
getHttpRequestData() Throws NullPointerException When Invoked After ColdFusion Request Has Ended
Posted on Jan 10, 2014 at 10:35 PM
@Aaron, well personally I would expect the actual request scope to not be available. But others like cgi and application are available, but under certain conditions it appears that they don't.... read more »
-
getHttpRequestData() Throws NullPointerException When Invoked After ColdFusion Request Has Ended
Posted on Jan 9, 2014 at 10:00 AM
@Ben - Yep.. Which is why Open Sourcing the Engine would be a great idea. When we find things like this we can fix and resubmit... Only wish Adobe understood that... Then bugs like this would not be around for 5+ years.... read more »
-
getHttpRequestData() Throws NullPointerException When Invoked After ColdFusion Request Has Ended
Posted on Jan 9, 2014 at 9:51 AM
@Ben, the worst part is trying to track it down. It is intermittent and I am not sure what causes it. But I think it has something to do with var settings = getApplicationMetadata(); as this is the line it fails on, yes this is sometimes being called from a thread. Now when I (look away when I s... read more »
-
getHttpRequestData() Throws NullPointerException When Invoked After ColdFusion Request Has Ended
Posted on Jan 8, 2014 at 8:42 PM
This is a bug, I have also seen other errors with threads similar to this, some with the cgi scope and logging using threads and ColdFusion ORM throwing null pointers when using threads. There is a bug raised for this, just don't have the number of the top of my head. But it appears that when the r... read more »
-
Using jQuery To Bind And Trigger Event Handlers On Detached DOM Nodes
Posted on Aug 28, 2010 at 4:27 AM
You have me a little curious as to what benefits having an element not attached to the DOM will bring too.... read more »
-
Using Appropriate Status Codes With Each API Response
Posted on Feb 25, 2010 at 5:32 AM
Ben, first nice post. I have done the same thing for years, but I actually never thought about returning status codes. I would a struct method that would define ok or failed, then it would be upto the client to then decide from there what to do. I might have a rethink, as this does seem a bit easi... read more »