Ever wondered how to print the text in a sentence in reverse? Well here is a C# solution that I came up with after reading chapter 9 of Jesse Liberty’s Programming C# 3.0. The array object has a method that can reverse the content of the array. Yeah as simple as that. So basically what [...]
Continue reading about Printing a sentence in reverse with C#
Yesterday I came across a link that shows you how different OOP concepts are applied by C# and Java. There are quite a few differences between the two and then there are some instances where they are almost similar. Both languages are from the C-family and the syntax looks similar at first glance, and I [...]
It’s so unreal thinking about it, knowing that 2000km from Cape Town a human tragedy is happening and unfolding and it really seems as if the political leaders really don’t care about the plight of innocent civilians. Why does everything have to always revolve around power? A struggle for power and control, that’s what its [...]
Yesterday I started reading this book firstly because it dealt with C# and secondly because I never gave design patterns much thought. It was great to see that the book is written by a South African, Judith Bishop. I’m hoping to better understand design patterns. My current understanding of design patterns are that they act [...]
I resigned earlier this month, the 1st of December 2008, to be exact to go join a group of .NET developers. I have been going for interviews for the last six or seven months, and honestly it has not been an easy trip. Simply because I realised the amount of time I spent working at [...]
Continue reading about Starting a new job…and setting goals for 2009
2008 has been an interesting year, my 28th, and in this year I have learned a few things, but some really stand out: Do not isolate yourself in your field of expertise. If, like me, your goal is to become a proficient C# developer then you have to make sure that you constantly measure yourself [...]
I use Google a lot for .NET resources, but I do have a few places I read a lot, and not just to get solutions but also to read about other people’s solutions. Reading about other people’s solutions is a key to learning, and learning is important to any developer’s success. Here are my top [...]
What is an abstract class and how is it different from a regular class? An abstract class is an incomplete class that acts as a base class for other other classes to inherit from. An abstract class could be written this way: public abstract class MyAbstractClass { public abstract void GetTotal(); } And then a [...]
Okay so what are interfaces and what makes them different from classes? Well an interface is like a contract for a class, that tell that class it must implement all the methods, properties, events and indexers of the named interface. Lets say you create a simple class and a simple interface like this: class myTestClass [...]