Russ
Member since Sep 1, 2009
- Profile: /members/4222-russ.htm
- URL: http://cfruss.blogspot.com
- Comments: 9
Recent Blog Comments By Russ
-
Using Underscore.js Templates To Render HTML Partials
Posted on Aug 17, 2012 at 12:29 PM
Underscore's boatload of useful functions is exactly why I wrote Underscore.cfc: http://russplaysguitar.github.com/UnderscoreCF/ I didn't implement templating though, since there is already a CF version of Mustache: https://github.com/pmcelhaney/Mustache.cfc... read more »
-
Writing My First Unit Tests With MXUnit And ColdFusion
Posted on Jul 10, 2012 at 10:14 PM
Ben, If you want to learn more about other tools and languages, I highly recommend finding open source projects that use them and trying to contribute. I've spent the past year diversifying my skill set by making contributions (however small) to lots of different github projects in languages that I... read more »
-
Writing My First Unit Tests With MXUnit And ColdFusion
Posted on Jul 10, 2012 at 4:53 PM
Ben- Why haven't you written any unit tests before? I'm sure you knew they existed...? The next step is for you to integrate unit tests with your build process. I haven't done this yet with CFML, but I plan on doing so soon using ANT: http://wiki.mxunit.org/display/default/Ant +Task+Doc Good luc... read more »
-
Using CFML Files To Pre-Process CFM Files In ColdFusion
Posted on Dec 28, 2010 at 8:43 PM
@Ben Does this type of problem make you want to work in other languages that have more syntactic sugar? [ ] yes [ ] no [ ] maybe... read more »
-
Using CFML Files To Pre-Process CFM Files In ColdFusion
Posted on Dec 28, 2010 at 5:10 AM
@Peter is this what you were thinking? http://pastebin.com/sENPFkJP I bet Ben has already blogged about passing functions as arguments like that though, so he had to try to out-genius himself with this post. I agree it would be cool to have native support for lamda. ::sigh:: Someday...... read more »
-
Using CFParam To Define A Variable Number Of Arguments In ColdFusion (And What ColdFusion 9 Teaches Us)
Posted on Nov 18, 2009 at 2:27 PM
fn() fn( to ) fn( from, to ) This gets into method overloading, which is one of CF's limitations. Using method overloading in other languages, you'd be able to define two separate functions with the same name within a class to handle fn(to) and fn(from, to). CF just isn't built that way (yet). It... read more »
-
Using CFParam To Define A Variable Number Of Arguments In ColdFusion (And What ColdFusion 9 Teaches Us)
Posted on Nov 17, 2009 at 2:40 PM
Sorry to repeat it Ben, but named arguments really is the bee's knees. I took a PHP class recently and all the example code used ordered arguments, which got totally insane as the examples increased in complexity. I had sworn off PHP entirely until I realized you could pass in a single argument co... read more »
-
Exploring IIS Mod-Rewrite For Rewriting URLs In A ColdFusion Application
Posted on Sep 1, 2009 at 6:07 PM
Ben, I'm wondering if using "$404" as a URL key is a good idea. I worry that search engines might consider a url containing "404" as a broken link. I'm not sure, but you should look into it. Why use "$404" as the URL key anyways? Why not "$rewrite=" or something? "404" is kind of a misnomer in thi... read more »