Cyn's day at work
After two weeks familiarizing myself with the language and projects I'll be working on, it was my first day producing actual code today.
The morning was fun. Designing forms, dragging buttons and lists onto the window and making the program's layout all spiffy and functional - fun! Then on the afternoon, I moved on to the code, defining data structures and programming basic events.
I wanted to implement a tree structure that would grow dynamically in accordance to what the user selected in a certain treeview window. And so I wasted no time:
public class Node{ public string description; public Node child; public Node brother; }
WHAM! Error.
"WTF?!" I said.
Hours later - or rather, 15 minutes before I was free to head home - my boss comes over to check how I was doing.
"Some things are going ok," I replied "but this tree thing..."
"Well, why don't you use the treeview directly instead of creating your own data structure from scratch that's only going to copy what's already in this tree?" he suggested.
"YOU CAN DO THAT??" I said.
"Sure!" :D
"WOW!! C sux! C# <3!"
I'm going to have fun tomorrow... ^^
|