Check my new app My WishingWall

October 31, 2012

Hi Everyone, we are very pleased to announce that our My WishingWall has finally reached its first public release ! You can try it right here -> http://apps.facebook.com/mywishingwall/ and be sure to check out our bookmarklet app that let’s you add virtually any product from any website on the net !


Code-Based Migrations

May 11, 2012

Nice Article.

more


VS Achievements and FxCop

January 23, 2012

Article about installing FxCop for Achievements.

more


My check null

December 20, 2011

There are many solutions on the net for avoiding the null check. Here is mine:

public interface Option<T> { }

public struct Nothing<T> : Option<T> { }

public struct Just<T> : Option<T>
{
    public readonly T Value;

    public Just(T value) { Value = value; }
}

public static class OptionExtentions
{
    public static Option<T> ToOption<T>(this T value)
    {
        return (value == null)
            ? new Nothing<T>() as Option<T>
            : new Just<T>(value);
    }

    public static U Select<T, U>(this Option<T> option,
      Func<T, U> func)
    {
        return option.Select(func, () => default(U));
    }

    public static U Select<T, U>(this Option<T> option, 
      Func<T, U> whereJust, Func<U> whereNothing)
    {
        return option is Just<T>
            ? whereJust(((Just<T>)option).Value)
            : whereNothing();
    }
}

And implementation:

return (from h in HttpContext.Current.ToOption()
       select h.User);

Sitecore XAML Apps

November 21, 2011

Very nice article on creating Sitcore XAML apps.

more


Sitecore Template Descendants Query

November 11, 2011

I needed a query at Sitecore to select the descendants belonging to a template, of the ancestor belonging to another template

query:./ancestor::*[@@templatekey='templ 1']//*[@@templatekey='templ 2']


Node.js articles

October 2, 2011

Articles on node.js.

more


VS 2010 Dark Theme

August 20, 2011

Visual Studio 2010 Dark Theme TextMate style, with ReSharper and Razor support.

Download   More themes   Create theme


Patterns and idioms in functional languages

June 15, 2011

General reference in fp patterns and idioms.

 more


Category Theory for the Java Programmer

June 13, 2011

Very good presentation of Category Theory for Java.

more


Follow

Get every new post delivered to your Inbox.

Join 50 other followers