Community Member Profile
- Profile: /members/8409-Matt-Osbun.htm
- Comments: 13
- Points: 131
Recent Blog Comments By Matt Osbun
-
Writing My First Unit Tests With Jasmine And RequireJS
Posted on Jul 6, 2012 at 4:31 PM
@Ben, That's how Rhino Mocks works. It also keeps track of how many times something runs, such as in my project where I populate a Queue from the database, process the items, dequeueing them add they're handled, and them check for more records in the database. The method that retrieves reco... read more »
-
Writing My First Unit Tests With Jasmine And RequireJS
Posted on Jul 6, 2012 at 4:22 PM
That's supposed to read "even to the point...". Stupid autocorrect.... read more »
-
Writing My First Unit Tests With Jasmine And RequireJS
Posted on Jul 6, 2012 at 4:20 PM
I just kicked off a project at work incorporating TDD with Rhino Mocks, which also let's me define expectations, Webern to the point of making sure that only the expected methods run and nothing else. Really looking forward to seeing how this goes.... read more »
-
More Thinking About Model-View-Controller (MVC) And Application Architecture
Posted on Jun 5, 2012 at 3:23 PM
@Ben If you have parts of an application that use session variables that you want hidden from other parts, try subclassing the SessionWrapper.... read more »
-
More Thinking About Model-View-Controller (MVC) And Application Architecture
Posted on Jun 5, 2012 at 12:12 PM
"Spelled-out more bluntly, nothing in your Domain Model should make a reference to Sessions (or URL, or FORM, or CGI for that matter)." I always build an adapter for the session scope, and simply tell the development team to never access it directly. This solves a few proble... read more »
-
Thinking About Data Gateways, Collections, And Raising Exceptions
Posted on May 30, 2012 at 12:44 PM
"But, handling NULL objects in ColdFusion feels like a bit of a burden." Yeah- it did to me, too. To the point where I started building null.cfc and then realizing that I was overreacting. :) "I'm just saying that an exception could make it easier since the transactiona... read more »
-
Thinking About Data Gateways, Collections, And Raising Exceptions
Posted on May 30, 2012 at 10:42 AM
"Any data access request for a single object based on ID (ex. Read, Update, Delete) should raise a "DataAccessException" if the target record cannot be found." I really have to disagree. To me, a DataAccessException would indicate that there's a problem with the query it... read more »
-
Creating Service Objects And Value Objects In A Dependency Injection (DI) Framework
Posted on May 10, 2012 at 12:42 PM
Odd that I'm currently working through much the same issue while developing some standards for Unit Testing. And with much the same recommendations: heavier reliance on DI and factories while avoiding objects instantiated within a method using the "new" keyword. As a result, thoug... read more »
-
The 4th Annual Regular Expression Day (And Prizes) - June 1st, 2011
Posted on Jun 1, 2011 at 8:33 PM
@Ben: LINQ is a .Net technology that lets you join and query object using an SQL-like syntax. So, for instance, I could do the following: List<string> fileNames = ( from rule in db.FileRules //A database table join file in new DirectoryInfo("some path&qu... read more »
-
The 4th Annual Regular Expression Day (And Prizes) - June 1st, 2011
Posted on Jun 1, 2011 at 4:43 PM
@Anna: Yeah, I probably could, but this is more functional than fun. I've got an idea in mind- I just need to find time to fire up GIMP, overlay a RegEx over the image I've got picked out, and upload. Going more for "funny" than "complex". Although 2 weeks before a... read more »
-
The 4th Annual Regular Expression Day (And Prizes) - June 1st, 2011
Posted on Jun 1, 2011 at 4:20 PM
By the way, how appropriate is this- I've been rocking the regular expressions all day. Using C# (Yeah, I know- it's a M$ platform), LINQ, and RegEx to launch processes with certain behaviors based on masks that match files coming in to an FTP server.... read more »
-
The 4th Annual Regular Expression Day (And Prizes) - June 1st, 2011
Posted on Jun 1, 2011 at 8:02 AM
@Ben- I've had a couple of ideas in the back of my head ever since I missed RegEx Day *last* year. I'll see if I can get an image put together sometime tonight.... read more »
-
The 4th Annual Regular Expression Day (And Prizes) - June 1st, 2011
Posted on May 31, 2011 at 8:41 PM
Nuts- I somehow just found out about this tonight. There's no way I'm making the deadline.... read more »



