... Home Contact

Krzysztof Koźmic's blog

Designed in Poland, assembled in Australia.


Show appreciation: My Amazon.com Wish List


Me@Twitter

    Currently reading

    Article Categories

    Archives

    Post Categories

    MyPersonal

    Syndication:

    May 2008 Entries

    On generics limitations

    I wish generics in C# were more powerful. Why this is not legal?public class ServiceHost<TService> : ServiceHost where TService : class { public ServiceEndpoint AddServiceEndpoint<TServiceInterface>(Binding binding, string address) where TService : TServiceInterface { return AddServiceEndpoint(typeof(TServiceInterface), binding, address); } } Technorati Tags: Generics

    Everyone has to start somewhere

    Today I found post from Ayende, called What I did on 2005. It's a repository of links to posts from his blog in 2005 summing up the most important things he did. With posts like "Learned to use Subversion", "Got into testing UI", "published first OSS project". It got me thinking - to get good at something you have to start somewhere. No one is great right from the start, and everyone has to start somewhere. I'm not sure why but I found it very positive.

    Posting to Twitter with Launchy

    [UPDATE2] This tool has been deprecated. I leave the download links as they are, but if you want to interact with Twitter from within Launchy you better check out updated version of this tool here. [UPDATE] I uploaded a binary version of the tool, for those who don’t want/can’t deal with source code. Grab it here. I've been using Twitter for few days now, and I've tried quite a few options to use it. Currently I've settled on three different ways of interaction with the services (excluding browsing its website) When...

    Can you spot a bug?

    Can you spot a bug here? Took me 20 minutes to find it.   private List<string> GetLanguages(string path){ var languages = new List<string>(); if(File.Exists(path)) { using(var reader = new StreamReader(path,_encoding)) { var dscReader = new DscReader(reader); while(dscReader.Read()) { ...

    Twitter

    Ok, in case anyone cares, I set up an account on Twitter. I'm trying to set it up, and figure out why people seem to love it so much. I downloaded an Adobe AIR-powered client called Twihrl, and I find its UI experience... different. I also put a Twitter widget on the blog. We'll see what hatches out of this. Technorati Tags: Twitter, Adobe AIR

    Three times have I received The Order of Lenin...

    I just came back from pre-premiere screening of Indiana Jones and the Kingdom of the Crystal Skull. To make it short: I haven't had such fun in cinema for a long time. If you liked the old movies - you'll love this one - it certainly is not the worst of them. Despite of the fact that the whole movie is just one giant product placement of refrigerators ;) Even Shia LaBeouf is tolerable. The movie is very well balanced, with lots of action, without long boring-ish moments like "and the Temple of Doom", and without cheap...

    I possess all the knowledge

    I found those images great analogy to how, we not-so-humble programmers learn: languages, design, frameworks. (All images by Chris Jordan). For the sake of discussion let's use learning a language, as an example. This can be however extended to anything. First, we read, or hear about that new cool language. So we grab some introductory book, or attend a presentation on it. After a day or two, one might say confidently to himself: It's great, my hello world runs flawlessly and I'm proud of myself. Life's good. I know the syntax, I know how the syntax for while...

    Framework Tips VIII: Enums and Extension Methods

    I have somewhat mixed feelings towards enums in C#. On the one hand, they can greatly improve readability of your code, but on the other hand, they are not much more than textual masks on numeric values. You can't inherit from them, you can't use enum as generic constraint (for which I see no good reason), and you can't extend them... Or can you? With the addition of Extension Methods in C# 3.0 you finally have the tools to put some life in them. Consider you have an enum like this:public enum Mp3Player { IPodClassic, ...

    Agile in Poland

    I did a little experiment today. I went to biggest job-offering web site in Poland, and searched by keyword: agile. That's all, I didn't specify city, salary, branch nothing, just the keyword. Here's what I got: The grand total of 11 offerings. 5 of them (underlined in green) abroad, 6 in Poland (blue). Out of those 6 only one is in Krakow - the city where I live. I don't know what to think about it, but it makes me sad.   Technorati Tags: Agile, Job

    ALT.NET for dummies

    ALT.NET is a wonderful movement. It's a bunch of very smart and open minded people valuing good practices and using common set of tools. It's discussion group is a great place to share ideas and ask for tips and help. It's all great, however there's one thing that bothers me. The site says: We are a self-organizing, ad-hoc community of developers bound by a desire to improve ourselves, challenge assumptions, and help each other pursue excellence in the practice of software development. It's true. However, as much as I feel strongly about patterns, practices and tools advocated by the...

    ALT.NET Thunderbird configuration

    ALT.NET discussion group is quite active. There are around 1700, to over 2000 posts per month. It's easy to drown in the flood of information, and if you want to benefit from the group you need to develop a strategy. Here's mine: I use Thunderbird, as my email client, and for the group as well. In its basic form, it's not so well suited for the job of handling threaded discussion, but same as Firefox - you can expand its capabilities with extensions. The first thing to do, even before you go looking for extensions...