CodeBetter.Com
CodeBetter.Com

Browse by Tags

  • Score 1 For Eliminating your hands flight path

    For the last couple of weeks, I have been integrating Vim and a complementary set of tools into my development toolkit. I am firmly on board with what the pragmatic programmers say: "Learn a good editor, and learn it well!!" I am thoroughly impressed with Vim, Viemu etc. Last week I was recommended...
    Posted to Jean-Paul S. Boodhoo (Weblog) by bitwisejp on 04-14-2008
  • BDD Test Naming Macro - Speed Update

    Ever since I received the BDD test naming macro from Scott Bellware last year, it has gone through several iterations of improvements (mostly due to students taking the time to tune up the macro). Of all of the enhancements to the macro, none of them have done as much for the speed of the macro of the...
    Posted to Jean-Paul S. Boodhoo (Weblog) by bitwisejp on 04-14-2008
  • Wrapping up nHibernate in repositories

    In my last post I discussed wrapping up the two core objects of nHibernate, the session manager factory and the session, in a helper class. At the end of the story I briefly mentioned how to use helper objects in a repository. In this post I am further exploring the actual database actions of the helper...
    Posted to Peter's Gekko (Weblog) by pvanooijen on 04-04-2008
  • Wrapping up nHibernate

    In a relative short span of time nHibernate has become a major member of my toolbox. It has become the way to work with a database, not only a small hap-snap apps but it's also making big strides into a constantly evolving system I'm working on. Setting up nHibernate several times has given me...
    Posted to Peter's Gekko (Weblog) by pvanooijen on 03-26-2008
  • Parsing custom dates using ParseExact

    All types in the .Net framework have a Parse method. This takes a string and tries to translate it into a value of the intended type. Like this int i = int .Parse( "7" );   This will throw an exception when the contents of a string cannot be parsed as an integer value. The TryParse method...
    Posted to Peter's Gekko (Weblog) by pvanooijen on 02-28-2008
  • IMapper<Input,Output>

    Got some feedback on my MappingEnumerable post. People wanted to see me leveraging some of the new language features (specifically linq). I can leverage linq to change the extension method to eliminate the need for the MappingEnumerable (which was brought in to mitigate the absence of extension methods...
    Posted to Jean-Paul S. Boodhoo (Weblog) by bitwisejp on 12-20-2007
  • BDD Specification Base Class

    With a newfound interest in leveraging the AutoMockingContainer (credit to James for convincing me of this approach) here is the code for my base class used to write BDD style interaction based tests: public abstract class Specification { private MockRepository mockery; private AutoMockingContainer container;...
    Posted to Jean-Paul S. Boodhoo (Weblog) by bitwisejp on 12-19-2007
  • Nothin But .Net Store (Google Code) Breaking Change

    I just upgraded the project to a VS2008 project and am now starting to demonstrate (and will continue to do so in the new year) how to integrate some of the new language features. This means that if you don’t have .Net 3.5 installed on your machine you will not longer be able to run the NAnt build...
    Posted to Jean-Paul S. Boodhoo (Weblog) by bitwisejp on 12-19-2007
  • MappingEnumerable<T>

    In my infrastructure layer of my projects I regularly include the following interface: public interface IMapper < Input, Output > { Output MapFrom(Input input); } This interface should be fairly self-explanatory, it takes in an item of type Input and spits out an item of type Output. For those...
    Posted to Jean-Paul S. Boodhoo (Weblog) by bitwisejp on 12-19-2007
  • Back to basics, from the DB to a simple domain object

    This post is an extended and revised version of " Back to basics, just reading some data from a DB ". Feedback on that provided more than enough inspiration for this one. Are you already drowning in the enormous amount of TLA's, tools, utilities, methodologies and whatever else ? Let's...
    Posted to Peter's Gekko (Weblog) by pvanooijen on 12-03-2007
Page 1 of 7 (69 items) 1 2 3 4 5 Next > ... Last »