Attention: We are retiring the ASP.NET Community Blogs. Learn more >

Gunnar Peipman's ASP.NET blog

ASP.NET, C#, SharePoint, SQL Server and general software development topics.

  • Silver bullet anti-pattern

    I will continue my little serie about anti-patterns of decisions and activities that may screw up projects and make developers (and why not also others) life hell. Now let's look at silver bullet anti-pattern. It is about using unknown tools and technologies in the place where one shouldn't never do that.

  • How I use Hungarian notation?

    Well, this post is not my attempt to start millionth flae war about variable naming conventions. It is my explanation how I use Hungarian notation and why. By the way I am not dedicated fan of any convention, so starting flaming here has no point. So let's see why and how I use Hungarian notation.

  • var is like (good) wine

    Keyword var is cool thing we can use to make our code more readable for other programmers and why not - reviewers. But var can also be used to make our code difficult to understand. In this case, lte's say, we are overusing var. So, var is like wine - if one takes glass of it then everything is okay in the morning, but if somebody takes it couple of bottles then the morning will be awful. Or let's say - too much var will kill you?

  • I-Don't-Care Anti-Pattern

    It is easy to find articles and blog entries about patterns, design and good practices. But there are not so much information about anti-patterns. One of the worst anti-patterns is what I call I-Don't-Care Anti-Pattern.

  • Code Complete 2

    Code Complete 2
    Code Complete: A Practical Handbook of Software Construction
    Code Complete 2 is very good and must-be book by Steve McConnell for all developers. The book covers many aspcets of coding and gives very good advices about how to organize and write your code, how to comment and document it and how to write code without ruining yourself.

  • Interface for Processes

    I had to write one data import/export utility that moved data from one database to another. Once I was finished the first round of coding I found one thing that needed refactoring - the import/export process wasn't generalized. It was part of importer/exporter utility main class (it was console application). After some refactoring I got some common things to use in other tasks like this.

  • Don't Make Me Think

    Don't Make Me ThinkDon't Make Me Think by Steve Krug is the definitive guide to user friendly web pages. This book doesn't tell you about how to make HTML pages or how to design them. This book tells you what to keep in mind when dealing with web pages and how to make your web pages user friendly.