Geeks With Blogs
Marcin Celej blog February 2006 Entries
Allowing end-user to change application UI
In application I write actually there is a requirement that end-user should have ability to change the UI look. My strange-user can design ui elements on each form and user control in the application. He also 'needs' to add new controls to the UI. Let's not discuss sense of the requirement as I don't like it anyway. I didn't implement the feature yet but I found in the MSDN Magazine an artcile about hosting VS designers in .NET application (The Perfect Host: Create And Host Custom Designers With ......

Posted On Sunday, February 26, 2006 1:16 PM

NDoc for .NET 2.0
For those of you who use .NET 2.0 and want to document their code with triple slashes (///) there is good news. NDoc (free tool for creating documentation from the triple slashes) is being ported to .NET 2.0. I used the NDoc in .NET 1.1 and it is great tool (especially that it is free). Each of libraries I developed was well documented so I could see (from the documentation) at which point with the development I am. I encourage everyone to comment the code and to try the NDoc, but remember it's not ......

Posted On Tuesday, February 21, 2006 6:39 PM

Transactional code pattern
In my job I have to deal with databases. When you do such things, there always is a need to do something transactionally. The pattern of doing something transactionally looks usually like this: Transaction t = DB.BeginTransaction(); try { // Do something t.CommitTransaction(); } catch { t.RollbackTransaction(); } The code looks simple at a first glance but some people create variations of the above snippet. I checked code of my coworkers and found many mistakes in the transactions usage (I am responsible ......

Posted On Sunday, February 19, 2006 7:26 PM

Design by Contract in .NET
Design by Contract is a methodology that was populated by Eiffel language. The DbC ideas have common aims with Test Driven Development (TDD). Both focus on software quality and tests written with code in parallel. The idea of DbC is based on contract - contract between client code and service. Each class is a service that provides set of methods (nothing new). Each method call is a client. Contract between them says that if the client satisfies some preconditions then service will ensure some postconditions. ......

Posted On Wednesday, February 15, 2006 6:17 PM

Windows Workflow Foundation - custom action that creates Outlook task
In my job I created workflow engine and many workflows based on it. I will not show you the engine I developed but I'd like to start set of articles on Windows Workflow Foundation - MS workflow engine. It's still in its beta version but it looks extremely interesting to me and I believe it should be point of main interest to many developers. Let's start from real-live requirements that we will try to target in WWF: Create an Outlook task, passing some parameters to it (e.g. task subject). Wait for ......

Posted On Wednesday, February 8, 2006 7:16 PM

Some principles of Unit Test creation
I am big fun of Test Driven Development (TDD). I recently read quite good article about unit testing: Write Maintainable Unit Tests That Will Save You Time And Tears. Here is an extract of the article: Fail First (before you write piece of logic, write fail test first) - do not write any test, but simulate production environment that will use the logic so the test will remain as regression test of your logic. Requirements conflict (old UT fails when new funct. is introduced) - remove or enhance old ......

Posted On Thursday, February 2, 2006 6:58 PM

Visual Studio editor guides
I found interesting feature of Visual Studio editor. You can enable it to display vertical lines (guides): Unfortunatelly to enable the lines you must change registry: 1. Find registry key: HKEY_CURRENT_USER\Software\... Editor2. Add string value there: "Guides"="RGB(220,220,220) 4, 8, 12" Here is a link to the original blog i found it on: Guidelines – a hidden feature for the Visual Studio Editor ......

Posted On Wednesday, February 1, 2006 7:33 PM

Hello World
I'm new geek in town. Let me introduce myself. My name is Marcin Celej. I live in Poland and my native language (as you probably already noticed) is Polish. I work as a computer programmer (at least I was studying this for five yeras) and I mainly work with .NET platform (I am MCAD in .NET). I find a lot of useful information in blogs so I decided to give something to the .NET community from myself. We'll see how is it going ......

Posted On Wednesday, February 1, 2006 5:20 PM

Copyright © Marcin Celej | Powered by: