Refactoring

Mar 13 2016

From time to time, your developers charge you (or report hours) for refactoring or dealing with technical debt? What are they talking about? What is refactoring? This is explanation for non-technical people.

I’ll use analogy with decluttering a wardrobe. Because refactoring is kind of tiding up. Over time you’re adding stuff to your wardrobe and sometimes you take something away. This is your development.

Every time you make a change in your wardrobe, you straighten the immediate surroundings. That’s refactoring. Idealy done after each task. Everyone of us is sometimes in hurry, don’t we?

No matter what you do, over time, items in your wardrobe are not laied out optimally. It gets difficult to find something and space is not used effectively. It’s time to deal with it. You take things out, reorder them, repackage them if needed and put them back. You don’t add new things, you’re just optimizing. Sometimes this is also called refactoring or it is called dealing with technical debt. You don’t add any new features you’re just making code more readable and effective.

Book: Talking to Tech Leads (Patrick Kua)

Feb 06 2016

This book is full of experience of actual Tech Leads. They share their experience on what is their job about, what are their challenges and what skills they need.

Continue Reading »

Cache in .NET

Oct 08 2015

Sorry, this entry is only available in Czech. For the sake of viewer convenience, the content is shown below in the alternative language. You may click the link to switch the active language.

Máme cache na data a tzv. output cache. Spousta principů je stejných, tady se zaměřím na output cache a o té datové se jen zmíním na okraj. Co je to cache. Česky mezipaměť. Je to místo, kam si mohu uložit “drahá” data a pak se na ně zeptat. Nejdůležitějším aspektem cache je, že co do cache vložim, to tam NEmusím zase najít. Continue Reading »

Dispose and Destructors in C#

Oct 08 2015

Sorry, this entry is only available in Czech. For the sake of viewer convenience, the content is shown below in the alternative language. You may click the link to switch the active language.

Jak správně na Implementaci IDisposable objektů aneb jak funguje Garbage Collection a destruktory v C#.

Continue Reading »

Spare arrays

Oct 08 2015

Sorry, this entry is only available in Czech. For the sake of viewer convenience, the content is shown below in the alternative language. You may click the link to switch the active language.

Spare Array (česky řídké pole) je jednorozměrná datová struktura, která slouží k uložení pole dat. Analogickou vícerozměrnou datovou strukturou je řídká mřížka. Podstatou této struktury je, že v poli je uloženo velké množství prvků jedné stejné hodnoty. Typicky je v poli uloženo velké množství hodnot 0 nebo null. Proto budu nadále dělit prvky v poli na nulové a nenulové.

Continue Reading »