-
Mastering Polymorphism with Abstract Classes: Avoiding Inheritance Pitfalls
Learn about the benefits and drawbacks of using inheritance to define related classes that can be used interchangeably. Discover how using abstract classes can help ensure a consistent implementation, catch implementation errors early and avoid runtime errors.
-
Effortless Iteration with Lambdas, Map and Filter
Explore the use of lambdas and map and filter functions in Python for optimising iteration processes. Discover the benefits of using these techniques for clean, efficient, and readable code, and learn how to implement them in your own projects.
-
Smarter Value Storage: Data Classes
Dictionaries have no type hinting, don’t do autocomplete, and can’t have custom methods. Data classes on the other hand…
-
Reduce Confusion with Enums
Enums in Python can tighten up your code by reducing the possibility of typo derived errors, as well as help you out with type hinting and IDE autocompletion.
-
Python Typing 1: Intro
Solve a whole class of problems before they become problems, by adding type hinting to your Python code.