Monthly Archives: May 2009

meet macruby

peepcode’s latest screencast is on macruby…http://peepcode.com/products/meet-macruby

i have to say i give the thumbs up to peepcode.. Geoffrey Grosenbach has done a gr8 job with the content here…

even if your not into rails or ruby or objective c etc, it worth grabbing the unlimited subscription and watching this stuff  as it should open up your horizons to new ways of doing things and looking over at how other communities are getting they’re work done… obviously if your a developer using this stuff then all the better…

i’m looking forward to building a native twitter client for the mac in ruby, as even though i’ve looked into objective-c i cant see myself getting into it as easy as i would ruby…

you have to love lamda's…

i need to take a comma delimited string of doubles… which represent miles.

“12.0,11.6,5.4″ etc and convert it to a List<double>.

and in 1 line of code….

numberString.Split(',')
            .ToList()
            .ConvertAll(Convert.ToDouble)
            .ConvertAll(Conversion.MilesToFeet);

where Conversion.MilesToFeet is a static method.

 public static double MilesToFeet(double input)
 {
    return input * 5280;
 }

you have to love lamda’s…

i need to take a comma delimited string of doubles… which represent miles.

“12.0,11.6,5.4″ etc and convert it to a List<double>.

and in 1 line of code….

numberString.Split(',')
            .ToList()
            .ConvertAll(Convert.ToDouble)
            .ConvertAll(Conversion.MilesToFeet);

where Conversion.MilesToFeet is a static method.

 public static double MilesToFeet(double input)
 {
    return input * 5280;
 }

TypeMock Launch a new ASP.NET bundle

Typemock are launching a new ASP.NET Typemock bundle. its a fully featured set of tools for hard to test .net technologies such as sharepoint, asp.net, wcf etc….

here’s the press:

Unit Testing ASP.NET? ASP.NET unit testing has never been this easy.

Typemock is launching a new product for ASP.NET developers – the ASP.NET Bundle – and for the launch will be giving out FREE licenses to bloggers and their readers.

The ASP.NET Bundle is the ultimate ASP.NET unit testing solution, and offers both Typemock Isolator, a unit test tool and Ivonna, the Isolator add-on for ASP.NET unit testing, for a bargain price.

Typemock Isolator is a leading .NET unit testing tool (C# and VB.NET) for many ‘hard to test’ technologies such as SharePoint, ASP.NET, MVC, WCF, WPF, Silverlight and more. Note that for unit testing Silverlight there is an open source Isolator add-on called SilverUnit.

The first 60 bloggers who will blog this text in their blog and tell us about it, will get a Free Isolator ASP.NET Bundle license (Typemock Isolator + Ivonna). If you post this in an ASP.NET dedicated blog, you’ll get a license automatically (even if more than 60 submit) during the first week of this announcement.

Also 8 bloggers will get an additional 2 licenses (each) to give away to their readers / friends.

Go ahead, click the following link for more information on how to get your free license.

they’re also running a little offer where if you blog about the launch they’ll send you some free licences…

check it out over here… http://blog.typemock.com/2009/05/get-free-typemock-licenses-aspnet.html

enjoy!!!

i hate regions (c#)

jesus they’re annoying.. i mean whats the point in this…

#region Constructor

public MainViewModel()
{
// Blank
}

#endregion

all it does in encourage people to write huge classes and huge methods that are a nightmare to debug/maintain/understand.. the list goes on…

if you need regions you definitely need to refactor your code…

starting a micro-isv

i’ve decided to go and start a micro-isv project. its been on my mind for a while now and its seems like the right time.
i’ve spent the last while learning ruby on rails, and even built an app with it. www.thephoenixhostel.com. which needs a designers touch :-)
but now that i’d talking about a business i need to put on my business hat!!
first things first, the micro-isv is going to be a web based sas app, for a business in a particular industry (which i’m going to keep to myself for now) to completely manage themselves, including online & offline.

i’ve not 100% decided what the core technology is. i’ve worked with java, .net and rails, and recently looked at scala & groovy, but for now i’m going to spike out some work in asp.net mvc, just focusing on non functionals.

first up security. asp.net has built in security, but i never really liked it much when i built sites in it, so i’m going to investiage Rhino Security from Ayende, ayende.com/Blog/category/548.aspx.
he’s been posting about it for a while and a few app’s have been built in it so why not!! no point in reinventing the wheel. and it’ll give me a chance to spike out a .net solution and see if i want to continue using it or look a something else.. i.e. rails…

anyways,
wish me luck :-)