Comments and how to use them

Comments are used in a lot of programming languages. While this concept is useful for a lot of purposes, beginners often start bad habits when commenting their code. In this article I will explain when comments are useful and on the other hand illustrate problems where commenting can be less meaningful or even disturbing. Bad Comments … At first sight (especially at the beginning of your programming career), you might think of comments as the perfect way to describe elements of your code that you don’t fully understand. This approach is not entirely wrong, but it does have a few problems that I will now discuss. ...

December 15, 2017 · 4 min · Marcel Jurtz

C# - Mastering the Basics - Application Architecture

In this series, I discuss the optimization of the basics of programming in C#. This article deals with the basic structure of an application and its different components. C# Application Architecture The top level always represents the so-called solution. A solution can contain several different projects, whereby a project can be used by different solutions, which allows to reuse source code. Each of a solutions projects compiles into either an executable or a dll. ...

November 25, 2017 · 2 min · Marcel Jurtz

Reusable Styles for Android

View definitions under android are often used for many different controls. However, there is an easy way to recycle defined styles and use them for other controls, often saving a lot of code. So, styles basically allow you to move your repeatedly used styles out of the layout file into a styles.xml file (which is located in the values-folder). This article covers the basics of using styles on Android. Think of the following layout, which represents two simple buttons inside a LinearLayout: ...

November 17, 2017 · 3 min · Marcel Jurtz