Per Peter's request =)

I really hate how Visual Studio forces me to use a certain style when 
coding in C#.  I like functions to look like this:

void Foo(int blah) {
        /* insert code here */
}

But apparently Microsoft thinks that you should do this instead:

void Foo(int blah)
{
        /* insert code here */
}

because it tries pretty hard to force you to do it.  Maybe there's a 
way to change that behavior, but I try to use VS.NET as little as 
possible and looking for a way to change its formatting would prolong 
my usage.

Also, I'm a Ruby programmer.  Ruby is nice and neat and orderly 
(IMHO).  I program in .NET because I have to.  Maybe I'm spoiled by 
using Ruby on Rails, but there are countless things that I could 
easily do in RoR, or even PHP or Perl for that matter, that are 
stupidly hard to do in .NET.

For example, if I want an HTML element with some custom attribute 
(like onchange), I have to do this:

someElement.Attributes.Add("onchange", "alert('Are you sure?')");

It's also extremely hard to put the focus on a particular control when 
a page loads.  There's a control method called 'Focus' in the 
documentation, but for whatever reason it didn't work for me.  I 
found myself writing this little gem to make it work:

p.ClientScript.RegisterStartupScript(p.GetType(), "do_blur_" + 
stupid, "setTimeout(\'document.getElementById(\"" + stupid 
+ "\").blur()\', 100);\n", true);

I also dislike capitalized function/attribute names.

Like I said, I'm not a .NET programmer, so some of my problems might 
not be as bad if I actually gave a damn enough to learn it properly.  
Also, the code I'm maintaining is very poorly written.  But the 
clunkyness of the whole .NET package doesn't inspire me in the least 
to learn it better, especially since I work in a Linux shop 
(supposedly).

</bitch>
-- 
Jeremy Stephens   Computer Systems Analyst I    School of Medicine
                  Department of Biostatistics   Vanderbilt University

Reply via email to