Who would have thunk it?

I recently read this article about Lazy Computation in C#. What the article discusses is creating lazy evaluation in C#.  Lazy evaluation is a key feature of functional languages like Haskell but is not common in imperative languages.  It is used in Haskell because it implements parameter passing on a call by need basis.  What…

1

Did you know…. Generic Methods

Did you know that you can call a generic method with out supplying the type argument.  The C# compiler will fill in the type parameter for you at compile time since the language is strongly typed. static void MyMethod<S>(S myParam) {     Console.WriteLine(typeof(S).ToString());     Console.WriteLine(myParam.GetType().ToString()); } static void Main(string[] args) { int a1 = 5;…

1

Visual Basic .NET Late Binding Explored

In a previous post I mentioned how Visual Basic .NET’s  lambda expressions are more fun and easy to use than C#’s.  My inspiration for this statement was the fact that in VB .NET you are able to implicitly define a lambda expression in this way: Dim f = Function(x) x + x Console.WriteLine(f(5)) ‘Outputs: 10…

3

My attempt at a web comic

Last year my girlfriend Mallory Emerson drew my attention to a web comic called Dinosaur Comics.  It is really funny and inspired me to try to make my own.  So while I was in class one day (not the most interesting Information Retrieval lecture) I drew my version of a Dinosaur Comic on my tablet…

1

Lambda Expressions are more fun in Visual Basic .NET

I love C# and I would never want to do anything to make it seem any less amazing but I have to give credit where credit is due … to Visual Basic .NET.  Yes, I said it.  Both languages have been adding features inspired by the functional and dynamic programing world.  However, VB .NET has…

8

Lambda Expressions

With the release of C# 3.0 and Visual Basic 9, both languages added support for lambda expressions. Lambda expressions form the basis of lambda calculus which (this will seem a bit mathy) is a formal system which is used to explore mathematical and programmatic topics such as recursion and computability.  Lambda calculus plays a crucial…

1

Foray into LINQ

With the release of .NET 3.5 I started playing around with one of the cool new technologies called LINQ.  LINQ brings SQL like querying syntax for performing operations on data sources like collections into , files or databases into .NET.  The LINQ website describes LINQ as:The LINQ Project is a codename for a set of…

3

JavaScript Rich Text Editors

While in college I worked on several websites for my school (Binghamton University).  One of my main tasks in developing websites was to create a easy to use system which would let non-developers be able to update and modify web content.  I wrote these systems in PHP and I used a rich text editor control to allow non-developers…

1

Visual Studio 2008 and .NET 3.5 WOOOOOO!!!!!!!!!!

I am sure they will be many blogs and articles that will mention the awesome fact that Visual Studio 2008 and the .NET Framework 3.5 have been released.  I am also sure most of these posts will go talk about some of the many cool new features in both.  While that is very tempting for me…

1

Master Boot Record Fiasco

The Error I restarted my computer for the first time in a couple weeks and it would not boot.  I was faced with a screen which said: Grub Loading Stage 1.5 Error 22   A nice helpful error.  Now I was faced with a problem and I needed to figure out how to solve this. My…

0