Community Member Profile
- Profile: /members/2350-Sean-Corfield.htm
- URL: http://corfield.org/
- Comments: 120
- Points: 422
Recent Blog Comments By Sean Corfield
-
Writing My First Unit Tests With Jasmine And RequireJS
Posted on Jul 8, 2012 at 4:59 PM
@Ben, MXUnit is absolutely best-in-breed for CFML these days.... read more »
-
Writing My First Unit Tests With Jasmine And RequireJS
Posted on Jul 6, 2012 at 10:17 PM
@Brian, No, no!! Use ClojureScript, not CoffeeScript!! :)... read more »
-
Writing My First Unit Tests With Jasmine And RequireJS
Posted on Jul 6, 2012 at 5:15 PM
Go Ben, Go! :) Once you get into the swing of TDD, you'll enjoy it. Writing a test lets you think about how the code needs to perform, a little piece at a time, and as you get into a rhythm of switching between test and code and test and code etc, you'll find you're producing more robust, m... read more »
-
Application Services vs. Infrastructure Services vs. Domain Services
Posted on Jul 2, 2012 at 1:53 PM
@Ben, That's still missing the point of continuous refactoring: you don't take a whole app and refactor it, instead you refactor code as you write it. With a TDD approach, you might write a test (red), write the simplest procedural code to make it pass (green), immediately rewrite that into... read more »
-
Seven Languages In Seven Weeks: Io - Day 1
Posted on Jun 18, 2012 at 12:57 PM
@stefon, Thanx for the clarification. I'd read your "we" as being ascribed to me representing the readership of the blog, hence my objection. Yes, the IT industry as a whole has a problem regarding both the percentage of women in the workplace and the treatment of them. The... read more »
-
Seven Languages In Seven Weeks: Io - Day 1
Posted on Jun 17, 2012 at 7:34 PM
@stefon, I'm not defending him, merely stating facts. You can see that even back in 2007, he was asking folks if/why they were offended and tried to curb his style: http://ww... read more »
-
Seven Languages In Seven Weeks: Io - Day 1
Posted on Jun 14, 2012 at 5:09 PM
@Stefon, it's a long-running "gag" on Ben's blog about his example code and he's blogged about it before (when the occasional person complains about it). It's part his "house style", you might say. He's not likely to change...... read more »
-
Application Services vs. Infrastructure Services vs. Domain Services
Posted on Jun 8, 2012 at 4:14 PM
@Ben, Well, continuous refactoring doesn't take any time if you do it... continuously. It's just part of your normal development process. Refactoring only "takes time" if you don't do it continuously and then you face "The Big Refactor" which, of course, is a scary... read more »
-
Application Services vs. Infrastructure Services vs. Domain Services
Posted on Jun 7, 2012 at 2:48 PM
@Ben, So, you could say that I should refactor when I get to that point. And, I guess what I'm getting at is that, when I DO get to that point, I don't even necessarily know how to refactor - I don't know which choices make more sense - I only know that I have something which is hard to... read more »
-
Application Services vs. Infrastructure Services vs. Domain Services
Posted on Jun 6, 2012 at 8:40 PM
Here's what I had in mind with my last comment: http://corfield.org/articles/mvc-arch.pdf... read more »
-
Application Services vs. Infrastructure Services vs. Domain Services
Posted on Jun 6, 2012 at 8:21 PM
I fear you may be overanalyzing things and making life more complicated for yourself... :) I'm not sure I buy the separation of "application" services from "domain" services. There's just domain entities (business objects) and orchestration services: services that exist... read more »
-
More Thinking About Model-View-Controller (MVC) And Application Architecture
Posted on Jun 6, 2012 at 3:17 PM
@Ben, Uncle Bob is indeed a pillar of the programming world. He's into Clojure these days (as well as Ruby) but he's been around forever and has written some great books: http://www.amazon.co... read more »
-
More Thinking About Model-View-Controller (MVC) And Application Architecture
Posted on Jun 6, 2012 at 1:43 PM
@Ben, "Uncle" Bob Martin is coming at this from a slightly different point of view but if you consider his advice in the functional programming world, it makes perfect sense: just pass back the data that the view needs and just pass in the data that the service needs and you're al... read more »
-
More Thinking About Model-View-Controller (MVC) And Application Architecture
Posted on Jun 5, 2012 at 5:33 PM
And another thing... On domain objects vs data structures (in the context of the view), one of the tenets of functional programming is a focus on the correct data structure that is used, with functionality separated out, and most importantly _immutable_ data. This makes it perfectly safe fo... read more »
-
More Thinking About Model-View-Controller (MVC) And Application Architecture
Posted on Jun 5, 2012 at 5:22 PM
I'm with Steven on being against a literal "session facade" because it really doesn't "encapsulate" anything - your code still refers to SessionFacade everywhere and just calls getters / setters instead of having using a struct (that happens to be called "session").... read more »
-
OOPhoto - A Painful Transition To Object-Based Controllers
Posted on Feb 4, 2011 at 3:05 AM
@jyoseph, That's kinda my point: you trade off the big, bloated, behind the scenes framework against the small, simple, transparent framework. It's all about trade offs :) As for FW/1, yes, there's a skeleton app and half a dozen example apps that can be used as the basis for your own... read more »
-
OOPhoto - A Painful Transition To Object-Based Controllers
Posted on Feb 4, 2011 at 1:05 AM
@jyoseph and others, I find it interesting that there is a push for a simple framework yet a Rails-like framework is what is being suggested. Rails - and cfWheels - include a lot of code, a lot of documentation and a lot of conventions and machinery. Certainly, Rails - and cfWheels -... read more »
-
Seven Languages In Seven Weeks: Prolog - Day 2
Posted on Dec 31, 2010 at 2:10 AM
I finally got around to doing my Prolog homework so I thought I'd post my sorting answer since it's very different to both yours and Noud's: ordered([X],[X]). ordered(L,[P|S]) :- smallest(L,P), append(A,[P|B],L), append(A,B,Q), ordered(Q,S). This makes Prolog do most of the work.... read more »
-
Seven Languages In Seven Weeks: Io - Day 2
Posted on Dec 17, 2010 at 2:07 AM
Since Ben's posting his homework, I decided to post some of mine: http://corfield.org/blog/post.cfm/seven-languages-io-day-2... read more »
-
Exploring ColdFusion Component Runtime Class Properties And Serialization
Posted on Mar 21, 2010 at 3:59 PM
@Elliott, according to Ben's experiment, serializeJSON() doesn't access the private data by default - it doesn't even access the getHair() method - so trying to clone a Girl.cfc via serializeJSON/deserializeJSON wouldn't actually work. @Ben, very interesting approach to modify the component... read more »



