Insights and outlooks on software development


More extensions

Thursday, March 27, 2008 by Thomas L

A while ago, I posted some links about which Firefox extensions I use. A small addendum to that list: bookmarks: replace the normal Firefox bookmark handling with the paradigm:

IE Tab: launch Internet Explorer in an embedded window (Windows only, naturally)

Oh, and why/how do I use Foxmarks bookmark sync and at the same time? Well, I sync my Bookmarks toolbar folder and some quick search bookmarks (more on that later, I suppose). All other bookmarks are now stored in my account.

Print screen key in VMware Fusion

Sunday, March 16, 2008 by Thomas L

As you might or might not know, I use VMware Fusion under Mac OS X Tiger to run a Vista install and code .NET. As I sat and wrote a blog post, I found I needed to dump what was on my screen, and started looking at my keyboard around where the Print Screen key normally is. But as I use a mac keyboard, the print screen key was nowhere to be found. Via the VMware Fusion FAQ, it turns out that I can press the F13 key to send a Print Screen keypress to Windows.

Using Alt-F13 (or, since I use a mac keyboard, Apple-F13), does a normal Print Screen on the active window only.

Hmm, I only wonder how I'd do if I didn't have access to my full size mac keyboard (which only contains the F1-F12 keys).

Technorati Tags: ,,

Visual Studio 2008 tip: prop and propg

by Thomas L

I'm not trying to steal Sara Ford's job, but this is a tip that tend to be quite overlooked among those who use Visual Studio regularly: the prop/propg syntactic sugar.

Whenever you feel that you'd like to implement a normal boring set-get property that writes to and reads from a private field, just write prop and press Tab. Visual Studio will give you a snippet to fill in:
The code above will create a public getter and setter for the string property Text.

Doing the same with the snippet propg will give us:
This gives us a private setter and public getter.

Since this is only syntactic sugar, I'd like to know what will be generated by the compiler, so I fired up Reflector:
So, a getter and setter, public/public and public/private, respectively, with two private fields. A quite nice way to make the code contain less noise. (Of course, there are other ways as well. :)

Technorati Tags: ,

Filed under having 0 kommentarer  


Friday, March 14, 2008 by Thomas L

Filed under having 0 kommentarer  

VS Command prompt here

Monday, March 10, 2008 by Thomas L

More or less as a 'Note to self':

Technorati Tags: ,

Filed under having 0 kommentarer  

How could I live without this?

by Thomas L

Filed under having 0 kommentarer  

Testing syntaxhighlighter

Monday, March 3, 2008 by Thomas L

Got the tip from this blog about how to get nicely formatted c# code by using syntaxhighlighter. As I am writing my blog posts from Windows Live Writer, I quickly found a plugin to be able to use it directly from there. So without further ado:

    public class User : EntityBase
        public string Name { get; set; }

Well, I hope it's better than the previous one.

Filed under having 0 kommentarer