CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

Peter's Gekko

public Blog MyNotepad : Imho { }

October 2003 - Posts

  • Paper weight.. anybody got a luggage zipper ?

    Today is the last day. Tired but content. Had to pack all my stuff in the hotel. Came with nothing and am leaving with almost to much to carry. For a moment I considerd to use also the Sponge Bob rucksack, bougth yesterday at Universal, as well. In the convention centre they have a luggage room, they even organize shutles to the airport. Everything is so well organized.. amazing.

    Enjoy the last bits..

  • A sip from the webhose

    Just back from the double session by Nikhil Kothari on creating web server controls. He's absolutely the ultimate geek, the amount of really good and deep code he can pour out over his audience is unprecedented. As he is a very good and clear coder : he's one of the authors of the beautifull written MS book "Creating web server controls and componenets". There is a lot of techinical details of asp.net web pages you can learn from sessions like this. It will take me days to destill everything from the samples, but there are two things I would like to present here :

    In Whidbey web controls have, beside the viewstate, a controlstate property. It is a light weigth container for data which is stored in the viewstate and cannot be switched off. A control should use it to store those properties whose state should allways be preserved over roundtrips for the control to work properly. A typical example is the SelectedItemIndex in a datagrid. For this to work in 1.x you have to set the grid's viewstate to on. Which leads to all data in the grid also ending up in the viewstate. Which is an enormous waste on the wire if you reload the data on every roundtip, like in a grid to edit database data. In Whidbey you can switch of the viewstate and still have your selectedindex. Great !

    Another new thing in the Whidbey is the callback, which works side by side with the postback. A callback does go back to the server but does not lead to a full page rebuild in the browser. How it all works is pretty complicated but the user experience is that you see spellingchecks being performed on the server while you are typing in the browser. Pretty amazing. Who said that a browser is just a "poor" client ?

  • Milionare clients

    Recently I blogged a little on one aspect the VS tools for office. Here at the PDC I saw version 2, which comes with Whidbey. And it's a whole new ballgame. Behind the scenes there is still the office automation model, but they have done their best to hide that. Some VSTO 2 features:

    • Build an Office app on a Word or Excel document inside VS.NET Whidbey
    • Drop Winform controls on the (Office) document
    • Embed an XML data island in the document
    • Embed (or link) the assembly in the document template
    • Program against real .net objects, with .net events
    • Easely create smartpanes (the thing you get pressing F1 in Office 2003)
    • Communicate with a backend using a webserver

    You communicate with the contents of the sheet using just two classes, range and list. Range objects map to named ranges in the sheet and have very handy events, like onchanged. The best thing off all is that every reason for using VB.net instead of C# is gone (:>) to build the richests clients you can imagine.

  • Meet the experts.. and me

    Tuesday night we had the oportunity to talk to the MS people in person. And there we were, face to face with Anders Hejlsberg, the C# man.

    I think the focussing light of my camera startled him a litle, it did scare me the first time I saw that in action. Regarding that, I am quite surprised by the low visible security level on the conference. No bag searches, no gates, everything is vey easy going. Anyway all of us had a very relaxed talk on the language features of C#, quite often Delphi came up. As well as C++ and Java.

    Anders did mention some future things he would like in the language. With the iterators and generics in place it would be nice to add some things to the language which operate on database data, something like a where in a list. Another interesting detail was on event-handlers. These days you have to check whether there is an event handler assigned before calling it. They did investigate the possibilty to add an invoke method, which did the check for you. The main reason that has not made it was to prevent the language starting to look old. There should be just one way to get something done, not two. Which does make sense.

    To conclude a picture of me with Anders. Twenty years of shared programming joy. Thanks man, up to the next 20

     

  • Anders is anders

    Sometimes it can feel a little apocalyptical over here. Outside the skies are brownish red due to the fires nearby, inside I've just been to an exorcism by Doug Purdy. If you think Don Box does put a lot energy in his presentations, you've not seen Doug yet. Both work on Indigo. Yesterday was an introduction on Indigo by Don, today I followed three in-depth talks on Indigo. Well tried to follow three, one was so full I couldn't even get in, had to watch a TV screen in the hallway. It gave me a far better view on what Indigo is, I'll try to blog on that later on. Need to think a litlle more on it first.

    Todays top attraction was Anders Hejlsberg. Quite a different talk (those who don't understand Dutch, in my native language anders means different). Anders is the creator of the C# lanuage and did a presentation on the new features in version 2.0. He had quite a hall but in contrast to the talks I had seen so far it was not filled to the last seat. Which is a pitty, he is a geat speaker, and will not speak again this conference.

    The new features of C# pop up in every other talk. The custom result sets in Yukon, the reduced amount of visible code of windows- and web-forms, the (de-)serializers in Indigo adapting to the actual type they will (de-)serialize; all of that is made possible in such an elegant way thanks to the new language features of C# (and the CLR). There are two small but very, very handy features I would like to highlight here :

    • Nullable value types. You can set an nullable integer to null. Everybody who has done any database programming will like this. To the database 0 and null are totally different things.
    • Different visibilty in the getter and the setter of a property. Take this

    public string Name {
    get { return name;}
    protected set {name = value;}

    If you want to know more I suggest you buy his book, wednesday there's a signing session at 1pm in the book store.

    Thats all for now, stay tuned.

  • Where are the junkies ?

    Are the dnj's represented on some kind of way on the PDC ? I had expected a booth, but did not find anything or anybody yet.

  • (Try to) make the connection

    The network over here is really stressed, sometimes it's just to frustrating to work with. It loos like everybody brought and their laptop and a PDA with WiFi. Trying to connect to the wireless my notebook always reports a couple of networks I can connect to, some of them official, some peer to peer. My hotel doesn't have WiFi but when I switched on my machine last night it reported one nevertheless. Probably another jet-lagged developper who couldn't sleep. I didn't try to make that connection..
  • The new and the old

    There is so much new content over here, and there are some many people blogging on that.... I'll save that up. It's gorgeous anyhow....

    The one intriguing thing to me was that the Longhorn graphics engine is based on vector graphics. Long, long ago I used to work on mainframes. All the graphics we had were vector graphics, a kathode ray drawing on the surface of the Tektronix or a plotter pen drawing something. Then came the PC and the bitmap. And now we're back to vector graphics again. It's all a circle.

    Some basics to all the new stuff :

    • Learn more about XML
    • Learn more about XML-schema XSD
    • Use typed datasets

    Not very new either.....

  • Wish you were here

    I think everybody made it to get here. And even more, every session I've been is overcrowded with people standing, sitting and even lying in front of the screen to get their share of all the new stuff

  • Tablet PC, a multifunctional device

    As seen on last nights book-party

    Jeroen from Holland told me about a new generation of fuel-cell batteries running on alcohol. "I'll have a corona and my notebook would like a wodka"

  • Good morning (?) PDC

    Woke up in the middle of the night again. My internal clock told me it was time to get up. Just jetlagged. But now I'm really up and ready for the PDC keynote. Yesterday I synced my notebooks clock with local (Pacific) time, mainly to have a better view on the blogs in FeedDemon. Outlook plays a little trick on you then, it adjusts the time of all of your appointments. Which makes sense but not for everything. I had entered some main events on the PDC in Outlook at home. And now I have to go to a session at 2 in the night.....

    Suggested feature: give Outlook appointments a time-zone property. Default value will be your local timezone. I remeber Pocket PC doing somethig with multi-timezones, have to look that up.

  • Got there in time, got it in time

    The fires around LA put the people over here in a very favoured position. "Hey, I got a ticket to the PDC and I even made it to get there". Fantasies of people trying to get buses from San Fransico to LA and Bill Gates doing his keynote by live-video. Or transmitting the presentations to all airports where thousands got stuck on their conference pilgrimage. It will not be that dramatical in reality but I wonder what tomorrow, when the conference realy starts, will be like.

    This evening there was a book-party. I met all the Apress people and we had a very nice time. Apress has quite a row of titles in the PDC bookshop. We had a lot of nice chatter and it will realy be nice to be writing for them.

    I was somewhat surprised by the bookshop's small amount of "The C# programming language" by Anders Hejlsberg, Scot Wiltamuth and Peter Golde. Next wednesday they will have a signing session. I have secured my copy, lets hope the shop will cart in new supplies by then, so you can get yours.

     

  • The weight of security

    Well, here I am in the tools and language lobby. Comfortable but a little spooky, someone is shooting them up on an X-box with the volume turned up. There are tables which have a mains connection and a fixed network connection as well. I tried that to save some battery, but didn't get it to work straight away. My own fault, my adapater has a fixed IP-address, souvenir of the home net-work. There are very helpfull pdc network technicians around, but I don't want to spend too many time on that, let's code ! The wireless is perfect and next time in the hotel I'll pick up my mains-adapter.

    Collected the conference bag. Pretty heavy. The main reason for that is a thick MS-book : "Writing secure code". Now the only investment in security you have to do is read it. Over 750 pages.

    A thing I have to do is activate my firewall....

  • I'm blogging this... And so are you!

    Sundaymorning in the central hall of the convention center. I'm there and so is the Wi|Fi network. According to all the T-shirst around I'm not the only one blogging this. Execept that mine is printed front-to-back. Or is everyone else wearing their I'm blogging this reversed ? I tried switching mine ...

    Another first impression is that the Netherlands are well represented over here. On the plane I met Sander Gerz of devtips.net and dotned, in the shuttle from the airport Stef I knew from Perfectview and here I hear Dutch and Belgium all around me. Or is that the jetlag ?

  • Going to California

    At last. I have:

    • Emptied my inbox
    • Wrote a proposal for the implementation of some entangled rule. I don't want to think about real bussiness rules on the PDC. Let's code. Pure and not hindered by any real-life situations.
    • Finished my article on passing xml in and out of webservices and the demo app. It will be republished by MSDNAA !
    • Deleted all unused stuff from my notebook, making space for the new goodies.
    • Run through my schedule for the 10th time.
    • Hugged my kids goodnight

    And tomorrow morning, very, very early I'm off. See  you in LA.

    Peter

More Posts Next page »