Blog RSS feed for Blog

1 2 3 4 5 6 < >

 

So you would like to add some common functionality to the MVC controller, like an overload for View which does some special stuff.

Today I was working on a prototype for a socket server (which I want to use to upgrade a couple of projects of mine) and popped in a old trick I thought I'd share.

Its nice to not have to work stuff out every time.. here are some extensions for IEnumerable<T> which allow me to move on to the task in hand.

Another way to provide a caller with optional arguments on a call is to use overloads. These can get messy when there are too many, but if you just have a few you can write them once using Extensions.

You are writing your API and you start on a method that has more than a few parameters, some of which are just default overrides (optional), you're not breaking SRP and your doing the YAGNI thing and you know its going to grow.

I have been meaning to write something on this to remind me when I am tempted to use Optional Parameters, they are problematic, in a number of ways.

Recently I have been doing a lot of work on configurable forms/data input on mobile devices. Now is the time to add validation in to the component.

In ASP.NET there is a few attempts at validation

For nearly two years now I have been working from home, it has been an experience which I have enjoyed and has brought benefits for my employer too (that would be you if you employed me).

Getting hold of embedded resources is a bit of a fiddle, here's some simple extensions to simplify this

Generic Builder

A builder separates the concern of creation of an object into an other object.

Its a great tool for testing ..

Had a quick play with dynamic types in .net 4, good fun but the results were useless..

Lazy<T> does the same job

I am being frustrated in my attempts to abstract my business and model layers from each other by the cursed object typed parameter in framework methods

On Twitter Follow MrAntix on Twitter

23/05/2013
scottgu
I'm excited to announce the GA Release of AMQP support with the Windows Azure Service Bus. I blogged details: http://t.co/L6SzbFbkfh

yesterday
WindowsAzure
RT to share the news: Announcing the release of AMQP support with #WindowsAzure Service Bus. http://t.co/2QQhagZiSW

12 hours ago
WindowsAzure
New blog post: Automating #SharePoint Deployments in #WindowsAzure using PowerShell. http://t.co/TCrWjqLDCZ

just now
pvandorp
RT @davidcchou: Launch of a Windows Azure public preview in China - http://msw/NewsEvents/InsideTrack/Pages/052313WindowsAzureChina.aspx

just now
davidcchou
Launch of a Windows Azure public preview in China - http://msw/NewsEvents/InsideTrack/Pages/052313WindowsAzureChina.aspx