Courses

Course guide 02 / 04

Best Coding Practices and Effective Code Review

How do you turn a working solution into code that you, an interviewer, and a teammate can understand and change?

Who is this for?

Students and developers who can already write code and want better readability, testing, and team code-review habits. The focus is making a working solution understandable and changeable by someone else.

Before you start

Basic Python. Advanced algorithms and previous code-review experience are not required; the Git exercise explains its setup separately.

What will you take away?

Inspect palindrome, bracket, and grid examples, then try the separate Git exercise and cart-code review in your own environment.

Inside the lesson

New here? Start from the beginning. Here is how the lesson unfolds.

Start the lesson
  1. Introduction1–2

    Introduction

    How do you turn a working solution into code that you, an interviewer, and a teammate can understand and change?

  2. Chapter 13–8

    Readable code

    A palindrome reads the same in both directions. We will ignore punctuation and letter case in this ASCII-text example.

  3. Chapter 29–14

    Reasoning in algorithm examples

    A valid bracket string closes each opening bracket with the same type, in the correct nesting order.

  4. Chapter 315–19

    Changing code safely

    Refactoring improves code structure while preserving the behavior callers rely on. A new discount policy is a separate behavior change.

  5. Chapter 420–22

    Tests and automated checks

    A useful test checks a specific promise. “The total is positive” is too weak to verify a discount.

  6. Chapter 523–25

    Review and AI assistance

    Find a concrete failure, show how it happens, and give the author a useful next step.

  7. Chapter 626–27

    Workshop and independent review

    Apply the habits together: inspect the cart implementation, calculate the expected amount, and write useful review comments.

Return to a section

If you have already opened the lesson, choose a section you want to revisit.

Try it yourself

Improve the code

  1. Read and trace the Python examples, tests and review findings.
  2. Write the short responses and try the focused coding, Git and test exercises.
  3. Set up and inspect the cart homework, run its tests and write an evidence-based review.
Open the slides

Resources

Code and original product screens keep their original language. The lesson explains them in your selected language.

Download the complete workshop (.zip)ZIP