Parallels vs. VMWare Fusion

by 28. February 2010 21:41

Maybe this is an unfair comparison considering I am using VMWare 2 and Parallels 5. I have been a pretty firm VMWare fanboy for quite some time, but I have to say after using parallels 5 for a week now, I am frickin' SOLD. I have read that Parallels 5 is supposed to be faster, and it is, but WOW, it's a LOT faster. The biggest thing, though is the fact that it properly focuses windows of the guest OS when in Unity/Coherence mode. I am on an older MacBook Pro, it's a 2.16GHz Core Duo, with 2GB of RAM and a 7200 RPM hard drive. As I type this I am running Safari on OSX and Visual Studio 2008, SQL Server 2005 Mgmt Studio, and IE 8. There is... 5% CPU usage and memory consumption is hovering around 70% (and I have 768M allocated to the guest OS, which is XP SP3).

I'm seriously impressed. I think I see a competitive upgrade in my future :) And just for Gheri, yes  I installed VirtualBox, it's ok. It's better than nothing, it's a little lower performance than VMWare.

Tags: , ,

Apple

.NET Triplet and Pair classes… and a lesson in lousy namespacing.

by 20. February 2010 20:16

 

This week I was working on a project and came across a class I’d never used in C# called a Triplet. You can look up the Triplet on MSDN here.

The Triplet is just a class with three properties: First, Second, and Third. Each of the properties holds an instance of an object. That’s it. That’s all this thing does. The very first thing I noticed once I saw what it did was the namespace it’s in. You’d think it would be in System.Collections, or System.Collections.Specialized or something, but no… it’s it System.Web.UI along with things like the System.Web.UI.Control class. WTFBBQ?

I would love to hear a rational explanation for this. I am pretty anal about namespacing and I don’t like having to stretch the tasteful bounds of a namespace to put something in. I will on occasion, but this is a bit much.

I downloaded Reflector to see if I could find any other gems stored in that namespace. Lo and behold… I find Pair. Care to guess what Pair is? Exactly.. it’s the same as Triplet… but with…. TWO properties.

Up on obsessing over this I started to think about why these classes even exist at all.  What is wrong with object[] objArray = new object[2]; ? Is that so complicated that there needs to be a type, and a horribly misplaced type at that?

In lieu of my findings I have created the following class I want added to the .NET Framework …. The Duodecuple.

1: using System;
2: //Stay consistent with completely nonsensical namespacing namespace System.Workflow.Runtime.DebugEngine
3: {
4:      // that's "12" for those of you who don't feel like going to wikipedia
5:      public class Duodecuple
6:      {
7:               public object First { get; set; }
8:               public object Second { get; set; }
9:               public object Third { get; set; }
10:               public object Fourth { get; set; }
11:               public object Fifth { get; set; }
12:               public object Sixth { get; set; }
13:               public object Seventh { get; set; }
14:               public object Eighth { get; set; }
15:               public object Ninth { get; set; }
16:               public object Tenth { get; set; }
17:               public object Eleventh { get; set; }
18:               public object Twelfth { get; set; }
19:               ///
20:               /// Constructor. Since we're taling C# 3.5+ here you can just
21:               /// instantiate with ... new Duodecuple { First = whatever, Second = anotherObject };
22:               /// No sense in having all those constructors
23:               ///
24:               public Duodecuple (){}
25:      } }

you're welcome.

-Mike

 

Tags: , , ,

.NET | Complaining | Development


RecentComments

Comment RSS