Archive for August, 2009

Operators – Playing With Scala

Posted: August 30, 2009 in Scala
Tags:

I started learning Scala about 2 months back.I mean I wanted to start but somehow got delayed because of other things.Now again resumed the endeavour and I have got the book “Programming In Scala”.It’s a nice book for the learners and I am finding it really helpful.In this post I am to write a bit about operators in Scala as I found this stuff really very interesting.

(more…)

Currying and F#

Posted: August 15, 2009 in F#
Tags:

I have just started taking a look into the F# programming language for the past few days.While going through the functions in F# I found something very interesting.Let’s consider a very simple function which multiplies two integers.

let mul x y = x * y;;

Now if I call mul 5 10 I get the output 50 as expected.This is fine so far.But what happens if I do not pass the second argument and make a call like mul 5.Going by knowledge of C# it should throw an error but actually it does not.It returns me something like as shown below.

(more…)

Those who have been working in ASP.NET MVC are already aware of the ASP.NET Routing feature introduced with .NET 3.5 SP1.But I have seen many who has developed a perception that ASP.NET Routing is something that can be used with only ASP.NET MVC.This is not the case.ASP.NET Routing comes under a separate namespace (System.Web.Routing) and assembly (System.Web.Routing.dll).This can be used with WebForms applications as well.But this required some custom coding to develop your RouteHandler as shown in the post below:

http://haacked.com/archive/2008/03/11/using-routing-with-webforms.aspx

In ASP.NET 4.0, added capabilities are provided to make routing fully complete in order to work with WebForms.This is what I will be discussing in this post today.I will use simple webpage with 2 hyperlinks to demonstrate this feature.

(more…)