Quantcast
Channel: Code Blitz
Browsing latest articles
Browse All 19 View Live

Image may be NSFW.
Clik here to view.

ASP.NET MVC 3: Agnostic Inversion of Control

ASP.NET MVC has matured over the years and I’ve had the fortune to be able to do some development work recently on this. One of the first things I explored was to setup an Inversion of Control (IoC)...

View Article



Image may be NSFW.
Clik here to view.

Linqify your code.

I’m sure most programmers are familiar with Linq, and agree with me that it’s great. I personally really enjoying using Linq, mostly in the form o f Linq to SQL and Linq to Objects. It also helps with...

View Article

Image may be NSFW.
Clik here to view.

EdLib

Over the years as a developer, I’ve come to realise that I have encountered similar problems and have had to write same kind of code. I’m sure most of us would have gone through that kind of...

View Article

Image may be NSFW.
Clik here to view.

Object Proxy

Consider this simplistic example, which uses a stream reader. public class FileLoader { private readonly StreamReader _streamReader; public FileLoader(StreamReader streamReader) { _streamReader =...

View Article

Image may be NSFW.
Clik here to view.

String.Split throws OutOfMemoryException

Recently I’ve been doing a fair bit of memory profiling and fixing memory issues at work. One interesting cause of an OutOfMemoryException I’ve encountered occurred when using String.Split for several...

View Article


Image may be NSFW.
Clik here to view.

XPath Extensions is cool!

I’m been using XDocument and it’s API for some time, but I wasn’t aware of an XPath Extensions in the .NET Framework. Thanks to my co-worker Lucy, she’s shared with me some good tips and in turn I’m...

View Article

Image may be NSFW.
Clik here to view.

String.Format and IFormatProvider

Have you ever noticed this overload of String.Format(IFormatProvider, String, Object[])? IFormatProvider is actually a very useful interface that allows us to create custom formats to transform our...

View Article

Image may be NSFW.
Clik here to view.

RetryTask using Task Parallel Library

Have you ever had to implement some form of retry functionality? I have, a couple of times in fact. Common scenarios would be to retry web service requests in the event of CommunicationException, or...

View Article


Image may be NSFW.
Clik here to view.

F# Project Euler Problem 1

Recently I have started getting more exposure about F# at work. Another developer and myself managed woto build a scheduling service purely written in F#, and it was a very humbling experience. I’ve...

View Article


Image may be NSFW.
Clik here to view.

F# Project Euler Problem 2

Solving second problem for Project Euler Problem 2 is an interesting one. Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10...

View Article
Browsing latest articles
Browse All 19 View Live




Latest Images