Back to Basics: how to build a FrotMachine

Ever wanted to build a Frotmachine? I guess you would.

But, whatever is a Frotmachine?

A Frotmachine is a place where you can store your Frots.
A Frot is something you did to solve a problem quickly.

Well, let’s just start and create a prototype.
Let’s say that the Frot has a description and a category. So, there would be 2 classes in our program. Frot and Category.

Start Visual Studio (2010 or 2008, you’ll need the .NET Framework 3.5) and create a new Project. Choose Console Application.

Then create a new class and make it look like this:

That’s very nice, but nothings happens, yet. We should do something with this in the Main method in Program.cs.

So put the following code in the Main method from Program.cs:

Now, build the program and then press Ctrl+F5 to run it.

This is the result:

Next time we’ll add the Frot to a database for retrieval.

Nog maar eens

Het is prachtig. Hierna begint het serieuze gedeelte .