December 2008 - Posts
… to everybody!
Leave a computer turned off and stay with your family just for one day. And then go again into your code :)
Have a nice holidays, see ya after new year!
Are you also confused with all those connection strings for every DB just a little bit different? And how to provide security, how to pass username and password, how to …
Well, there is a very nice site caled ConnectionStrings.com where you can find that damn strings for almost every database, that exist on this world. Check it out!
…is the direct translation how our event in Slovenia is called (Študent je car). We did some presentation about new Microsoft technologies, to be exact, agenda was:
- Silverlight 2.0
- Visual Studio 2010, .NET Framework 4.0 and C# 4.0
- Live services
- Windows 7
So, i did a presentation of new features (with Bojan Vrhovnik) in Visual Studio 2010 and shown some demos for C# 4.0, including dynamic type and optional parameters. So for all readers out there, here is my part of this event, so you can download and check demo & slides.
Again, you can find it on my SkyDrive.
Recently I was testing browser from Google, caled Chrome and the feature, which very impressed me, was so caled ”Create application shortcut”. But after few crashes I went back to “good old” Internet Explorer 8, wich is kind a best choise for me.
But I liked that feature so much,I decided to create my own little “Web Application Wrapper” as I named it :). So after a few hours of coding, woala!, there was my super duper application.
After a few days of usage, I decided to share it with other users of Internet, so I put on Codpex. If you don’t know, that is Microsoft’s site, where community can put their open source projects. It supports wiki, documentation, surce control (it supports various providers, like SVN and Team Foundation Server) and all other fetures, that would be expected from that kind of site. So very powerfull envirment.
Anyway, check that application by typing (or clicking) this URL: http://www.codeplex.com/webappwrapper
Leave a coment if you like it, request a feature, report a bug on that site. If you are interested in contribution, do not hesitate to contact me via contact form.
I’m just prepering for a presentation of new features in VS 2010 and .NET Framework 4.0, so let me give you just a little sneak peak into new cool features of C# 4.0:
dynamic type
Very short said, it’s something like var in script languages. But let me give you a simple example:
dynamic test = new MyObject();
and even MyObject doesn’t have method (for example) called DoSomenthing(), you can write:
test.DoSomething();
and compiler will compaile with no errors. You would just get an runtime exception, saing that object doesnt have that method.
In real world that can be used for example in looping through some array, wich is defined like object, but you know, that you have in array only strings.
optional parameters
This is best explained through simple example, where I have one method, defined like this:
void DoSomething(int x, int y, int z=5) { … }
And when calling this method, i can leve out z parameter (it will take the default value defined in method) like this:
this.DoSomething(5,3);
And it’s even better – you can mix parameters in calling functions and define parameters by its name:
this.DoSomething(y:3,x:5);
There are some more cool features, especially about Office developement, but you can find that information on the web :) .
I hope you get the picture – more info you can find in this cool video or this blog post where you’ll find some links about other cool fetures in C# 4.0.
Last month I had a workshop about bulding GUIs with Windows Forms. We were working on some principles how to build a good user interface, what is important and how to use already build-in components for rapid develepement of Windows applications. It’s audience was mostly students with little or almost none knowledge of Visual Studio and Windows Forms.
Unfortunaly (for all non-slovene-language-readers out there :)) it was not in english, but you may still find some usful information besides example application.
Basic topics coverd by this workshop were:
- very little theory of building good GUIs
- some bad examples of GUIs
- something about planning (“drawing” of GUI in Visio and why is that important)
- basics about working envirement (aka. Visual Studio 2008)
- basic components (TextBox, Button, Label, etc.) and how to interact with them (aka. using events)
- advanced components (BackgroundWorker, Printing, Form validation)
- building your own components (and choosing between user control, component and custom control)
- and some more topics (MDI forms, Settings, Resources, deployment aka. setup project)
We did some examples and at the end there was a very good example how NOT to create a user interface :)
And just for feeling, some links if you’re interested in that topic:
All of the files used at my workshop can be found on my skydrive.
Hello folks, thats just my first and testing entry for my newly created blog :)