eWorld.UI - Matt Hawley

Ramblings of Matt

Creating Classes in VS.NET

April 12, 2004 22:59 by matthaw

I'm sitting here at work building an application using TDD (which by itself is another post, and may be coming later), and every time I start a new class for another piece of the puzzle, I'm hating on how I have put the keyword "sealed" class in my declaration. Now, this isn't a major issue, but it can be if you plan on releasing an API for customers to build against. What's my issue? Well, I'm wondering if the "sealed" and "notinheritable" keywords should be applied by default in Whidbey.

My proposition comes from the fact that it is good design practice to have your classes become "sealed" or "not inheritable", that way your users cannot accidently inherit and break changes with your API. In practice this is a big deal, and how often are you building an API, and you become lazy to allow the default attributes/keywords/accessors be applied to a API (classes specifically, making them public instead of private or internal/friend)? I'm almost betting very frequently.

I propose that in Whidbey, and future versions, that "sealed" or "not inheritable" be applied by default to all new class declarations created by the IDE. This way, you have to make an effort and think about what you're doing when removing this keyword, and hopefully make you think if you really need to do so. 

As of right now, I realize that this can be accomplished by editing the templates used somwhere deep within the directory structure of VS.NET, so please don't tell me I can do this now. What are you're thoughts, feelings, objections to this?



Categories: .NET | General
Actions: E-mail | Permalink | Comments (10) | Comment RSSRSS comment feed

Watching Channel9

April 12, 2004 21:05 by matthaw

In response to Kent (view post):

I'm finding it very hard to keep track of things. I've subscribed to the "main" feed, and I get about 100+ messages a day that I normally just delete due to people just wanting to know why something is the way it is. In reality, I just wanted to get a feed of when new videos are posted...maybe I should narrow the feed down? Oh well, I've not really gotten around to it and it doesn't bother me to hit Ctrl-D 5-10 times an hour.

I guess the major thing that I would like changed, is if Channel9 did start posting a CommentsRSS feed, and then have NewsGator be able to grab those too. But, until either of those happen I guess its just very little surfing to & reading actual complaints/rants on Channel9 and waiting for those new videos to come across.



Categories: General
Actions: E-mail | Permalink | Comments (2) | Comment RSSRSS comment feed

Server Uptime

April 11, 2004 00:31 by matthaw
I just realized today that my home server (which hosts Vault for me) has been up and running for quite some time. In fact, I believe it has been up and running as long as I've moved into my latest apartment (middle of February). Going under this assumption, I checked it out with a little tool called "uptime" from Microsoft, and I was right...its been up and running for 53 days and counting. Nice! I don't think I've ever had a server (even at work) be up this long without needing a reboot. And yes - it is updated with all the latest security updates.

Categories: General
Actions: E-mail | Permalink | Comments (4) | Comment RSSRSS comment feed

More ASP.NET 2.0 VS.NET 2005 CTP Experiences

April 11, 2004 00:13 by matthaw

I started playing around with ASP.NET 2.0 a lot more this afternoon, and I've definately found some stuff that are a great enhancement.

  • When referencing custom server controls that are stored in the GAC, you only need to have your register directive contain the TagPrefix, Namespace, and Assembly. There's no option to "CopyLocal" anymore, however it pulls directly from the GAC if the assembly lives there. Very cool, and easy for updating to future components. However, I do miss the "CopyLocal" option in case I want different applications using different versions.
  • Nesting Master Pages is awesome! I've got my overall layout with 1 content page. I then have another master page that has its masterPageFile set to the main layout. Then, in my separate pages, I reference the nested master page and everything comes together. The one thing I don't like about this is that you can't use Design view to modify nested master's and pages deriving from nested master pages.
  • I did find a bug when using the TreeView control and databinding it to Site Map Data Sources, or maybe it was the theme I applied to the TreeView...however, make a mental note. If you get a message stating that your <head> tag needs a runat="server", your <title> tag will get overwritten for some reason, and a default <title> tag with the contents "Untitled Page" will be used instead. I've submitted this bug to the Whidbey newsgroups.
  • I wish there was a way utilizing the Site Maps & Tree View to collapse everything except for the current node (or parent node if I'm in the sub-node) to be collapsed.  Take my website for instance. When you're on the homepage, the only sub-links you see are relevant to the homepage, however other broad subjects are visible with their children hidden. I'm sure there's a way to do this via code, but it would be nice to have a property for this type of situation.
  • Why is it that when creating your Site Map, the <siteMap> element can only contain 1 <siteMapNode>, however, <siteMapNode> elements can contain 0-N many sub elements? Again, I make reference to my website, in which I don't want an top node, I just want my main headings. Any info relating to this would be helpful.
  • Here's an interesting question...when working with code-behind files for web pages, why is it that the icons for those code-behind files have the resource file icon? Shouldn't I see a C# icon if it has a .aspx.cs extension or a VB.NET icon if it has a .aspx.vb extension?
  • Themeing is extremely powerful and uber cool. At first I couldn't figure out how to use themeing against custom server controls, but then after an error message saying it couldn't find my custom tag prefix, it hit me.  Just place your Register directive at the top of the skin file and all is well.  Talk about making things easy :)
  • I'm starting to enjoy not having to recompile everytime I make a change now, however I'm sure my view will turn to frustration again once I start working with classes & code that I would like to be verified against for syntax errors prior to viewing the webpage.

And that's it for today, I gotta start packing so I can get to my parents home for Easter, so I hope my little insight will help everyone out.

Happy Whidbey Coding!



Categories: Whidbey
Actions: E-mail | Permalink | Comments (3) | Comment RSSRSS comment feed

True NNTP for Outlook

April 10, 2004 22:02 by matthaw
Looks like theres finally something out there that will be competing with NewsGator and my NNTP Posting Plugin that allows for true NNTP support in Outlook. However, there seems to be issues with combining this plugin with NewsGator.  Obviously I'm sticking to NewsGator & my NNTP Posting Plugin, why ditch my own stuff.

I hate the Media

April 8, 2004 17:08 by matthaw

Preface: This post is in no way trashing or slandering the men and women that serve our country. I have great respect for those men and women serving our country during these frivolous times. It is, however, slandering the media and their recent attempts of providing "the best news around."

This morning, I woke up to do my morning routine - check email, get updated on blogs, take shower, etc.  During which, I usually have the TV set to the Today Show on NBC.  Unlike every other day, today I was enraged on what I heard. No, it wasn't a touchy story they were covering, but it was just the overall content of a interview with a family member of a man who was killed in the fighting in Iraq. As I'm listening to it, my mind starts to crank out hateful messages towards the media in these dire times. I started thinking to myself, why am I even watching this current story, why does anyone? My thoughts then shifted to completely hating NBC at that current moment as Matt Lauer probed more and more personal information out of this man, who just lost his brother, all because "it makes good news."

Why must the media cover stories like this? Why must they single out individuals who have just lost family members.  I'm sure these family members want to get their story told, however, bringing them on national television the day after their relative died is not the way to do it. Let the families grieve, let them go through the normal process that any other person in this world would go through when loosing someone they love. Why should the media make their loss "special" just because they died in combat? Do you even realize that there has been approximately 600 US men and women that have died in battle in Iraq since we invaded? Why must the media choose one person or family to "portray", when there are so many others out there that have experienced the same situation.  In reality, I don't care about these stories. Let the families grieve and get their stories published in books.  Maybe then I'll care and read them...but I don't want my morning slammed with sorrowful stories that have no relevance to me.

I further extend my hatred towards the media circling around Princess Diana and Kurt Cobain.  I have nearly the same feelings towards both of these stories as I do above.  I find it absurd that the media still digs up pointless information about both of these great individuals years after their deaths.  The whole fact that every year on (or around) Kurt Cobain's date that he passed, the media (especially on MTV) hosts "specials" concerning his life/death/music.  I mean come on, the man has been dead for 10 years now, let him rest in peace. Then, there are the issues with the media constantly spouting more and more "theories" on what actually happened to Princess Diana the night she died. I remember watching (again) the Today Show awhile back, on how there were "new, never undisclosed tapes" of conversations with Princess Diana.  Again, I state... so what, let her rest in peace.

So, why am I so adament about these issues? Well, it just drives me insane on how impersonal the media is. They don't care about the person, sure it may "seem" like that when they do a story, but in reality, they're just looking for the "best story." If that involves bringing on someone who has just lost a family member just the day before, so be it...its good news, right? I'm just waiting for the day when the media fails, when it starts reporting non-biased news, or even when they report news that I give a damn about. But, I think it'll be a cold day in hell before that even happens.



Categories: General
Actions: E-mail | Permalink | Comments (13) | Comment RSSRSS comment feed

Strongbad Makes an Appearance at Walmart

April 8, 2004 06:45 by matthaw

Okay, okay...I know Strongbad isn't real, and could never make an appearance anywhere (well short of a costume)...but I met the real life version at Walmart this eve.  This story is true, it happened in front of me and my girlfriend, and in no way do I have any relation to HomeStarRunner.

So, at Walmart, this tall lanky old geezer was checking us out.  Why he wasn't at home in bed is beyond me, but sure enough, he was working late and had an interesting way of entertaining himself.  Normally when an item gets scanned you hear a "boop" noise (and if you've never heard this, then open your ears next time!), and this noise plays a major role in the story.  So, here it is...the real life Strongbad story:

Strongbad: "Hey there, umm...alright, lets see there...doo doo doo, what ya got there"
Me: "Hi"
Strongbad: "Boop"
Strongbad: "Boop"
Strongbad: "Ohh, another one...Boop"
Strongbad: "This makes three...Boop"
Strongbad: "Boop"
Strongbad: "Okay, how about $17.25"
Me: "Umm, how about we shoot for $15?"
Strongbad: (chuckles, then turns towards the register - randomly points to some gift cards hanging there and mumbled) "Looky here, got some gift card for babies"
Strongbad: (still mumbling) "They got duckies on them...mmhmmhmm...thats weird"
Me: "Huh"
Strongbad: (still mumbling complete nonsese)
Me: "...Thanks..." (and I walk away astranged)

So yeah, if you improvise Strongbad's voice for whatever the Walmart man said, you'd get a good representation of why me and my girl friend laughed for about 10 min. all the way home.  I think they're hiring anyone at Walmart thesedays, even cartoon characters.



Categories: General
Actions: E-mail | Permalink | Comments (4) | Comment RSSRSS comment feed

Are you Bored?

April 6, 2004 22:48 by matthaw

If anyone would ask me that question right now, I would respond with "I'm insanely bored."  But here I am, sitting at work, doing nothing. Not because I choose to do so, but because there's just nothing to do. Normally I have some bit of a programming project I can work on, like WebDeploy or Resizer, but recently I've come across no more items to add into these.  Well, I'm sure Resizer could be beefed up a bit, I just don't feel like it right now.

So - here I am, writing a blog entry about what I do when I'm bored. Well, most of us would say "I program when I have free time"...sure, so do I...but like I already said, I don't have much to program right now. 

Then, there's the ever allusive surfing the internet.  Ohh, what I wouldn't give to see a "You've reached the end of the internet, please turn around" webpage.  Maybe I should create one?

Don't we forget another time waster at work, getting away from your desk and wander around the office aimlessly.  I never realized how relaxing an aimless walk was.

So - what do you do when you're bored out of you're mind?

----------------------
As a side note, since BlogJet currently doesn't have spell checking, I generally use Dictionary.com to check those iffy words.  So, when checking a few out on this post, I noticed that http://www.dictionary.com doesn't point directly to the "search & retrieve" page anymore.  Nooo, instead I have to go to http://dictionary.reference.com. You realize how much harder & longer that takes to type?
----------------------



Categories: General
Actions: E-mail | Permalink | Comments (19) | Comment RSSRSS comment feed

100th Post & Channel9

April 6, 2004 19:32 by matthaw

Here comes the obligatory 100th post -- 'This is #100! Its been a long journey to get to this point.'

Okay, since that was cheesy as hell, I guess I should fill the rest of the post with an obligatory canned plug: Channel9 is live!



Categories: General
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Central IL Dot Net - April 7th Meeting

April 6, 2004 18:57 by matthaw

The Central IL Dot Net User Group will be meeting this Wednesday, April 7th at the Microsoft Office in Bloomington, Illinois.  We will be hosting Nick Lews, a .NET Developer Evangelist with Microsoft's National Architecture Team in Chicago.  He will be discussing Web Application Security and the Microsoft Reference Application (WebHack).

If you're in the area and want to join us, we'd be happy to meet & greet you! Our meeting starts at 6:00 PM CST.  Hope to see you there!





Copyright © 2000 - 2024 , Excentrics World