Peter Bell
Member since Dec 11, 2008
- Profile: /members/1239-peter-bell.htm
- URL: http://www.pbell.com
- Comments: 55
Recent Blog Comments By Peter Bell
-
My BFusion / BFLEX Keynote Address
Posted on Oct 26, 2009 at 5:32 PM
Awesome - sorry I missed the conference - sounds like a winner of a keynote!... read more »
-
Learning ColdFusion 9: From SQL To ORM - A Conceptual Shift In Relationships
Posted on Aug 3, 2009 at 2:07 PM
Hey Ben, I think part of the problem you are having here is that you're taking SQL and trying to turn it into ORM. While that is part of the process, ORM will make a lot more sense if you start with a clean object model. Have a look at your db schema (the data and where you are coming from), look a... read more »
-
Hal Helms - Real World Object Oriented Development, Sarasota - Day Three
Posted on Feb 27, 2009 at 2:44 PM
I have a getByFilter() base method as it abstracts a number of implementation details. However, usually I'll create a getNewUsers() method or getBlueCars() or whatever. Both describe intent clearly, provide a good api and under the hood call getByFilter() so I can create the methods in one line inst... read more »
-
Way Of The Peaceful Warrior - Living In The Moment, Letting Go Of The Future
Posted on Jan 12, 2009 at 4:12 PM
Hey Ben, If you want to find a place to get a little experience of sitting., check out the New York Shambhala center. Not specifically religious and they have good intro to meditation sessions. If you ever want to roll over together, let me know. I haverm't been there in forever, so I could probably... read more »
-
Way Of The Peaceful Warrior - Living In The Moment, Letting Go Of The Future
Posted on Jan 12, 2009 at 6:52 AM
I've been meaning to watch the movie for a while, but I've read the book a few times over the years (the sequel is worth a read too). There's a reason they put so much Tai-chi and meditation and the like in the book - those are tools for getting a little more awareness of your mind. I find that if m... read more »
-
Project HUGE: Active Release Technique (ART) With Dr. Christopher Anselmi In NYC
Posted on Dec 30, 2008 at 3:37 PM
w00t - congrats man! Great stuff!... read more »
-
Generating Random Passwords In ColdFusion Based On Sets Of Valid Characters
Posted on Dec 3, 2008 at 11:38 AM
Thanks man - just needed this for a quick data conversion project. Worked like a charm (once I got rid of the white space which was hurting my eyes :-)) Thanks!... read more »
-
Comprehensive ColdFusion Component OnMissingMethod() Testing
Posted on Nov 20, 2008 at 12:11 AM
@Ben, Yeah, the only way oMM() works in Adobe ColdFusion internally is if you use the THIS scope. I don't really love that from a clarity/clutter perspective, I prefer doXXX() within an object to THIS.doXXX(). Interestingly, this works "properly" in Railo. Not tried it in OpenBD. Maybe they'll chan... read more »
-
Object Oriented Programming And ColdFusion - What's The Point?
Posted on Oct 27, 2008 at 12:05 PM
@Ben, I think another important point to make here is that not only are we not modeling idealized real world objects because of technical considerations (we need to model the behavior required to implement the essential user stories - not the whole universe of possible behavior), but in addition to... read more »
-
Object Oriented Programming And ColdFusion - What's The Point?
Posted on Oct 27, 2008 at 11:58 AM
@Ben, I hear what you're saying, but my argument has for a long time been that in practice OO provides for greater maintainability but NOT for greater reuse and this seems to be a pretty common opinion. I wrote something about this a while ago: http://www.pbell.com/index.cfm/2006/6/26/Maintenance-... read more »
-
Object Oriented Programming And ColdFusion - What's The Point?
Posted on Oct 27, 2008 at 11:48 AM
@Matt . . . continued . . . I never ask myself whether a real world page will know how to display itself or whether a real world newsletter will know how to publish itself. Why would I care? Why would that be important to me? What value does asking that question provide me with? Rather I ask whet... read more »
-
Object Oriented Programming And ColdFusion - What's The Point?
Posted on Oct 27, 2008 at 11:44 AM
@Matt, I find my objects start getting behavior when the data isn't quite enough to describe everything. It starts simply when I need a DisplayPrice for my Product. It might encapsulate simple logic (If DiscountPrice > 0, return DiscountPrice, else return BasePrice). In my cart, the ItemTotalPric... read more »
-
Object Oriented Programming And ColdFusion - What's The Point?
Posted on Oct 27, 2008 at 11:33 AM
@Ben, A few comments! > one of the big payoffs of it is that we can reuse our code in different systems within in the same domain I completely disagree. Just because you are modeling the same class of real world object in two systems it is quite likely that they'll actually have different behav... read more »
-
Object Oriented Programming And ColdFusion - What's The Point?
Posted on Oct 27, 2008 at 11:08 AM
I don't see pure OO as a goal or a target. It is one way of looking at an application that may help you to do a better job of putting behavior alongside your data (which typically is good from an encapsulation and information hiding perspective). Some of the stuff like domain objects not being abl... read more »
-
OOPhoto - What Is An Idealized Object?
Posted on Aug 19, 2008 at 9:26 PM
@Marc, Nice to see you get straight to the heart of the matter :-) Oh, and yeah, +1 for the one on the right.... read more »
-
OOPhoto - What Is An Idealized Object?
Posted on Aug 19, 2008 at 9:24 PM
Sounds like a pretty good rule of thumb. In the CF world, you'll often see the getMostPopularArticles() type methods dropping into an ArticleService class which relates to a collection of Articles (getRelatedArticles() may return a collection, but it's all about the Article in the same way that getO... read more »
-
OOPhoto - No More Validation In The Controller
Posted on Aug 14, 2008 at 6:23 PM
Hi Ben, I get that certain validations may depend on calls to the service class, but I'm with Brian. Going back to the Single Responsibility Principle, I'd look at having a validation object composed within the bean. It will indeed need to have access to the service class for any validations across ... read more »
-
OOPhoto - Almost An Object Oriented ColdFusion Application
Posted on Aug 7, 2008 at 12:33 PM
I think you've broken the back of it. There will continue to be more refinements, but once you have something working with service classes and objects being passed around and the idea of composed objects, you have a structure to fit everything else within. The other biggies that may seem like a bit ... read more »
-
OOPhoto - Almost An Object Oriented ColdFusion Application
Posted on Aug 7, 2008 at 11:42 AM
Congratulations - looks like you're starting to get a handle on the process and the trade offs and the like. Definitely easier just giving it a go and seeing what works or doesn't - like deciding in your case that DAOs/gateways aren't yet required until you have multiple data sources or your service... read more »
-
OOPhoto - Thoughts On Integrating The New Domain Model
Posted on Jul 31, 2008 at 4:29 PM
@Gareth, This is probably a good starting point: http://www.pbell.com/index.cfm/2007/8/13/IBO-Sample-Code although there are quite a few links worth looking at: http://www.google.com/search?q=%22iterating+business+object%22&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a... read more »