Most common programming languages feature the switch-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!
Meaningful Names4.7 (3)
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!
Comments – What you should keep in mind5 (2)
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!
Do one thing – Not the single responsibility principle (SRP)4.5 (2)
The “Do one thing” rule for programming is essential to everyone’s clean code philosophy. Learn why and how to apply it.
KISS Principle (Computer Science)4.5 (2)
KISS – an acronym for keep it simple stupid is a rule that everyone should apply to their code to reduce complexity and improve readability as well as maintainability
DRY Principle (Computer Science)4.8 (4)
Do you tend to repeat code over and over again? There are several important reasons besides DRY (Don’t Repeat Yourself) not to do so.