Search

1 < >

I recently found myself needing to merge two objects into one.

Turns out to be pretty simple, using JSON.NET and a recursive extension.

Adding logging to a project I am working on led me to have a look again at the abstraction implemented in my old libraries, taking advantage of new ideas and knowledge to make a new one that's faster and easier to use, maintain and extend.

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.

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.

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

Lazy<T> does the same job

This is a lovely bit of recursion which will find the first occurrence of any number of sub-strings in a string, and allows you to add a number of "protection" delimiters so that strings inside will not be found

Charter Publishing, an existing client of mine, asked me to update their site

On Twitter Follow MrAntix on Twitter

3 minutes ago
stock_irish
PPTV Builds World's Largest TV Cloud Platform Based on Microsoft Windows Azure http://t.co/XtxmE5gu31

5 minutes ago
RJPeres75
RT @EricLigman: A #Free eBook downloaded every 4.5 sec (avg.) during first 12 hours. We can do better! Get yours now: http://t.co/57dCbiwpy…

5 minutes ago
claytonhm
So many cool thinks going on with Windows Azure, Windows Phone apps, Windows 8 apps.... I have a bad case of #DeveloperEnvy

6 minutes ago
Eyad_ab
RT @EricLigman: Huge collection of #FREE eBooks from #Microsoft: http://t.co/57dCbiwpyn #Office #Office365 #MSPartner #SharePoint $MSFT

6 minutes ago
AMarathonMan
Windows Azure BizTalk Services #BizTalk2013 - comparing the mapper http://t.co/m1w48iOsQh #cloud #azure