About

I recently obtained my PhD degree in Human-Computer Interaction at the IT University of Copenhagen. As part of my research, I developed a fully functional system (called Laevo), exploring an alternative to the prevalent, antiquated, desktop computing paradigm. My work contributes to a line of research called ‘activity-centric computing’. This blend of research and development is representative of the type of work which motivates and excites me the most.

Prior to academia, I worked for several years as a professional full-stack software developer at a small game development company in Belgium: AIM Productions. I liked the work and colleagues at the company too much to give up entirely for further studies, so I decided to combine the two. In 2009 I started studying for my master in Game and Media Technology at the University of Utrecht in the Netherlands and I graduated in 2012.

 

I mainly develop in C#, but occasionally do C++, PHP, Flash/actionscript 3 and Java projects. I care a lot about proper code design, and uphold the Don’t Repeat Yourself principle wherever I can.

Advertisements
  1. #1 by A.R. on June 17, 2011 - 2:25 pm

    In you last blog post, static locals, you mention “I have yet to find a language which supports the same, but with instance lifetime.” Visual Basic 6 supports this feature. I have to say, this is a language feature that I miss dearly as it solved so many messy little “flag” problems.

    • #2 by Steven Jeuris on June 22, 2011 - 1:28 pm

      As far as I know VB6 only supports static locals? Not the same behavior with instance lifetime, as I describe in more detail later in the post and which I call ‘function private’.

  2. #3 by Bob Taylor on June 11, 2015 - 9:26 am

    public interface IMyInterface { }

    public class MyClass : IMyInterface
    {
    public MyClass()
    {
    Name = “MyClass”;
    }
    public string Name { get; set; }
    }

    public class Result where T : class, IMyInterface, new()
    {
    public T Value { get; set; }
    }

    public class SomeService
    {
    public Result Create() where T : class, IMyInterface, new()
    {
    return new Result { Value = new T() };
    }
    }

    I enjoyed reading your posts on delegates. I was wondering if you could help me figure out how to create a delegate for this scenario. I need to create a delegate for the Create() method of SomeService. This information is known at compile time. Type ‘T’ is an unknown type and is represented by the class ‘MyClass’. I’m having trouble creating a working delegate for the Create() method because of the Result return type and the generic type constraints. Any help would be greatly appreciated.

    Thanks in advance, Bob

  3. #5 by Bob Taylor on June 11, 2015 - 4:29 pm

    I’m referring to both of these posts:
    https://whathecode.wordpress.com/2011/05/25/creating-delegates-during-reflection-for-unknown-types/
    https://whathecode.wordpress.com/2011/05/30/creating-delegates-during-reflection-with-unbound-instances/
    Yes, I’m trying to use down casts, but like I said, I’m having trouble creating a working delegate for the Create&ltT&gt() method because of the Result&ltT&gt return type and the generic type constraints. Any help would be greatly appreciated.

    Thanks in advance, Bob

    • #6 by Steven Jeuris on June 12, 2015 - 11:26 am

      From the top of my head, can’t help you out there. An exact description of what ‘trouble’ (which exception?/behavior?) would also be useful. Try Stack Overflow, it also allows for better code formatting.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: