Marc Esher
Member since Dec 11, 2008
- Profile: /members/1381-marc-esher.htm
- URL: http://mxunit.org
- Comments: 34
Recent Blog Comments By Marc Esher
-
Writing My First Unit Tests With MXUnit And ColdFusion
Posted on Jul 11, 2012 at 6:42 PM
Great to see you testing, Ben! One quick note re: the whole "many assertions vs. many tests" subject. DataProviders can really help out here. They're documented at http://wiki.mxunit.org/display/default/Data +driven+testing+with+MXUnit+dataproviders For your scenario, you might have som... read more »
-
Seven Languages In Seven Weeks: Io - Day 2
Posted on Nov 30, 2010 at 3:02 PM
Am I the only one who thinks that Ben's code in *other* languages is more pleasing to look at than his CF code? ;-)... read more »
-
Ben Nadel Will Make You Code - Thanks Dave Dugdale!
Posted on Jan 13, 2010 at 10:14 AM
Excellent!... read more »
-
jQuery's Passes Itself As An Argument To The "Ready" Event Callback
Posted on Sep 24, 2009 at 3:48 PM
Very cool, Ben. Thanks for sharing.... read more »
-
Presenting Ideas vs. Teaching Techniques
Posted on Jul 12, 2009 at 5:06 PM
To your "being funny" point... I'd take "being genuine" over "being funny" any day. In fact, I'd go so far as to say that if you're not a "funny-presenter-type" person by nature, then please don't force it. If I were going to a Ben Nadel presentation, I think the reason I'd be going to it would be ... read more »
-
Presenting Ideas vs. Teaching Techniques
Posted on Jul 12, 2009 at 3:49 PM
Ben, when i read the first few paragraphs of your post, and how the caller scope is unlike any other scope, in my head I was picturing an alien on a telephone. I don't know why. With A-HA! moments, I think it's too much to expect that people will remember the particulars of the A-HA moment. They ... read more »
-
Why My Queries Hate Application Service Layers
Posted on Jun 19, 2009 at 6:07 AM
Ben, i'm not sure if Hal explicitly answered your question, "What's so wrong with inline queries?". But I think what he's saying is that if they're inline, you *prevent* reuse. If they're not inline, you have the *potential* for reuse. I can think of one other reason to keep them separate, and I've... read more »
-
Ability To Leverage ColdFusion Bug Will Mean Errors Later
Posted on Apr 7, 2009 at 2:41 PM
hmmm.... it depends.... read more »
-
OOP Philosophy: Invalid State vs. Invalid Method Call
Posted on Mar 24, 2009 at 1:30 PM
I suspect at the time that's probably the case. At that time, he was a director and was doing very little coding; however, he was responsible for reviewing a lot of the stuff that came from the company to whom we had outsourced a large chunk of the development. The joke at the time was that "everyth... read more »
-
OOP Philosophy: Invalid State vs. Invalid Method Call
Posted on Mar 24, 2009 at 1:20 PM
@Hal, small aside about the "design pattern for this sort of thing". One of the smartest guys I've ever worked with was a longtime Perl programmer, and as he was getting into J2EE (this was back in 02/03), I remember talking on the phone with him and he said "What's with all these damn Factories!?... read more »
-
A Serious CFThread Bug In ColdFusion?
Posted on Jan 22, 2009 at 10:00 AM
but it's not fool-proof. i was curious about this a few weeks ago, and brian rinaldi pointed me to a post on his blog about the problems he encountered with serializing CFCs... read more »
-
A Serious CFThread Bug In ColdFusion?
Posted on Jan 22, 2009 at 9:59 AM
does a deep copy really duplicate CFCs? My guess is yes. This should be pretty easy to test though. stick an instance var and assign it createUUID() in the constructor and then inside the thread, fetch the value so that you can see it. my suspicion is that when you pass in your instance into the c... read more »
-
A Serious CFThread Bug In ColdFusion?
Posted on Jan 22, 2009 at 9:47 AM
not sure if this is related, but according to the cfthread docs, attributes are deep-copied. I wonder if what you think is your single cached instance of that component is in fact being serialized and thus copied into a new version, which is why it's always starting out at 1.... read more »
-
OOPhoto - What Is An Idealized Object?
Posted on Aug 19, 2008 at 9:35 PM
well, peter and marc have settled that matter. next post please, ben! thanks.... read more »
-
OOPhoto - What Is An Idealized Object?
Posted on Aug 19, 2008 at 9:20 PM
the one on the right. definitely.... read more »
-
OOPhoto - Thoughts On Integrating The New Domain Model
Posted on Jul 30, 2008 at 1:57 PM
Peter, I was going to bring up the IBO approach but i didn't think it would work with a flex front end, and if ben's trying to keep this open to use with flex, i wasn't sure how that'd fit in. do IBOs work with flex?... read more »
-
OOPhoto - Thoughts On Integrating The New Domain Model
Posted on Jul 29, 2008 at 11:50 PM
@Joe, you granola-eatin hippie, if you think that way, the terrorists have won! For real though, it's a completely relevant question. I think that's the great thing about Ben's public learning of all of this stuff... it's like it gives a forum for asking that question without fear of recrimination.... read more »
-
OOPhoto - Thoughts On Integrating The New Domain Model
Posted on Jul 29, 2008 at 7:49 PM
ben, to your comment about add/edit screens. Yes, that's where I've been using them, mainly because it saves me from typing a bunch of cfqueryparams like i used to do back in the day when loading a query to drive an add/edit screen. to be honest with you though, i still struggle with this concept o... read more »
-
OOPhoto - Thoughts On Integrating The New Domain Model
Posted on Jul 29, 2008 at 7:35 PM
oh, and one more thought about your gallery detail screen. I wouldn't even see a problem here with running TWO queries... one for the gallery data and one for the photos data: galleryDAO.getGalleryDetails(galleryID) photoDAO.getPhotosForGallery(galleryID) or whatever it is. otherwise, you have t... read more »
-
OOPhoto - Thoughts On Integrating The New Domain Model
Posted on Jul 29, 2008 at 7:29 PM
ugggg, this answer's gonna draw slings and arrows: what do you *like* to do? Like, when you're cranking out pages and making interfaces, how do you like to do this kind of coding? what's enjoyable? here's something i'm wondering: so you create a gallery object, and you fetch 50 photo objects. and ... read more »