-
All software projects will amass some amount of technical debt. This is not a necessarily bad thing; it is just he cost of doing business. As developers the only thing we can do is try to control/limit the amount of technical debt we build up. If you agree that all software projects build up some amount...
-
Up until a few months ago I had never even attempted to use mocks ( NMock , RhinoMock , etc). Every time I would read about Mocking I thought to myself, this is kinda cool, but seems to be a waste of energy. At the time I saw Mocks as only a way to create ‘placeholders’ for business/data classes. I did...
-
How long can we expect the applications we write to live on? What types of things increase or decrease the shelf life of our applications? Is it practical to suggest that software is only good for a certain period of time? Or should software be able to run for ever? Most products we buy have an expected...
-
Over time we all evolve as a coder, the code we write today is hopefully better then the code we wrote yesterday. In turn, the code we write tomorrow should be better then the 'great code' we wrote today. If this is not the case then we are not learning and evolving as professionals. I have put together...
-
Have you ever needed to make rule changes to an existing application? I am sure you have. Have you ever had to make these changes when you understand the change, but have pretty much no clue about the implementation of the code base you are changing? This is kinda like performing surgery in the dark...
-
I came across this post about writing clean code. Thought I would share.... Found here Enjoy
-
What is Done? Done is when the software has been written to address the requirements. No more, no less. has a suite of tests written to exercise and validate that it meets the requirements and is technically valid. source code has been reviewed by a peer, preferably peers. source code meets the development...
-
We all know that simpler is better when it comes to software development. Any time there is code that is overly complex it makes it hard to test/debug and it is much harder to interpret in the future when changes/enhancements need to be made. There are a few different ways that developers can attempt...
-
I have finally come to the conclusion that no object should be allowed to be constructed in any way that will allow for the object to be setup in an invalid state. Way too often I see an object that uses the empty constructor which then requires the user to ‘guess’ which properties are needed to setup...
-
Since the new version of StructureMap came out a few weeks ago I have been playing around with it to see what it can do. So far I have been very impressed and have been very happy with the support I have received from Jeremy (the author) when I had questions/issues. During my exploring I have been looking...
-
Recently a co-worker of mine (Lou, smart guy… (Lou, your shameless plug)) needed to test a UI control that raised an event upon certain conditions. In order to handle this event he needed to have some way to trap that it was raised. The solution he came up with was simple and elegant.., use an anonymous...
-
It dawned on me the other day while preparing my garden the upcoming season that my vegetable garden and the software applications I work on have more in common then previously thought. Now you may be asking, how is this; one grows vegetables and the other is code. One is organic and the other is digital...
-
I am looking for feedback from the group. I am pretty new to using mocks for my unit tests and I am not sure what the standard approach in the community for usage of mocks in regards to how/where they are stored in your test application. After refactoring some of my tests to use mocks I quickly noticed...
-
I am looking for feedback from the group. I would like to know where others out there draw the line when it comes to using Anonymous Delegates. Personally I like Anonymous Delegates, I think they can be simple and elegant. But I only like to use them if they are simple and easy to read. Basically I tend...
-
Ok, so maybe I am the last person on the planet to learn about this new attribute, but oh well. Last week a co-worker of mine came across this attribute when doing some research and both of us just kinda looked at each other and smiled. See, for a long while now we have been saying how it would be nice...