Community Member Profile
- Profile: /members/2949-Tony-Nelson.htm
- URL: http://bears-eat-beets.blogspot.com/
- Comments: 28
- Points: 298
Recent Blog Comments By Tony Nelson
-
Crypto.cfc For Hmac-SHA1, Hmac-Sha256, and Hmac-MD5 Code Generation In ColdFusion
Posted on Aug 20, 2012 at 10:20 AM
@Ben, Is there a reason you used underscores to scope your "private" functions rather than actually declare them as private? Was it so you could test them?... read more »
-
ColdFusion 10 - Script vs. Tags And My Coding Methodology
Posted on Mar 29, 2012 at 5:16 PM
@David, As a community member, you could also take it upon yourself to update the open-source varscoper project to fully support cfscript. In fact, I'm pretty sure there are people who have already done so.... read more »
-
ColdFusion 10 - Script vs. Tags And My Coding Methodology
Posted on Mar 28, 2012 at 6:20 PM
@Dan, You're right in that script-based CFCs don't generate output by default, but this is primarily in reference to whitespace. In your case, since you're explicitly calling writeOutput(), it will still output your string.... read more »
-
Experimenting With GitHub Gist-Based Code Samples For My Blog
Posted on Jan 16, 2012 at 11:17 AM
GitHub uses Pygments for its syntax highlighting. http://pygments.org/ https://bitbucket.org/birkenfeld/pygments-main Unfo... read more »
-
Javascript: The Good Parts By Douglas Crockford
Posted on May 18, 2011 at 10:51 AM
And yet you still refuse to capitalize the "S" in JavaScript...... read more »
-
Using Array Comprehensions in Javascript 1.7
Posted on Feb 1, 2011 at 10:21 AM
It might be powerful, but it doesn't read very well to me when compared with more common uses of JS. It looks more like Clojure with all those parentheses...... read more »
-
ColdFusion Custom Tags Cannot Act As ColdFusion Component Mixins
Posted on Jan 4, 2011 at 4:56 PM
@Ben, No it still errors out. Must just be an update to cfdump that's causing the difference in results.... read more »
-
ColdFusion Custom Tags Cannot Act As ColdFusion Component Mixins
Posted on Jan 4, 2011 at 4:13 PM
@Ben, When I run your code and dump caller.this, I see both sayHello() and privateMethod() inside the dump. What version of CF are you running? I'm on 9,0,1,274733.... read more »
-
Overriding Internal ColdFusion Component Variables With Method Arguments
Posted on Aug 24, 2010 at 11:34 AM
This nice scoping "feature" caused me quite a headache trying to upgrade from CF8 to CF9.... read more »
-
THIS Is Just A Locally-Scoped Variable Inside Of ColdFusion User Defined Functions
Posted on Aug 20, 2010 at 10:55 AM
Interesting stuff, although I would probably recommend getting over your OCD and not scoping your call to getMood() like most sane people would do. :P Once again a thought-provoking post. Nice work.... read more »
-
Exploring Mixins And ColdFusion Components
Posted on Oct 31, 2009 at 6:30 PM
@Ben, Sorry I should've followed up to my previous comment. When I first tried using mixins in CF9, it didn't appear as if they would work because none of the functions in the mixin appear if you dump the object. However, the functions work as expected.... read more »
-
Exploring Mixins And ColdFusion Components
Posted on Oct 19, 2009 at 8:54 PM
Have you tried using mixins in CF9 yet? I'll give you a hint: not what you'd expect...... read more »
-
Ask Ben: Displaying A Blog Teaser (Showing The First N Words)
Posted on Sep 23, 2009 at 10:47 AM
Duh. How'd I miss that?... read more »
-
Ask Ben: Displaying A Blog Teaser (Showing The First N Words)
Posted on Sep 23, 2009 at 10:42 AM
While regular expressions are pretty handy, aren't they a little overkill when a simple #left(blogContent,50)# would suffice?... read more »
-
String Data Type Gotcha When Using CFGroovy
Posted on Sep 14, 2009 at 11:15 AM
Looks like you got hung up by a GString, huh?... read more »
-
How Much Should Our ColdFusion Applications Actually Know About ORM?
Posted on Sep 8, 2009 at 4:25 PM
@Ben, If you wanted to, you could create a generic HiberanteDAO that encapsulated ColdFusion's Entity***() methods and inject it into all the services that required the necessary CRUD operations. However, I don't see a huge benefit in adding a DAO layer just for the sake of adding another l... read more »
-
Ask Ben: Creating A PDF And Attaching It To An Email Using ColdFusion
Posted on Sep 4, 2009 at 7:47 PM
I'm not sure why I noticed this, but I like how the cfmail tag is sending the email from info@certificiates.com and the screenshot shows the email coming from info@certiciates.com. What exactly were you trying to spell? Certificates? A little over excited for the long weekend? Aside from th... read more »
-
Building A Simple ColdFusion Dependency Injection Framework
Posted on Aug 19, 2009 at 3:56 PM
@Paulo, Your example does work for smaller applications, but once you get into a larger project with multiple objects, each have various dependencies between to other objects, it becomes rather cumbersome to define all the relationships in your application. Using a dependency injection fram... read more »
-
Building A Simple ColdFusion Dependency Injection Framework
Posted on Aug 18, 2009 at 12:00 PM
@Ben, Yeah I figured it was more for demonstration purposes than anything, but I've never thought about setting it up like that and it was kinda nice to see a new perspective on things. Props.... read more »
-
Building A Simple ColdFusion Dependency Injection Framework
Posted on Aug 18, 2009 at 11:55 AM
That's an interesting take on the Active Record pattern. Most of the time, I would've expected the User object to either extend an ActiveRecord or have a reference to something similar (Reactor?), rather than having a reference to a service that then talks to a DAO to perform the CRUD.... read more »



