One thing you realise the more you write code is that the less “moving parts” you have the better or to put it another way the more you put your moving parts into one contained place the better. Pushing items which change or where there will be change in the future to places you can manage is really useful.
Interfaces help a lot here and if you can talk interfaces and just pass the implementation of what you want to do to specific areas, you code is more maintainable.
Continue reading Decoupling Code
LINQ is probably one of the main reasons why I’ve stuck with C#. It’s such a powerful in memory data manipulation namespace in dotNet and the main reason why you can abbreviate tens of lines of code into one.
I’ve accumulated a few queries which I use regularly which I hope you may find useful and which I know I’ll be referring to again. Continue reading LINQ Trinkets
Being a doctor who codes is not as romantic as you would think. You try hard to keep consistent with development but you end up in peaks and troughs of coding rather than a preferred consistent flow. The Surgery work is phenomenal and I’m frantically trying to clear the work load to spend time coding.
Continue reading Frog in a Well & Event Handlers
I had an evening yesterday to do some coding for another GP Surgery and it made me understand it’s not a matter doing the best possible application which is loosely coupled, well designed and future proof but using the right tools for the job.
Continue reading Right Tools for the Job
I’ve been reading up on the Onion Architecture and think it’s a nice way of organising your code leading on to Domain Driven Design. This is my first project for this way of developing and it’s on the back end of a request from a good friend of mine to address a specific problem.
Continue reading Onion Architecture with CsvMapper
I’m getting into really understanding about delegates and thought I’d share my thoughts around this. I’m just touching the surface, but event driven development is something I’ve wanted to do for sometime. In this basic tutorial I’m trying to address the following simple problem.
Continue reading Delegates and Lambdas
I was told by someone that if you put a picture of a cat in your blog, you’ll get instant site views to the sound of “oos” and “aahs”. Unfortunately since the majority of my demographic is probably non-cat loving males, I’m not hedging my bets.
I thought I’d put this post up more for my benefit as a tutorial on interfaces, but I hope others will find it useful. The other reason is that although I’ve seen answers on the internet around this topic, I’ve not really been satisfied with the content which can lack code example code (possibly for the right reasons).
Continue reading Circular Dependencies and Interfaces
My developer friend is google and my best friend is stackoverflow.
Being a bit lazy but more importantly trusting other more knowledgable IT colleagues, I came across this bit of code.
Continue reading Removing Duplicates from a DataTable