Shake It Babe

There is one feature in Windows 7 that I though was useless. Basically, you take title-bar of any window and move mouse (shake it) while holding left mouse button. That action causes all windows to disappear thus leaving your window as single occupant of desktop space.

Today I wanted to copy one file to desktop. I had mouse in my hand but also a lot of windows in path between explorer and desktop. There was no easy way to see desktop except minimizing all windows except one with my file. Than I understood.

This shake it motion is for people so lazy that one additional minimize all would be troublesome. That said, I did like it. :)

KulenDayz 2009

If you work with Microsoft technologies, you should definitely visit KulenDayz 2009 conference. It is community organized event held in Croatia with quite a few international speakers.

Conference will last for three days. First and last day will be fun, but second day will be all about learning. Sessions will be mix of Code camp style sessions (no fluff, just code) and Chalk&Talk (hanging around with flip chart). I definitely recommend later since amount of information you can get during informal chat is just amazing.

While small fee is required for lodging and events, conference sessions are completely free. Do feel free to register and join us (be quick, number is limited).

P.S. If you are wondering, Kulen is type of spicy sausage native to Slavonija.

Characters Missing in Action

I live in small country named Croatia. Like most of countries on “old continent” we use some specific letters. For Croatia those specific letters include Č, Ć, Đ, Š and Ž. Usual way of entering those letters is to use Symbols screen and select from all special characters. It is not ideal, but it is manageable.

Only problem is letter Đ. For some reason, Microsoft decided to omit that one from symbol selection. Don’t get me wrong - that letter is supported - problem is how to enter it on mobile device.

To solve it, I just do entering of this letter on computer and let it synchronize to mobile. If I really need to enter it on machine, I just open some old contact with that letter and copy-paste it in correct place.

Only issue I had with that plan was that Windows Mobile 6.0 Standard (Smartphone) has no copy-paste support out-of-box. However, there is nice freeware program called VITO CopyPaste that works pretty good.

Which Brace Style to Use

Among C-ish programmers, there is often dispute which brace style to use. K&R style (named after authors of The C Programming Language)

void Main() {
  Console.WriteLine("Hello World!");
}

was very popular once, but Allman style

void Main()
{
  Console.WriteLine("Hello World!");
}

is what seems to be popular now. Basically only difference is where to put starting brace. Whether it stands behind control statement or it stands on dedicated line. And that is something that people cannot decide for quite a while now. Both of them have their advantages that I will not discuss here (there is pretty good article on Wikipedia).

I am currently using K&R style. Here I will try to make two points why everyone should switch to Allman.

Visual Studio defaults

Default brace style for C# is Allman. If you need to modify code written by others, that code will rarely use K&R. While Visual Studio and C# do give you great options of reformatting code, I consider doing that just being rude.

I was known to change formatting of code in other people files and it took me a while to understand how unreadable whole project becomes when half of files use one style and half another. Now, if project has established style, I will continue adding stuff in same style.

Readability

If you are used to code in one style, you are better at scanning code in that style. If you get Allman code, it helps to be used to Allman to read it faster. It does not hurt too much if your code preference is different, but there is some speed advantage.

Conclusion

I can see that I should code in Allman all the time. I know it would be beneficial. But I cannot force myself to do it. Although all reasoning says that Allman is more readable, it seems that my mind is just not used to it. It just likes to find them by indentation rather than by matching braces.

Maybe it is because I have history in VB which looks quite like K&R in indentation style, maybe it is because I never gave Allman more than a week to get used to, maybe it is just because I like to be different.

Against of all reasoning - I am sticking with K&R for now.

MAXtv

I think that my IT background caused me to get IPTV as soon as it was available to me. Service that I decided on was MAXtv.

It had few quirks now and then, but I was generally satisfied. Few days ago they even said that there will be update making that service even better (more human-friendly, some would say).

Installation that started at 08:00 is now more than one hour in progress. Customer service expects that everything should be back to normal by noon.

Don’t you do that kind of update during night time?