101 reputation
2
bio website midnight-coding.blogspot.com
location Dublin, Ireland
age 37
visits member for 2 years, 11 months
seen Sep 26 '13 at 12:54

I'm quite inquisitive by nature and like to know how things work. I'm always thriving to improve myself by learning something new every day.

Every project I work on I incorporate something I have not tried before, to learn from and see what else is possible.

When I'm not working I enjoy learning about new technologies and gadgets as well as spending time with my family, cycling, reading and gaming.

  • LinkedIn
  • google+
  • blog

  • Jul
    1
    comment Should I use different projects for building different layers in a 3-layer model?
    Why separate Business Logic from the Business Entities? You can add the logic to the entity directly to prevent anyone from circumventing the logic. For example a SubscriberList entity can have a AddSubscriber(Person person) method which can now make sure a person can only be added as a subscriber if Person.Age >= 18. If you have the logic outside the entity you cannot guarantee that the rules is always enforced.
    May
    2
    awarded  Autobiographer
    Aug
    13
    comment Don't Use “Static” in C#?
    Yes, you are right, if an existing culture in an existing project exists it would be more damaging than helping to change the way things are done.
    Aug
    13
    comment Don't Use “Static” in C#?
    If a class is made static for the right reasons and correctly implemented such as for example extension methods they are still testable very much as they would have no external dependencies and are self-contained and as such should not require mocking. Should the need for an interface not be driven by the design requirement to best full-fill a business requirement not for the sake of keeping a pure IoC/DI project?
    Aug
    13
    comment Don't Use “Static” in C#?
    Why would he write tests for 3rd party libraries? Don't you usualy just test your own code assuming the creators of the 3rd party library have done their testing?
    Aug
    13
    comment Don't Use “Static” in C#?
    +1 for mentioning that the statement was to general and mentioning extension methods, which also can be tested and dependencies can still be mocked as far as I know.
    Apr
    29
    awarded  Supporter