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!
Concurrency is a powerful concept to execute various commands parallely. It is available in nearly any programming language but is often difficult to understand or implement. I will focus on explaining this in the context of a current Windows OS and the concurrency how-tos will use Python as a language.
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!
FileNotFoundError: [Errno 2] No such file or directory: ‘/opt/hostedtoolcache/Python/3.7.8/x64/lib/python3.7/site-packages/PyYAML-5.3.1-py3.7-linux-x86_64.egg If you encounter this error on Github it is possibly because Github recently updated from Python 3.7.7 to Python 3.7.8 and PyYAML produces an error therein. The easiest way to fix this is by changing the used Python version explicitly back to 3.7.7. Old config: We […]
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!
The “Do one thing” rule for programming is essential to everyone’s clean code philosophy. Learn why and how to apply it.
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
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.