Author: Jonas Scholl

decoration on dark grey table
Code Principles

Decorators in Python

Have you ever seen “@” symbols in Python code and wondered how they work and what they do? The expressions used with them are called decorators, and while they may seem magical at first glance, understanding them is not a masterpiece. In this post we are going to demystify the decorators in Python and explain what they do, how they work, and how you can create them yourself!

Read More »
person using white and silver computer keyboard
Python

New Syntax Features in Python 3.9

In October 2020, Python 3.9 introduced amazing new syntax features. As of now, you can use the new operators for dictionaries, better type hints and the advanced syntax for decorators. Read more about them in this post!

Read More »
many books
Python

Dictionary-Tricks in Python

In Python, the dictionary is one of the most powerful data structures you can use. There are many features and techniques concerning dictionaries that you may not have on your radar yet, but they will help you to simplify your code and gain more flexibility. This post will present you the 10 most important dictionary-tricks in Python!

Read More »
marching cubes
Algorithms

Marching Cubes Algorithm

The Marching Cubes Algorithm is a meshing algorithm in the field of computer graphics. It is used to extract a polygonal mesh out of an isosurface from a three- or two-dimensional scalar field. It is primarily used for visualization modeling because it makes it easy to adjust the generated mesh.

Read More »
easter eggs
Python

7 Python Easter Eggs

Python is an exciting language and has always some surprises in store, no matter how long you have been working with it. In this Post, I will present 7 really cool easter eggs in Python. Feel free to try them out on your own, I hope you enjoy it!

Read More »
electrical switches
Python

Python Switch-Statement Alternative

Most common programming languages feature the switch-case statement, while Python doesn’t. At first glance, you maybe ask why Python doesn’t support such a common and basic control pattern. This post will explain it and show alternatives for the switch statement!

Read More »
questionmarks
Python

Use Python Type Hints!

Python differs from other programming languages in many ways, one of them is dynamic typing. You can’t specify explicit types for variables, functions, or any other object. However, since the missing type declarations can be confusing and misleading, Python 3.5 introduced Type Hints!

Read More »
hands on writing machine
Write Better Code

Meaningful Names

Every developer heard this sentence at least once before: “Use meaningful names for your variables!”. As I heard this advice for the first time, I thought: Nothing easier than that! I know the purpose of my variables, accordingly, it shouldn’t be a problem to give them good names. However, after months I read my code again and didn’t understand anything. This post will present a few tips and best practices for writing better names!

Read More »
coding on a laptop
Write Better Code

Comments – What you should keep in mind

Comments are one of the first features everybody gets to know when learning a new programming language. They can be useful for describing the functionality of code-segments or giving additional information about some code. There are many good reasons to use comments. However, you should still keep a few things in mind when you write them!

Read More »