One language to rule them all?

Most of my software development is currently done on the .Net framework, with C# as programming language. I’m looking forward to start working with F#. While I’m doing most of my coding in C#, I’m also coding AS3 (ActionScript 3) and javascript on the side.

Meanwhile I’d like to take a week off and start working in plain old MASM again :). Do some hard time with C++ and the DDK to make some annoying filter drivers to tease colleague’s @ work, but all of that will probably won’t happen since I’m working so much lately. For example I’ve arrived at 07:00 sharp at the .. well office and left 18:35, with a small lunch break of only 15 minutes.

Well to get to the point,.. looking for some nice alternative to Flex (Eclipse with Adobe modifications) that will cost me $0.00 I came across a nice project that aims to be a single language to be used as an intermediary language for all the others. It is called haXe. It will convert / compile your code to the desired language, eg. haXe to JavaScript.

Will look at it soon!

Unsorter

Today’s generic lists support sorting calls that can be modified to sort ascending or descending. How about a sort method that will just mangle the data. It may have uses for your TDD (UnitTest) related work.

Here we go:

void Unsort()
{
    Random rnd = new Random();
    List<int> myList = new List<int>();
    for (int i = 0; i < 100; i++)
    {
        myList.Add(i);
    }
     myList.Sort(
        delegate(int a, int b)
        {
            if (a != b)
                return rnd.Next(-1, 2);
            return 0;
        });
}

Now your list is unsorted.

Hello World

Hi there and welcome to my first post.

I’ve set certain content goals for my personal blog, here they are:

  • History of good pieces of code.
  • A place where I’m able to vent some thoughts.
  • Idea’s.
  • Important events.

A quick intro into me:

I’m a developer, skilled in some programming languages.

I like to think of myself as a generalist with deep knowledge, not a specialist.

Like to see lots of new or new old things, curious nature but bored quickly.

Do I’ve followed normal schooling, I’m a self educated man… actually self educating.

I don’t like beta’s very much, unless they do not contaminate my PC.

I don’t like self updating software,.. Annoying Attention Consuming Nag Screens.