Thursday, September 06, 2007

Eclipse how I hate thee

So like most developers my employer uses Eclipse as our official IDE. Honestly after a year of using Eclipse I whole heartily hate it.

I ran across this today:

Man Dies Waiting for Eclipse to Launch

A software engineer in San Jose, CA was found dead at his desk yesterday, apparently having died while waiting for his Java editing program, Eclipse, to finish its boot process. Coworkers say the engineer came in that morning vowing to "get Eclipse working on his box or die trying." The last thing anyone heard him say aloud was the cryptic comment: "I see the splash screen is appropriately blue." Nobody knows what he meant. The man was then thought to have fallen asleep, but hours later it was discovered that the engineer had died suddenly of apparent natural causes. The forensics team's investigation that evening was reportedly interrupted unexpectedly when the dead man's Eclipse program suddenly finished launching. The team tried to interact with it to see if they could find clues about the man's death, but the program was unresponsive and the machine ultimately had to be rebooted. At this time, the police commissioner says there is no evidence of foul play, and they currently believe the man simply died of either boredom or frustration.

I just had to laugh. Stevie is so funny at times. You can check out the full post here.

My main complaints with eclipse are:
  1. It takes 10 to 15 minutes to launch
  2. My database pluggin crashes 1-2 times a day giving 'PermGen Space' as the reason.
  3. Sometimes the IDE just crashes and sends me back to my desktop
  4. A few times a day it runs out of memory (as in the 2Gigs I gave it) and tells me I should close it. Telling Eclipse to close also tells me it is out of memory. Now i'm stuck with Eclipse open and not enough memory to close it.

*ugh*

Friday, March 30, 2007

Welcome to Vista

Well I'm not really sure if I love or hate Vista just yet.

The Good:

  • I resized my drives and created new partitions with vista
  • After 500MBs of patches I got visual studio running

The Bad:

  • Using an installer over the network seems to lock my machine
  • File IO and network speeds seem much slower than XP

Thursday, March 29, 2007

Laptop Watch: Day 3

Its here writing this post!

I'll have much more to say once I get it all going. Sadly I've managed to crash vista twice already.

Wednesday, March 28, 2007

Microsoft Coding Question #1

I recently had the privilege of interviewing at Microsoft. I figured I'd post the technical questions and answers in case they might help someone out there.

So here is the first one:

Given a Binary Tree, provide a method to traverse it depth first. Print the value of each node to the console.

We will assume there are methods to get the root node of a tree (rootNode) and the left and right nodes of a node (leftNode, rightNode)

Ex:



Should print 2,3,1,4,5


Solution (Recursive):

public void printTree(BinaryTree tree)
{
   if(tree !=null)
       printNodes(tree.rootNode);
}

private void printNode(Node node)
{
   if(node != null)
   {
       Console.writeLine(node.data);
      printNode(node.leftNode);
       printNode(node.rightNode);
   }
}

Solution (Non-recursive):

public void printTree(BinaryTree tree)
{
    if(tree !=null)
    {
       Stack<binarytree.node> stack = new Stack<binarytree.node>;
       stack.Push(tree.rootNode);
       while (stack.Count != 0)
          {
          BinaryTree.Node          currentNode = stack.Pop();
          Console.WriteLine(currentNode.data);

          if             (currentNode.rightNode != null)
                stack.Push(currentNode.rightNode);
            if (currentNode.leftNode != null)
               stack.Push(currentNode.leftNode);             }
         }
      }

Laptop Watch: Day 2

TORONTO SORT CTR/CTR TRIE, ON

W00t!!! My laptop is now in the same country as me!

Tuesday, March 27, 2007

Dell Laptop watch, Day: 1

TRACKING DETAILS

2007/03/27 07:30 In Transit in U.S.




So as far as I know I have a beautiful new laptop some where in the United States.