Browsing All Posts filed under »Design«

Beware: Your API is more public than you may think

October 29, 2009

Comments Off

I made a classic error today in the public API of a Java service. I somehow convinced myself that wrapping an “internal” exception in a public (“external”) API service-level exception would ensure that client would still only be dependent on the external exception. This was however not the case after I sensibly preserved the cause of the… [Read more…]

Interesting Mapper/Builder Strategy

October 14, 2009

Comments Off

Jakub has an interesting slant on the problem of mapping objects from one representation into another, without XML. This is something I’ve come up against many times on my most recent project. http://www.jakubkorab.net/2009/10/a-better-builder.html My thoughts: I like this approach. It provides a very elegant mechanism for mocking, for sure. On my recent project I opted… [Read more…]

Financial Engineering: On Reflection

July 24, 2009

Comments Off

I received a Notification of Award of Credit for Financial Engineering in C++ at level U2 from City University London yesterday. While the piece of paper doesn’t look particularly special, has the odd typo and appears to have the wrong number of CATS credits, I’m half tempted to frame it. What began as a fairly… [Read more…]

Interruptible Java Processes

May 2, 2009

Comments Off

I previously blogged about a Fair Value pricing service I developed for an investment bank client. Another interesting observation I made during this project regards developing interruptible processes in Java – a concept I used when building the pricing service as a means of terminating a long-running Loan pricing process. The IBM developer works technical… [Read more…]

Coupling & Cohesion

March 18, 2009

Comments Off

Coupling Coupling is the degree to which a module of an application is dependent on another module. Coupling is necessary to some extent, otherwise no module could ever use any other module, but the extent of this should be minimized if possible. The process of minimizing this coupling is referred to as Decoupling. Unnecessary tight… [Read more…]

The Power of the Template Method Pattern

January 2, 2009

1

I recently led the development of a Fair Value pricing service for an Investment Bank client over a period of 6 months. The bank’s analytics team implemented the pricing logic in Java, which we wrapped and exposed as a managed service, hooking the loan management application and batch processes into it. During the project, I… [Read more…]

Follow

Get every new post delivered to your Inbox.