Please first read Part one of the simple producer – consumer queue in .net4. In part 1 we defined a standard producer – consumer queue, however, there was nothing that particularly made this stand out from a queue written in a previous version of .Net. In this post, I am going to upgrade the queue [...]
Archive for the ‘Architecture’ Category
Simple Producer – Consumer Queue in .NET 4 part 2
Posted in 2. Application Development, Design Patterns, Threading, tagged .NET4, c#, producer consumer, threading on January 8, 2012 | Leave a Comment »
Unit testing for managed memory leakage
Posted in Design Patterns, Memory Management, Problems and Solutions, TDD, Threading, tagged c#, garbage collection, GC - Memory Management, jet brains, performance, unit testing, weak references on December 31, 2011 | Leave a Comment »
It might seem a strange thing to do. Firstly can there be managed memory leakage? And secondly how can you unit test for this? I’ll put this into context and then all will become clear. I came across this interesting problem recently when playing around with a set of streaming real time data and attaching [...]
Building a news aggregator module for a trading platform –The architecture
Posted in 1. Financial, 2. Application Development, Agile, Architecture, Design Patterns, Problems and Solutions, Threading, Traders Tools, World View, WPF, tagged agile, architecture, c#, news aggregator, producer consumer, software design, WPF on December 16, 2011 | Leave a Comment »
In my recent post introducing the news aggregator I detailed what we are currently building. In this post, I will discuss some very high level architecture and some considerations around how to build the application. My first draft at architecture is to just get the different functional parts of the program identified. Then later we [...]
Building a news aggregator module for a trading platform -Introduction
Posted in 2. Application Development, Agile, Architecture, Cool Tools, Problems and Solutions, TDD, Traders Tools, tagged agile, communication, development team, iterations, lifecycle, news aggregator, TDD, trading, uat on December 12, 2011 | 1 Comment »
I am working on a project where I going to build a news aggregator which takes certain keywords and searches a predefined set of websites, company statements etc for stories or blog posts that have that keyword in it. The keywords are mostly a combination of company names or stock ticker codes and mood indicators, [...]
Making WPF Converters easier to use
Posted in Design Patterns, Problems and Solutions, WPF, tagged Adapter, IMultivalueConverter, IValueConverter, WPF on December 5, 2011 | Leave a Comment »
When binding data to WPF controls it is good practice to use a IValueConverter or IMultiValueConverter or use the adaptor pattern which is what I do for the equivalent when using MVC for the web, to change the values from your domain objects to something you can bind to which makes sense for the Gui [...]
Best practices for writing HTML forms
Posted in Design Patterns, HTML5, tagged best practices, css, forms, html5, tables on October 11, 2011 | Leave a Comment »
Over the years I have changed the style of my HTML coding considerably. Back in the day (pre 2000) every one including me coded everything using tables. Tables rocked and made it quickly possible to layout pages. Pages were mostly cut up images straight from Photoshop. It was the web developer’s job to create a [...]
Setting up Castle Windsor IOC for web applications
Posted in Architecture, Castle Windsor, Design Patterns, IOC, NHibernate, ORM, TDD, tagged c#, Castle Windsor, Design Patterns, domain, IOC, loosely coupled, Mapping files, NHibernate, ORM, separation of concerns, test driven design, web architecture on September 27, 2010 | 2 Comments »
I recently wrote a post about how to set up CW’s IOC container for applications. This post covered the most basic implementation to get an IOC container up and running. It is now time to cover a proper architecture for using IOC specifically for web applications / sites. The main problem with the previous implementation [...]
Testing MS asp.net code behind
Posted in Architecture, Castle Windsor, Design Patterns, TDD, tagged Castle Windsor, Design Patterns, IOC, loosely coupled, separation of concerns, test driven design, web architecture on August 22, 2010 | 1 Comment »
Testing Microsoft’s web forms (asp.net) UI. Microsoft’s web form architecture is not particularly good for testing. The event driven architecture of ‘code behind’ means lots of logic gets stored in C# code that is tightly bound to the HTML code. This means you can’t write purely C# unit tests for it. The best solution is [...]
A little FTP goes a long way
Posted in Architecture, tagged c#, file transfer, ftp, web technology on June 10, 2010 | 1 Comment »
Sometimes you just have to send files from one place to another. As this blog is about finding the perfect web architecture it seems fair enough to include one of the oldest web protocols of all. FTP. Almost every system I have worked on has included subsidiary programs that feed data in or out of the main [...]
Unit Testing and TDD
Posted in Architecture, TDD, tagged expected exceptions, loosely coupled, separation of concerns, test driven design, testing exceptions, unit of work on May 18, 2010 | Leave a Comment »
After looking around for a decent book purely on TDD and Unit testing I realised there is a surprising lack of industry standardisation on this extremely popular topic. There are lots of tips and tricks but as of yet I have not found a complete works or treatise covering the subject. I don’t propose to [...]