Agile / Technology

ServiceStack 4 HTTP Utilities: Functional Contract Testing

ServiceStack 4 HTTP Utilities: Functional Contract Testing ServiceStack 4 comes with some really great new tools for accessing an HTTP resource using a fluent syntax. They make a great addition – sometimes the JsonServiceClient (often just called the C# client) is a little too smart! For instance, let’s say you’ve published a specification saying how … Continue reading

Technology

JavaScript client for talking with WCF server with WebSockets binding

This blog entry is a repost of an answer I wrote at programmers.stackexchange.com. If you are looking for a JavaScript client for talking with WCF server with WebSockets binding, you might take a look at these two: SignalR has a JavaScript API. SignalR helps build asynchronous scalable web applications with real-time persistent long-running connections. Scott Hanselman wrote … Continue reading

Technology

When to use exceptions, vs. when to code defensively?

This blog post is a repost of an answer I wrote at programmers.stackexchange.com. To answer the question of which is considered better practice, between exceptions and coding defensively: In .NET, its common practice to avoid the overuse of Exceptions. One argument is performance: in .NET, throwing an exception is computationally expensive. Another reason to avoid … Continue reading