21-02-2022

321 words 2 minutes

Today's Foci

Focus 1

  1. Emotional resilience
  2. Measure?

Focus 2

  1. Do 1/2 Python course?

Focus 3

  1. Answer emails more efficiently, with professional sincerity

Focus 4

  1. House booking

Topic

Expectations

From Apprenticeship Provider

  • To care about our learning
  • to consult with on how best to learn
  • To be here 9:30 - 12:30

From myself

  • To pursue my learning
  • To communicate between others
  • To take care of ourselves and others

Basic Python Knowledge

TDD in Python using OOP ( & functional )

Functional Programming!!!!!

Let admin know what I'm doing regularly

Python!

remember that Python can use floor division using

//

Python "f strings" are considered best practice for string formattingo

Python DS

Lists []

Tuples ()

Dictionaries {}

I need to look into dunder methods

New Learning Python list

0.5. explore python venv

Venv stuff

  1. call simple C program from python
  2. Look deep into the DS in Python - they aren't simple
  3. Explore Django innards

So pipenv is a terminal tool that uses the outdated Python virtualenv package.

Present python uses venv.o

Python unittest

Python unittest package

object oriented design

test fixture

preperation to perform one or more tests, and cleanup.

may involve creating test or proxy databases, starting a server process, etc.

test case

individual testing unit the base class, unittest.TestCase

test suite

a collection of test cases, test suites, or both. aggregate tests that are called simultaeneously.

test runner

orchestrates execution of tests, and provides the outcomes. maybe be GUI or CLI or other.

Python underscore

a single underscore in a method makes the class private

Subprocess

allows Python to call terminal commands, and other processes

Dependency Injection

the class may not have dependencies within the class, but requires them to operate. Instead of calling them into the class, they are taken into the class during the class' process/operation.