C# and Visual Studio

Yarr, so work at HP has been good; I’m enjoying my time there. I’ve worked from home a few times, which has been nice: there’s nothing quite like coding in your pajamas and getting paid for it. I’ve mainly been writing PL/SQL queries and programming in C#. I was apprehensive about the job to begin with because I knew I’d be working in Windows, and that’s unpleasant for me. It still is unpleasant, and I get pissed off at Windows at least a couple times a day. I get most annoyed when I want to do something simple, like right-click on a file or switch tabs in Firefox, and it sluuuuuuuugs along, sometimes even freezing the screen such that mouse cursor movements aren’t even shown. My response is always “really? it’s that hard to show me the right-click menu and be responsive about it?”. It’s a decently fast computer, and I know the thing would be snappy in Ubuntu.

Anyway, I digress; C# is actually a fun language. I got thrown into it because I needed to implement new features on an existing C# web service. I was reading about the lambda operator and predicates yesterday. It’s not as pretty, syntactically, as Ruby, but it’s still cool.

CSharp

List<int> numbers = new List<int> {1, 2, 3, 4, 5};
IEnumerable<int> even = numbers.Where(curNum => curNum % 2 == 0);

Whereas in Ruby:

Ruby

numbers = [1, 2, 3, 4, 5]
even = numbers.select { |cur_num| cur_num % 2 == 0 }

I’ve been working in Visual Studio 2008 and overall I like the IDE. Intellisense is very convenient and VS’s debugger is great. However, that hasn’t stopped me from banging my head on simple-seeming problems, such as collapsing all method definitions and then expanding all regions as soon as a file is opened. I’ve posted a question on Stack Overflow about it, if you want to help out.

This entry was posted in Programming and tagged , , , | Current music What Else Is There? by Röyksopp. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

3 Comments

  1. Posted 7 July 2009 at 3:58 PM | Permalink

    There’s no reason for either of those two issues you’re having to be caused by Windows. What’s else have you got running?

  2. Posted 10 July 2009 at 12:25 AM | Permalink

    … Especially if you’re VPN-ing *with* Windows. Slowslowslow!

    The company I work for uses FreeBSD for all their products, yet we use Windows to develop on. Makes no sense.

  3. Posted 13 July 2009 at 1:41 PM | Permalink

    Oh, go back to your Mac, you nerd :D

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>