Hipsterskie prawa i zasady – vol. 1

Jednym z mniej znanych i dość mocno zapomnianych - subiektywna opinia - przez środowisko programistów jest prawo Demeter. W potocznym języku - zasada jednej kropki. Cóż to takiego? Chodzi o to, żeby odwoływać się tylko do najbliższych znajomych. Powiedzmy, że klasa Me zawiera w sobie odwołanie do innej klasy Friend: Pseudokod Metoda zawarta w powyższej klasie odwołuje … Continue reading Hipsterskie prawa i zasady – vol. 1

XML Serialization, part 2

As I promised, I made an example of using serialization and deserialization in C# First of all we have to create class of objects which will be serialized/deserialized, let's say Person.cs: Then we should write a sample program which would do this 2 operations: As you can see, first we serialize list of objects, and … Continue reading XML Serialization, part 2

XML Serialization

Today some information about object serialization without any examples, which are going to be in a 2nd part of this article (nearest future). What does serialization mean? Why should/shouldn't I use it? Situation: You have a huge IT project and someone asked you to make some optimization. It is too slow, it needs too much … Continue reading XML Serialization