Delegates

A delegate is a special type, where you can store a reference to a function. With delegates you change the way how you work, and somehow reverse it. Give it a function, and after that you give if the requested values for that function, and process it.

Why? So you can assign an action (or maybe with if’elses or a for loop, different actions) and then after that give it the values and process it. Even you might not understand it yet completely, this makes code easier, and things possible that maybe wouldn’t be possible without this.

This sounds a bit crazy, but lucky enough it’s rather easy, you just need to understand it. Nothing better than some example to make you understand!

Read the rest of this entry »

Install a virtual Operating System on top of your existing one!

Did you read my post about virtualization and want to try it out yourself now? Do you still doubt? Why do I use Virtual Machines? Maybe that will convince you!

  • Ubuntu as server: Php, sql, server, so when I shut down my Ubuntu server, my default operating systems performance isn’t affected.
  • Windows XP: To use software that doesn’t work any more on Windows 7.
  • Another Windows 7: To test new software, my personal playground.
  • Windows 2008 Server, to test what I’ve learned at school.

What do you need?

Read the rest of this entry »

Repeater

In this tutorial I am going to show you what you can do with data binding & a simple repeater, a few different controls and xml. What’s a repeater? You choose some control, make a template for it, and it will repeat to use the template for every item in the data source.

Interested? Click below and check it out!

Read the rest of this entry »

Example Observer Application: Traffic Lights

This is the post where you have all been waiting for (I hope J), after reading the informative post what an Observer Pattern is. If you have no idea what an observer is, you better start reading my previous theoretical post about the Observer Pattern.

First an overview of the application we are going to build in this post:

  • An application to create a traffic light who changes his colour
  • Easy expandable
  • Future equipped (easy to add changes)
  • Object Oriented
  • With the Observer Pattern

Read the rest of this entry »