Clean Code Python

Valtech Liebherr Apple HUK COBURG Ebit Systems Truma Gore Tu kaiserslautern

Python Clean Code and Clean Test: Practical course for programmers and advanced

You want to take your Python programming skills to the next level? You want to learn how to write Python clean code and create tests? Then this course is right for you. Find out more about our Python course on Clean Code and Testing here.

All courses live

In the Academy or online

Your benefits at a glance

  • Lots of practice and immediately applicable knowledge for your projects

  • Certificate for active participation

  • Small groups with max. 8 participants

  • Your trainers are experts with years of teaching and industry experience

  • Comprehensive learning materials

  • Compact, lively, and sustainable

What do you learn

  • Learning how to write clean code that is easy to read and understand
  • Creating tests to enhance the code quality
  • Understanding the principles of Test Driven Development (TDD)
  • Ensuring that your code is error-free

Content

The course covers a selection of the following topics:

  • What is Clean Code?
  • Naming conventions and why they are important
  • Writing understandable functions
  • Comments and documentation
  • Error handling
  • Test Driven Development (TDD)
  • Testing with pytest
  • Writing good unit tests and doctests

Prerequisite

This course is designed for you if you already have experience with Python and want to take your programming skills to the next level. If you have little to no programming experience, then the "Python Basics Course" is the right course for you!

Description

This course provides an introduction to Clean Code and effective testing in Python. You will learn how to write clean code that is easy to read and understand. We will show you how to structure your code in a way that is easily understandable by both you and your colleagues. You will learn how to create tests that help you develop faster and increase the quality of your code. Additionally, you will gain an understanding of the principles of Test Driven Development (TDD) and how to apply it to ensure error-free code.

Schedule

We will begin with a discussion on what Clean Code is and why it is important. Then, we will delve into a simple yet crucial topic: how to name variables, functions, and classes. We will explore that it is not merely a matter of aesthetics but also has a significant impact on the readability and comprehensibility of the code.

Next, we will focus on writing understandable functions. We will address questions such as the ideal size of functions, the number of arguments they should have, and how many tasks a function should handle. Moreover, we will provide concrete tips on how to structure functions correctly while writing them and how to improve existing functions.

Next, we will delve into comments and documentation. We will explore how, in Python, docstrings often serve as a better alternative to comments and how to write good docstrings.

An important aspect of clean code is error handling. We will discuss exceptions and how they allow us to keep the "happy path" in our code simple and clear while still maintaining a clean and comprehensive approach to error handling.

Good development practices make it easier to write clean code. We will show you how to apply Test-Driven Development (TDD) and fast iterations to drive the design of your code with tests, enabling you to write well-structured and tested code.

You may have come across code that had many tests, but they did not truly improve the code quality. In fact, they made refactoring more difficult. That's why you will learn principles for writing good unit tests and doctests that allow you to enhance the quality of your code without negatively impacting your productivity.

The extent to which we cover all these topics depends on our progress. The pace may vary depending on the participants' prior knowledge. The more homogeneous the group, the greater the benefit for all participants. Therefore, we limit our courses to a maximum of 8 people with similar backgrounds and knowledge levels.

Certificate

Certainly, as a participant in the Python Clean Code and Clean Test course, you will receive a certificate. The prerequisite for obtaining the certificate is the complete attendance and completion of all course units and programming assignments.

Where do we go from here?

If you are interested in learning how to write "good" software - software that is easy to maintain and extend, and that you can rely on to function as intended - our Clean Architecture in Python course is an excellent choice. In this course, you will learn various techniques to enhance the quality of your software.

We are excited to welcome you to this and future courses at the Coding Academy. We look forward to your participation!


Course formats

3-day on-site course

The course takes place in our modern and top-equipped training rooms. We provide each participant with a modern laptop during the training. Drinks are provided by the Coding Academy. Access to the material will be provided at the latest on the first day of the course

3-day online course
The course takes place online. You only need a computer with Internet access; however, for some courses it is necessary to install the software used; this is specified in the description of the respective course. Access to the material will be provided at the latest on the first day of the course.

4-week program

A new and innovative learning concept. More information about the 4 weeks program can be found here.

YOUR TRAINERS

The Python Clean Code and Clean Test course is conducted by one of the following trainers

Dr. Matthias Hölzl
Dr. Matthias Hölzl

Expert: Python, C++, Clean Code, Unit Test, Clean Design

Dr. Stefan Behnel
Dr. Stefan Behnel

Expert: Python, Pytest, Clean Code, Fast Python, Cython

Dr. Kyrill Schmid
Dr. Kyrill Schmid

Expert: Python, Java, Machine Learning, Künstliche Intelligenz

Allaithy Raed
Allaithy Raed

Expert: Java, Python, Clean Code, Unit Test, Clean Design

Prof. Dr. Peer Kröger
Prof. Dr. Peer Kröger

Expert: Artificial Intelligence, Data Science, Python, Java

Dr. Max Meier
Dr. Max Meier

Expert: .NET/C#, Software Architecture, Microservice

Customer testimonial

We thank our customers for their trust

Astrid Elbe 02 lrg web

My joint projects with the Coding Academy have been very successful and absolutely reliable. The course catalog includes the programming languages that are currently most relevant in companies. The courses on improving software quality and productivi...

Show full testimonial

Dr. Astrid Elbe,
Vice President Aviat Networks und ehemalige Managing Director Intel Labs Europe

When our employees ask me about training courses in the field of coding and clean code, there is now only one contact name and that is of course you: the Munich Coding Academy! In your courses you have scored with a super performance and great commun...

Show full testimonial

Herr Tim Stuckmann,
VW

We had a very professional and truly instructive Python training. Thanks to numerous practical programming exercises, what was learned could be put into practice immediately - even in small steps. The small groups allow for a very interactive impleme...

Show full testimonial

Michael Schreiber

The Python training at Coding Academy was really great, it was definitely worth it! I can only happily recommend it!...

Danila Perevezentsev

Request