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

yesterday
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
clemensv
Announcing the General Availability of AMQP 1.0 in Windows Azure Service Bus! http://t.co/2ZRFUoa5rO #Subscribe #ServiceBus #AMQP #Azure

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

just now
FortsecNews
Newvem launches new Windows Azure cloud-management tools to help enterprises act like ... - http://t.co/FPvi8I3gaY http://t.co/UKtBne3UZ8

just now
pinkalchemy
Weekend Reading: May 24th Edition – The world meets Xbox One, and Windows Azure heads to Asia: In this edition... http://t.co/RgzCodOGMf