-
Aktuelle Beiträge
Archiv
- März 2020 (1)
- Januar 2020 (1)
- November 2019 (1)
- Oktober 2019 (1)
- September 2019 (2)
- August 2019 (1)
- Juli 2019 (2)
- Juni 2019 (2)
- Mai 2019 (2)
- April 2019 (2)
- März 2019 (3)
- Februar 2019 (2)
- Januar 2019 (2)
- Dezember 2018 (3)
- November 2018 (2)
- Oktober 2018 (2)
- September 2018 (2)
- August 2018 (1)
- Juli 2018 (3)
- Juni 2018 (1)
- Mai 2018 (3)
- April 2018 (5)
- März 2018 (4)
- Februar 2018 (4)
- Januar 2018 (3)
- Dezember 2017 (4)
- November 2017 (4)
- Oktober 2017 (5)
- September 2017 (3)
- August 2017 (3)
- Juli 2017 (5)
- Juni 2017 (1)
- Mai 2017 (4)
- April 2017 (5)
- März 2017 (3)
- Februar 2017 (3)
- Januar 2017 (4)
- Dezember 2016 (2)
- November 2016 (2)
- Oktober 2016 (2)
- September 2016 (2)
- August 2016 (2)
- Juli 2016 (2)
- Juni 2016 (3)
- Mai 2016 (4)
- April 2016 (4)
- März 2016 (4)
- Februar 2016 (4)
- Januar 2016 (5)
- Dezember 2015 (4)
- November 2015 (5)
- Oktober 2015 (3)
- September 2015 (4)
- August 2015 (4)
- Juli 2015 (4)
- Juni 2015 (4)
- Mai 2015 (5)
- April 2015 (4)
- März 2015 (5)
- Februar 2015 (5)
- Januar 2015 (6)
- Dezember 2014 (5)
- November 2014 (7)
- Oktober 2014 (7)
- September 2014 (8)
- August 2014 (7)
- Juli 2014 (4)
- Juni 2014 (5)
- Mai 2014 (4)
- April 2014 (4)
- März 2014 (5)
- Februar 2014 (5)
- Januar 2014 (5)
- Dezember 2013 (5)
- November 2013 (6)
- Oktober 2013 (6)
- September 2013 (5)
- August 2013 (6)
- Juli 2013 (7)
- Juni 2013 (4)
- Mai 2013 (8)
- April 2013 (9)
- März 2013 (10)
- Februar 2013 (11)
- Januar 2013 (14)
Kategorien
Meta
Archiv der Kategorie: .NET
Don’t return null
If you write a function returning an object instance you have to think about the special cases. This may be error cases or maybe situations where no object instance can be found or created. In such cases you will often … Weiterlesen
Veröffentlicht unter .NET, C#, Clean Code
Kommentar hinterlassen
Design patterns: Iterator
An Iterator provides a way to access the elements of an object sequentially without exposing the underlying representation. It is a base Design Patterns which we use permanently. For example a loop over a list is done by using the … Weiterlesen
Veröffentlicht unter .NET, C#, Clean Code, Design Pattern
Kommentar hinterlassen
Design patterns: Facade
A Façade class provides a higher level interface to a set of sub level interfaces. This will make the subsystem easier to use. The high level interface will hide details of the low level interfaces. This may be complex workflows … Weiterlesen
Veröffentlicht unter .NET, C#, Design Pattern
Kommentar hinterlassen
Use factory methods instead of overloaded constructors
If a class can be created and initialized in different ways or by using different kind of values you may often see overloaded constructors. This is a standard way to implement such an object creation but it has a major … Weiterlesen
Veröffentlicht unter .NET, C#, Clean Code
Kommentar hinterlassen
Linq vs Loop: Simple Query
Within this article and within further articles I want to compare Linq and classical loops. During code reviews you may sometimes hear the suggestion to use language specific features as they will simplify the source code. Such a feature is … Weiterlesen
Veröffentlicht unter .NET, C#, Clean Code, LINQ
Kommentar hinterlassen
Design patterns: Factory Method vs Abstract Factory
In case a class instance shall be created, developers may give the advice to use a “factory”. This common term isn’t wrong but sometimes it’s better to define the exact type of factory you want to use. So, in this … Weiterlesen
Veröffentlicht unter .NET, C#, Clean Code, Design Pattern
Kommentar hinterlassen
Continuous Integration
Software teams normally consist of several developers. They work independent or in small groups on their own tasks. And of course, sometimes the developed code has to be merged together to get a running application. One kind of merging principle … Weiterlesen
Veröffentlicht unter .NET, Clean Code, Designprinzip, Projektleitung, Uncategorized
Kommentar hinterlassen
Design patterns: Factory Method
A factory method is a single method to create an object instance. The method is provided by the object itself. Therefore it can be overridden in a subclass. By using the factory method pattern the object exposes a method to … Weiterlesen
Veröffentlicht unter .NET, C#, Clean Code, Design Pattern
Kommentar hinterlassen
Do not use Boolean function parameters
Function parameters may be of any type. So why should we try to avoid Boolean parameters? Because they have two disadvantages. The main issue is that a Boolean value may lead to a function which does several things. Furthermore the … Weiterlesen
Veröffentlicht unter .NET, C#, Clean Code
Kommentar hinterlassen
Characteristics of high quality C# code
Following you will find some characteristics for high quality C# code. Of course it is possible to define much more characteristics. So the following code quality features are an entry point to this topic only. Define a standard constructor … Weiterlesen
Veröffentlicht unter .NET, C#, Clean Code
Kommentar hinterlassen