Systemutveckling Advanced Python: Best Practices and Design Patterns

This advanced Python training course will expand your foundational Python programming skills to build reliable and stable applications.

Målgrupp

Developer. This course expands on your basic Python programming skills to help you build applications that are faster, more reliable, and easier to maintain and debug. You'll gain experience not only with advanced Python techniques, you'll also learn how to implement proven software design patterns in your applications. And you'll learn valuable Python testing tools that help ensure that your code works as designed.

Förkunskaper

This is an advanced, fast-paced programming course. If you're completely new to Python, or know only the basics of the language, we suggest you start with either Python Fundamentals Training for Non-Programmers or Introduction to Python Training.

Kursfakta

Typ Öppen
Längd 4 dagar
Ditt pris 26 110 kr exkl. moms
Klippkort Ja
Planerad 1 orter
2 tillfällen

Utbildningsmål

  • Employ design patterns and best practices in Python applications
  • Exploit the object-oriented programming features in Python for stable, reliable programs
  • Create and manage concurrent threads of control
  • Generate and consume REST web service requests and responses
  • Implement Gang of Four (GoF) design patterns to solve commonly recurring software design problems
  • Unit test, debug, and install Python programmes and modules
  • Profile programme execution and improve performance
  • Apply advanced Python programming features for efficient, reliable, and maintainable programmes
  • Gain knowledge and skills applicable to all Python environments, including Microsoft Windows, macOS, and all Linux and UNIX distributions
  • Test your knowledge in the included end-of-course exam
  • Continue learning and face new challenges with after-course one-on-one instructor coaching

Innehåll

Module 1: Object-Oriented Programming in Python
In this module, you will learn how to:

  • Extend classes to define subclasses
  • Add properties to a class
  • Define abstract base classes

Module 2: Exploring Python Features
In this module, you will learn how to:

  • Write "Pythonic" code
  • Modify code dynamically with monkey patching
  • Process large data structures efficiently with generators
  • Handle exceptions
  • Raise user-defined exceptions
  • Reduce code complexity with context managers and the "with" statement

Module 3: Verifying Code and Unit Testing
In this module, you will learn how to:

  • Develop and run Python unit tests
  • Simplify automated testing with the Pytest package
  • Verify code behavior
  • Mock dependent objects with the Mock package
  • Use mock objects to verify code behavior when exceptions occur

Module 4: Detecting Errors and Debugging Techniques
In this module, you will learn how to:

  • Log messages for auditing and debugging
  • Check your code for potential bugs with Pylint
  • Debug your Python code
  • Extract error information from exceptions
  • Trace programme execution with the PyCharm IDE

Module 5: Implementing Python Design Patterns
In this module, you will learn how to:

  • Implement the Decorator pattern using @decorator
  • Control access to an object with the Proxy pattern
  • Lay out a skeleton algorithm in the Template Method pattern
  • Enable loose coupling between classes with the Observer pattern

Module 6: Interfacing with REST Web Services and Clients
In this module, you will learn how to:

  • Build a REST service
  • Generate JSON responses to support Ajax clients
  • Send REST requests from a Python client
  • Consume JSON and XML response data

Module 7: Measuring and Improving Application Performance
In this module, you will learn how to:

  • Time execution of functions with the "timeit" module
  • Profile programme execution using "cProfile"
  • Manipulate an execution profile interactively with "pstats"
  • Efficiently apply data structures, including lists, dictionaries, and tuples
  • Map and filter data sets using comprehensions
  • Replace the standard Python interpreter with PyPy

Module 8: Installing and Distributing Modules
In this module, you will learn how to:

  • Install modules from the PyPi repository using "pip"
  • Port code between Python versions
  • Package Python modules and applications
  • Establish isolated Python environments with "virtualenv"
  • Build a distribution package with "setuptools"
  • Upload your Python modules to a local repository

Module 9: Concurrent Execution
In this module, you will learn how to:

  • Create and manage multiple threads of control with the Thread class
  • Synchronise threads using locks
  • Launch operating system commands as subprocesses
  • Synchronise processes with queues
  • Parallelise execution using process pools and Executors

Kursen levereras genom utbildningspartner: Learning Tree
Learning-Tree-Logo_horizontal.png