Visual Studio 2008 - Early Release

Coders forum. Discuss techniques, swap code snippets, ask for help etc. relating to all forms of software development.
Post Reply
User avatar
moosedude
Baaaaaaa!
Baaaaaaa!
Posts: 6209
Joined: Fri Nov 19, 2004 1:19 pm 0
Location: Craggy Island
Contact:

Visual Studio 2008 - Early Release

Post by moosedude »

Get it here if you have a MSDN subscription, or a trial version if you don't;

http://msdn2.microsoft.com/en-us/vstudio/default.aspx

It introduces the .NET 3.5 framework which now has integrated AJAX support (about time!)

I have to say I'm not terribly keen on this new release, I don't really care too much about what new features the GUI has but I'm a little worried this release is more about providing a new feature set than improvements to the existing features.

I mostly worried about the .NET framework, having used it for time I'm seeing lots of holes in it with regard to developing websites using object oriented methods, it doesn't strike me as entirely complete and it would be a pity if some thought for the new version hasn't gone into this.

anyway, tell me your thoughts regarding this new release!

01000101 01000100 01000111 01000101

http://www.redbubble.com/people/fotofill/ buy my photos!
User avatar
Partz
Baaaaa!
Baaaaa!
Posts: 1511
Joined: Tue Apr 23, 2002 8:46 pm 0
Location: Chippenham, Wiltshire

Post by Partz »

I downloaded the beta a while back. We've been using studio 2003 here in the office and for reasons of cost are restricted to using 1.1 of the .NET framework throughout the current project.

I know that serial comms support has been in since .NET 2 but has it been a drag and drop control for all this time? (still using a cobbled together win32 interface here).
User avatar
PaulCunningham
Baaaaa!
Baaaaa!
Posts: 1218
Joined: Sun Jan 18, 2004 11:47 pm 0
Location: Walsall, England
Contact:

Re: Visual Studio 2008 - Early Release

Post by PaulCunningham »

moosedude wrote: I mostly worried about the .NET framework, having used it for time I'm seeing lots of holes in it with regard to developing websites using object oriented methods, it doesn't strike me as entirely complete and it would be a pity if some thought for the new version hasn't gone into this.
I've recently downloaded the Express versions while our TFS guy gets his act together and will have a good look in the coming weeks.

What do you think its missing then?
Cheers,
Paul Cunningham
Pumpkin Games
User avatar
Absolute_Zero
Baaaaaa!
Baaaaaa!
Posts: 3564
Joined: Wed May 18, 2005 4:11 pm 0
Location: Hilbert Hotel, Heisenberg.

Post by Absolute_Zero »

I've been on Orcas beta 2 since it became available so I can barely remember what it is that I like over VS2005... apart from not having Vista's UAC in my face on launch.

Installed last Fri, I use it mainly for C++ and it *seems* rock-solid so far.
User avatar
moosedude
Baaaaaaa!
Baaaaaaa!
Posts: 6209
Joined: Fri Nov 19, 2004 1:19 pm 0
Location: Craggy Island
Contact:

Re: Visual Studio 2008 - Early Release

Post by moosedude »

PaulCunningham wrote:
moosedude wrote: I mostly worried about the .NET framework, having used it for time I'm seeing lots of holes in it with regard to developing websites using object oriented methods, it doesn't strike me as entirely complete and it would be a pity if some thought for the new version hasn't gone into this.
I've recently downloaded the Express versions while our TFS guy gets his act together and will have a good look in the coming weeks.

What do you think its missing then?
oh, forgot to reply to this!

my main gripe is that I don't think you can fully apply the object oriented methods provided fully when developing a website. There are holes in developing user controls which aren't too friendly, dynamically create one for example uses a particular nasty LoadControl() function. I'm also at a lost how I could use a user control with a class constructor that has parameters passed into it.

The split between seperating the form design, and the code into different files can also grind a little because the links are not very concrete at times.

My main want really is code re-use, I'd love to be able to inherit from pages I've already written in the form given above (seperate files) and add stuff to them. The only way I can do that at the moment is too use a user control and that isn't ideal. Maybe I'm missing a trick here though, perhaps it all exists but my left brain hasn't engaged yet into this new way of thinking.

I would love a more fierce emphasis on polymorphism and inheritance when writing .NET coding, its just not there and everything sort of loosely fits together rather than being of a strong object orientated nature.

I thinks theres alot of potential thats being wasted at the moment in the language that I would love to see improved in later versions.

01000101 01000100 01000111 01000101

http://www.redbubble.com/people/fotofill/ buy my photos!
User avatar
AndyH
Baaa!
Baaa!
Posts: 124
Joined: Thu Apr 25, 2002 11:11 am 0
Location: UK - Birmingham area
Contact:

Post by AndyH »

You could always try master pages which can help a bit, but I know what you mean. I've not tried this version yet, still on 2005 but I've been using SharePoint Designer 2007 a fair bit recently out of necessity (basically it's the next iteration of horrid front page) which has the new render engine in the editor that allows the nice Dreamweaver like split editor/WYSIWYG view and it renders things much better. Masterpages for one look like they are supposed to!
User avatar
PaulCunningham
Baaaaa!
Baaaaa!
Posts: 1218
Joined: Sun Jan 18, 2004 11:47 pm 0
Location: Walsall, England
Contact:

Re: Visual Studio 2008 - Early Release

Post by PaulCunningham »

moosedude wrote: my main gripe is that I don't think you can fully apply the object oriented methods provided fully when developing a website. There are holes in developing user controls which aren't too friendly, dynamically create one for example uses a particular nasty LoadControl() function. I'm also at a lost how I could use a user control with a class constructor that has parameters passed into it.
Yeah, UserControls are a bit of a hack / pain. There more like glorified include files. You could always do CustomControls but obviously they're a bit more work but either way you'll need a default constructor as the framework requires one (unless you want to create them all dynamically that is :) )
moosedude wrote: The split between seperating the form design, and the code into different files can also grind a little because the links are not very concrete at times.
Not really sure what you mean here.
moosedude wrote: My main want really is code re-use, I'd love to be able to inherit from pages I've already written in the form given above (seperate files) and add stuff to them. The only way I can do that at the moment is too use a user control and that isn't ideal. Maybe I'm missing a trick here though, perhaps it all exists but my left brain hasn't engaged yet into this new way of thinking.
Yeah, you're missing a trick :)

You can have MyBasePage inheriting from System.Web.UI.Page and then derive your other pages from MyBasePage - the designer won't do it for you but you can simply change the declaration at the top of the page manually.

Partial classes allow you to specify code in different files for the same class too.

And as mentioned above MasterPages will give you a nice common UI.
moosedude wrote: I would love a more fierce emphasis on polymorphism and inheritance when writing .NET coding, its just not there and everything sort of loosely fits together rather than being of a strong object orientated nature.
I'm not really a fan of the AutoEventWireUp junk they added - I'd much prefer overriding On.... events to be the mandatory way of doing that stuff. But even then someone could attach their own delegates to events to fire up some other arbitrary method to handle Load or Init or whatever.

I'm looking forward to the Linq stuff - not so sure about the MVC framework.
Cheers,
Paul Cunningham
Pumpkin Games
User avatar
moosedude
Baaaaaaa!
Baaaaaaa!
Posts: 6209
Joined: Fri Nov 19, 2004 1:19 pm 0
Location: Craggy Island
Contact:

Re: Visual Studio 2008 - Early Release

Post by moosedude »

Thanks for the reply Paul :)
PaulCunningham wrote:
...
moosedude wrote: The split between seperating the form design, and the code into different files can also grind a little because the links are not very concrete at times.
Not really sure what you mean here.
I was refering to how you can create two files for a webpage. for example the pages, myPage.aspx and myPage.aspx.cs. the former being for the web form design, whilst the latter for functional code.

my problem is that the link between these two files is rather fragile, in the myPage.aspx file you can specify a "codefile=" parameter which links the two files. sometimes when you copy files to create new pages, updating this link can be forgotten, but the new webpage will usually still work.
PaulCunningham wrote:
moosedude wrote: I would love a more fierce emphasis on polymorphism and inheritance when writing .NET coding, its just not there and everything sort of loosely fits together rather than being of a strong object orientated nature.
I'm not really a fan of the AutoEventWireUp junk they added - I'd much prefer overriding On.... events to be the mandatory way of doing that stuff. But even then someone could attach their own delegates to events to fire up some other arbitrary method to handle Load or Init or whatever.
Yes, me too. the events system just appear to be in a mess, even more so when you have events inside userControls to deal with. and it gets worse when you start too dynmically creating controls. (I understand why it is how it is, but I don't like it!)

I've encounted an unusual situtation were the only way I can get a website functioning correctly is too call the same "render" function twice, both in the Page_Load event and in the OnButtonClick event. The annoying thing is that onPostBack, dynamic buttonClicks won't work unless in the Page_Load event they are recreated.
PaulCunningham wrote: I'm looking forward to the Linq stuff - not so sure about the MVC framework.
Hmm, not heard of Linq; is this it?

http://msdn2.microsoft.com/en-gb/netfra ... 04594.aspx

although that appears to be written in the language of microsoftese ;-)

01000101 01000100 01000111 01000101

http://www.redbubble.com/people/fotofill/ buy my photos!
Post Reply