... all I'm offering is the truth. Nothing more. RSS 2.0
# Friday, May 30, 2008

Reading source code should be the aim of every serious software developer. I am constantly looking for patterns that are interesting and potentially useful for future projects. Anyway, I was reviewing some code over the weekend and there was a pattern that I have not seen for a while.

So below is a basic abstract Mammal class, you have two constructors differentiated by the method signature (of course),

    public abstract class Mammal
    {
        public Mammal()
        {
            Console.WriteLine("A");
        }
        public Mammal(bool asf)
        {
            Console.WriteLine("B");
        }
    }
So the MyDog class inherits from from Mammal and provides an opportunity to access the either of the base class constructors.

    public class MyDog : Mammal
    {
        public MyDog() : base()
        {
            Console.WriteLine("1");
        }
        public MyDog(bool asf) : base(asf)
        {
            Console.WriteLine("2");
        }
    }

You can explicitly select which base class constructor gets called by using ": base()" pattern after the constructor. Simple but nice!

Technorati tags: ,

Friday, May 30, 2008 12:05:09 AM (Eastern Daylight Time, UTC-04:00)  #    Comments [0] - Trackback
C#
# Wednesday, May 28, 2008

I really want to develop a killer app for Windows Mobile 6.x  and I am thinking that the recent support of Silverlight has opened up a cleaner avenue of software development for me. Anyway, I found a series of Silverlight videos that allowed me to safely start my dev work and get my feet wet.

What is the app going to be? Not sure yet, but I need to buy my WM6 phone soon for the sake of testing ;)

image

Technorati tags:
Wednesday, May 28, 2008 3:55:05 PM (Eastern Daylight Time, UTC-04:00)  #    Comments [0] - Trackback
Silverlight
# Tuesday, May 27, 2008

I am a 'fan' of IE 7, I actually really like it! I just realized that I have not been using the tabbing options as efficiently as possible. If you hit CTRL-Q you get a summary of windows that you have open. Is there an equivalent in FireFox?

image

Technorati tags:
Tuesday, May 27, 2008 10:21:13 AM (Eastern Daylight Time, UTC-04:00)  #    Comments [1] - Trackback
IE
# Monday, May 19, 2008

I saw this little test over at the site of Visual Stuart. Please do not compile it until you have really thought about it ... a small clue ... take note of the nested 'try/ catch' statement.

            try
            {
                try
                {
                    throw new ApplicationException();
                }
                finally
                {
                    throw new SystemException();
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.GetType().Name);
            }
Technorati tags:
Monday, May 19, 2008 11:42:07 PM (Eastern Daylight Time, UTC-04:00)  #    Comments [0] - Trackback
C#
# Saturday, May 10, 2008
Zune all you can eat

Zune is really pushing the advertising on the all you can eat subscription model. With the Zune Pass you can pay $14.99 a month and then have your choice of all the DRM music you can eat.

There are several examples I could use that should discourage even the most ardent music lover from this choice of music purchase. For me, however, the main issue is the way I use and consume music. The DRM tether of the Zune Pass means that you are only renting (or leasing) the music. As soon as you stop paying you stop playing!

My problem with buying music is not the fact that I cannot get lots of it, but that I cannot find lots of quality music that I enjoy. So for me the quantity is less important than quality. Usually when I find a great musician\artist I will enjoy it for several months at a time and then that music becomes part of my history ... the play list of my life if you will ;)

I am willing to admit that others may not have such an organic relationship to music and that treating music like chewing gum and moving to the next piece is a reasonable paradigm. Or indeed, gorging on as much music as possible regardless of the quality may seem like a fine way to dine. Or simply paying the $14.99 to test the music and then maybe purchase what you really like later ... isn't that rent to buy ... no thank you! I prefer my music à la carte not buffet!

 

Technorati tags:
Saturday, May 10, 2008 1:47:02 PM (Eastern Daylight Time, UTC-04:00)  #    Comments [0] - Trackback
Music | Zune
# Friday, May 09, 2008

Unfortunately I am the only person in our group from the Dublin office, its like working from home except there are a lot of people around. This does means that I spend a lot of time on the phone for conference meetings, training sessions, one on one calls, you name it and I am on the phone communicating it. In order to help navigate this phone support I have been given a nice headset that allows me to keep my hands free while I spend my 2 hours per day (average) on the phone.

One thing that is beginning to really grate my nerves during meetings is the lack of awareness, on the side of the speaker\trainer, of microphone placement. Usually conferences I am involved with go well, right up until the question and answer session. It usually goes like this:

SPEAKER: "... I hope that was helpful to you guys. Are there any questions at this point? ... yes ... you in the back."
VOICE 1: "mumble ... mumble ... mumble ... mumble ... and ... mumble ... mumble ... mumble?"
SPEAKER: "Good question and the answer is yes, yes we should!"

Aaaaahhhh! I am left helpless, having no idea what the question was, and only occasionally can I discern the nature of the question from the answer. It is starting to get really old! In small groups this is not an issue, but large groups tend to consume the thoughts of the speaker and we phone prisoners get no joy.

So what is the solution? The main moderator\speaker should always repeat the question for people that are at a distance from the phone. For example:

SPEAKER: "... I hope that was helpful to you guys. Are there any questions at this point? ... yes ... you in the back."
VOICE 1: "mumble ... mumble ... mumble ... mumble ... and ... mumble ... mumble ... mumble?"
SPEAKER: "So the question was 'Should we be preparing for next quarter and the following year?'. The answer is yes, yes we should!"

By simply repeating the question you easily ensure everyone knows where the conversation is headed. Just simple common sense.

Technorati tags:
Friday, May 09, 2008 1:20:12 PM (Eastern Daylight Time, UTC-04:00)  #    Comments [0] - Trackback
Other things
Blogroll
Statistics
Total Posts: 335
This Year: 23
This Month: 1
This Week: 1
Comments: 32
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2010
Mark Downie
Sign In
All Content © 2010, Mark Downie
DasBlog theme 'Business' created by Christoph De Baene (delarou)