2012 archive

Dec 08 2012

Software Requirements – Part 2

Productive C# Logo

This is the second part of the summary of the Software Requirements book. Previous posts: Software Requirements – Part 1   Let’s continue our discussion with new questions. Who is a customer? An individual or organization who derives either direct or indirect benefit from a product. It is clear that customer development relationship is extremely …

Continue reading »

Permanent link to this article: https://www.productivecsharp.com/2012/12/software-requirements-part-2/

Dec 07 2012

Software Requirements – Part 1

Productive C# Logo

In the 1995 the Standish Group did a very revealing research called The Chaos Report. The research shows a staggering 31.1% of projects will be cancelled before they ever get completed. Further results indicate 52.7% of projects will cost 189% of their original estimates. Lack of user input and incomplete requirements and specifications were listed as …

Continue reading »

Permanent link to this article: https://www.productivecsharp.com/2012/12/software-requirements-part-1/

Dec 06 2012

Top Coder Problem – Boxing

Productive C# Logo

TopCoder is an amazing platform to challenge yourself. I decided to start posting my solutions to problems with the following purposes: Stimulate myself to practice more Stimulate my friends to solve the problem Stimulate my friends to join TopCoder and challenge themselves Compare and contrast different solutions Notes: TopCoder only accepts solution written in C# …

Continue reading »

Permanent link to this article: https://www.productivecsharp.com/2012/12/top-coder-problem-boxing/

Nov 18 2012

The Facade Pattern in .NET

Productive C# Logo

The Facade Pattern provides a unified interface to a set of interfaces in a subsystem. Facade defines a higher level interface that makes the subsystem easier to use. The Facade Pattern is the simplest of the patterns and it is something that many developers probably used a lot in the past without even knowing that …

Continue reading »

Permanent link to this article: https://www.productivecsharp.com/2012/11/the-facade-pattern-in-net/

Nov 18 2012

Scope of Local Variables in C# and C++

Productive C# Logo

Consider the following code in C++: This code actually compile and the output is the following: The important thing to notice here is that in C++ is possible to declare a variable with the same name in a nested block. In fact the standard documentation say: “A name declared in a block is local to …

Continue reading »

Permanent link to this article: https://www.productivecsharp.com/2012/11/scope-of-local-variables-in-c-and-c/

Nov 18 2012

The Adapter Pattern in .NET

Productive C# Logo

The Adapter Pattern converts the interface of a class into another interface the clients expect. Adapter lets classes work together that couldn’t otherwise because of incompatible interfaces. The pattern is also called “Wrapper” because it is usually implemented using the technique of wrapping objects (object composition). There are different situation when the pattern can be …

Continue reading »

Permanent link to this article: https://www.productivecsharp.com/2012/11/the-adapter-pattern-in-net/

Nov 03 2012

The Command Pattern in .NET

Productive C# Logo

The Command Pattern encapsulates a request as an object, thereby letting you parameterize other objects with different requests, queue or log requests, and support undoable operations. The formal definition of the pattern is quite general and it shows how the pattern is versatile and can be used in many scenarios but the real important thing however is the …

Continue reading »

Permanent link to this article: https://www.productivecsharp.com/2012/11/the-command-pattern-in-net/

Oct 07 2012

Three years since my Master Degree in Computer Science Engineering

Productive C# Logo

Tomorrow will be three years since my Master Degree in Computer Science Engineering. I got my degree from the University of Pisa and I am writing this post to simply remember that unforgettable day. The title of my degree thesis (translated in English) was “Modular architecture for testing smartcard-based solutions” and here you can find …

Continue reading »

Permanent link to this article: https://www.productivecsharp.com/2012/10/three-years-since-my-master-degree-in-computer-science-engineering/

Sep 22 2012

The Singleton Pattern in .NET – If you can avoid it

Productive C# Logo

The Singleton Pattern ensures a class has only one instance, and provides a global point of access to it. NOTE: This pattern is now considered by many (included the creators) an anti pattern and it is presented only for completeness! Read why. A Singleton is a class that manages a single instance of itself and prevent …

Continue reading »

Permanent link to this article: https://www.productivecsharp.com/2012/09/the-singleton-pattern-in-net-if-you-can-avoid-it/

Sep 20 2012

Abstract Factory Pattern in .NET

Productive C# Logo

The Abstract Factory Pattern provides an interface for creating families of related or dependent objects without specifying their concrete classes. In a previous post, I have shown that in the Factory Method Pattern the object creation is done through inheritance. Instead, the Abstract Factory use object composition. Object creation is implemented in methods exposed in …

Continue reading »

Permanent link to this article: https://www.productivecsharp.com/2012/09/abstract-factory-pattern-in-net/

Load more