Community Member Profile
- Profile: /members/1851-Ben-Nadel.htm
- URL: http://www.bennadel.com
- Twitter: @bennadel
- FaceBook: http://www.facebook.com/bennadel
- Comments: 10,640
- Points: 69,065
Recent Blog Comments By Ben Nadel
-
Building A Twitter-Inspired RESTful API Architecture In ColdFusion
Posted on Feb 8, 2012 at 10:32 AM
@Andy, Ah, very cool. FW/1 really seems to be quite well-rounded these days!... read more »
-
Using jQuery Deferred To Chain Validation Rules In An Asynchronous, Non-Blocking Environment
Posted on Feb 6, 2012 at 10:41 AM
@All, I tried factoring out the core concept here - chaining asynchronous methods - into it's own jQuery plugin, $.whenSync(): read more »
-
Changing The Execution Context Of Your Self-Executing Function Blocks In JavaScript
Posted on Feb 3, 2012 at 2:28 PM
@Michael, You definitely make a good point (and extra points for quoting movies - I love movies). When you use a return() statement to define the object's public API, it does provide a consistent and quickly findable place for the method list. On one hand, I *want* to say that you s... read more »
-
REST API Design Rulebook By Mark Masse
Posted on Feb 3, 2012 at 1:10 PM
@Jordan, Yeah, WRML was created by Mark Masse (author of the book). I also found it to be a bit convoluted. I suppose it is intended to allow the Client to be able to programmaticaly respond to changes in the API (as opposed to versioning the API or hardcoding values in the client code)...... read more »
-
ColdFusion Supports HTTP Verbs PUT And DELETE (As Well As GET And POST)
Posted on Feb 3, 2012 at 1:08 PM
@Jason, To be honest, I don't have good answers for that kinds of stuff. And, to the point, that is specifically why I *really* liked the REST API Design Rulebook by Mark Masse - he just cuts through the shoulda/coulda and says, "This is how you do it." More than anything, I just... read more »
-
ColdFusion Supports HTTP Verbs PUT And DELETE (As Well As GET And POST)
Posted on Feb 3, 2012 at 10:49 AM
@Andy, The HEAD request is the one that that I don't really know what to do with, yet. It just seems like a strange verb. Is it supposed to get the HTTP headers only? Or is it supposed to get meta-data about the Resource as well. Confusing.... read more »
-
REST API Design Rulebook By Mark Masse
Posted on Feb 2, 2012 at 10:12 AM
I forgot to include a link to the Intenet Assigned Numbers Authority: http://www.iana.org/assignments/media-types/index.html It's seems pretty comprehensive. In the book Masse points ou... read more »
-
Use A Return Statement When Invoking Callbacks, Especially In A Guard Statement
Posted on Feb 1, 2012 at 11:25 AM
@David, Ah, I see what you're saying. Definitely, if it came down to simply calling one or the other, the ternary operator would be nice.... read more »
-
Use A Return Statement When Invoking Callbacks, Especially In A Guard Statement
Posted on Feb 1, 2012 at 11:13 AM
@David, Can you expand on that? I am not sure what you mean?... read more »
-
Use A Return Statement When Invoking Callbacks, Especially In A Guard Statement
Posted on Feb 1, 2012 at 11:09 AM
@Steve, I think using a single Return statement at the end of your function works well because it is a "rule." I'm not sure there is anything implicitly more valuable about it other than that. After all, the placement of a return variable doesn't shed any insight into where / how... read more »
-
Branching Logic vs. Guard Logic When It Comes To Function Control Flow
Posted on Feb 1, 2012 at 10:24 AM
@All, I know this thread is old, but I've been recently making a lot of mistakes in an asynchronous workflow when I forget to use return(): read more »
-
Using jQuery Deferred To Chain Validation Rules In An Asynchronous, Non-Blocking Environment
Posted on Jan 31, 2012 at 3:36 PM
@Jonathan, It really does sound "epic". I'll try to play around with it. If nothing else, it sounds like it will help me get more comfortable with a lot of deployment-oriented workflow items (which is always good!).... read more »
-
Using jQuery Deferred To Chain Validation Rules In An Asynchronous, Non-Blocking Environment
Posted on Jan 31, 2012 at 1:37 PM
@Jonathan, I have to say that Cloud9 looks pretty awesome! I'll have to investigate further. One of my biggest concerns right now, with Node.js, is deployment in general. I think the "cool" move is to deploy to GitHub and then to "pull/push" from GitHub to produc... read more »
-
Using jQuery's Pipe() Method To Chain Asynchronous Validation Requests
Posted on Jan 31, 2012 at 10:47 AM
@All, I've expanded on this point approach, wrapping it up into a more structured jQuery plugin called $.validate(): read more »
-
Creating A Private Scope By Extending The Public THIS Scope In JavaScript
Posted on Jan 26, 2012 at 5:55 PM
@Rob, More than anything, this was just an experiment. In reality, if I make "private" variables, I tend to go with "convention" over actual functionality - leading with an underscore: _privateVar: "" publicVar: "" That said, Object... read more »
-
Managed Dependencies vs. Dependency Injection In RequireJS
Posted on Jan 26, 2012 at 11:45 AM
@Dusty, I've heard good things about AngularJS, but have not tried it yet. Sounds very interesting, though.... read more »
-
Managed Dependencies vs. Dependency Injection In RequireJS
Posted on Jan 26, 2012 at 11:45 AM
@Dusty, Ah, I think I see our disconnect. I'm *not* calling RequireJS a dependency injector. Just the opposite. I'm saying that the Application (which instantiates classes and provides them to subsequent class _constructors_) is the dependency injector. RequireJS, I'm saying is just... read more »
-
Managed Dependencies vs. Dependency Injection In RequireJS
Posted on Jan 26, 2012 at 10:33 AM
@All, I've slightly extended this conversation to the context of sub-classing in a RequireJS context: http://www.bennadel.c... read more »
-
Managed Dependencies vs. Dependency Injection In RequireJS
Posted on Jan 26, 2012 at 8:55 AM
@Dusty, Unless I'm reading it wrong, the Wikipedia page appears to support what I am saying: " In its simplest implementation, code that creates a dependent object supplies dependencies to that object via constructor arguments or by setting properties on the object. "... read more »
-
Managed Dependencies vs. Dependency Injection In RequireJS
Posted on Jan 25, 2012 at 3:30 PM
@James, Thanks! I'm really loving this RequireJS stuff you created! I think it's completely reinvigorated my interest in JavaScript - helping me take my vision, understanding, and deep-thinking to the next level! You rock :) There's something that I love about dealing with Constructo... read more »



