Latest Updates: Caplin Trader RSS

  • Testing APIs for Backwards Compatibility

    Ian Alderson 5:07 pm on 19th February, 2010 | 0 Permalink | Reply
    Tags: Caplin Trader, ,

    A couple of weeks ago, I wrote about Agile Framework Development and the various techniques that we have used here at Caplin to build our APIs in a way that is sympathetic to agile methodologies. One of the key problems with the iterative development of an API is how to ensure that it remains backwardly compatible. Although each new release of an API is focussed on providing more functionality, easier use, or increased robustness for its users, those same users want their existing code to continue working when they upgrade.

    This article addresses the issue of how to identify, with confidence, whether an API is backwardly compatible or not. As I mentioned previously there are times when an API is just too incorrect to be kept, however the decision for a breaking change must be a deliberate one – not an accidental one that is typically only discovered when the users of the API find that their existing code no longer works.

    (More …)

     
  • Adding an Observer to an Observable

    Ian Alderson 2:00 pm on 2nd March, 2009 | 1 Permalink | Reply
    Tags: Caplin Trader, , , Observer,

    The Observer design pattern is used in many applications. If you are unfamiliar with it, or need to remind yourself about the specifics, you can read about it at Wikipedia or MSDN. Caplin Trader even provides a helper class to take care of a lot of the boiler plate code: caplin.core.Observable.

    The purpose of the Observer design pattern is to allow one object to notify other objects of events – usually to do with changes to its state. One common problem I have encountered however is what to do when an Observer  is first registered, since the object that it is observing may already be in a particular state.

    (More …)

    Related Posts with Thumbnails