Skip to content

Commit 0afb237

Browse files
committed
update OOD
1 parent 39b538d commit 0afb237

File tree

3 files changed

+27
-25
lines changed

3 files changed

+27
-25
lines changed

Makefile

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,44 +3,44 @@ TEST_ARGS = -s --verbose --color=yes
33
TYPE_CHECK = mypy --strict --allow-untyped-decorators --ignore-missing-imports
44
STYLE_CHECK = flake8
55
COVERAGE = python -m pytest
6-
ASSIGNMENT = 'demo-assignments'
6+
DEMO = './demo-assignments'
77

88
.PHONY: all
99
all: check-style check-type run-test-coverage clean
1010
@echo "All checks passed"
1111

1212
.PHONY: check-type
1313
check-type:
14-
$(TYPE_CHECK) $(ASSIGNMENT)/A0/hello
15-
$(TYPE_CHECK) $(ASSIGNMENT)/A0-OOP/hello
16-
$(TYPE_CHECK) $(ASSIGNMENT)/A1/cold
17-
$(TYPE_CHECK) $(ASSIGNMENT)/A1-OOP/cold
18-
$(TYPE_CHECK) $(ASSIGNMENT)/A2-ABC/egypt
14+
$(TYPE_CHECK) $(DEMO)/A0/hello
15+
$(TYPE_CHECK) $(DEMO)/A0-OOP/hello
16+
$(TYPE_CHECK) $(DEMO)/A1/cold
17+
$(TYPE_CHECK) $(DEMO)/A1-OOP/cold
18+
$(TYPE_CHECK) $(DEMO)/A2-ABC/egypt
1919

2020
.PHONY: check-style
2121
check-style:
22-
$(STYLE_CHECK) $(ASSIGNMENT)/A0/hello
23-
$(STYLE_CHECK) $(ASSIGNMENT)/A0-OOP/hello
24-
$(STYLE_CHECK) $(ASSIGNMENT)/A1/cold
25-
$(STYLE_CHECK) $(ASSIGNMENT)/A1-OOP/cold
26-
$(STYLE_CHECK) $(ASSIGNMENT)/A2-ABC/egypt
22+
$(STYLE_CHECK) $(DEMO)/A0/hello
23+
$(STYLE_CHECK) $(DEMO)/A0-OOP/hello
24+
$(STYLE_CHECK) $(DEMO)/A1/cold
25+
$(STYLE_CHECK) $(DEMO)/A1-OOP/cold
26+
$(STYLE_CHECK) $(DEMO)/A2-ABC/egypt
2727

2828
# discover and run all tests
2929
.PHONY: run-test
3030
run-test:
31-
$(TEST) $(TEST_ARGS) $(ASSIGNMENT)/A0/hello/tests
32-
$(TEST) $(TEST_ARGS) $(ASSIGNMENT)/A0-OOP/hello/tests
33-
$(TEST) $(TEST_ARGS) $(ASSIGNMENT)/A1/cold/tests
34-
$(TEST) $(TEST_ARGS) $(ASSIGNMENT)/A1-OOP/cold/tests
35-
$(TEST) $(TEST_ARGS) $(ASSIGNMENT)/A2-ABC/egypt/tests
31+
$(TEST) $(TEST_ARGS) $(DEMO)/A0/hello/tests
32+
$(TEST) $(TEST_ARGS) $(DEMO)/A0-OOP/hello/tests
33+
$(TEST) $(TEST_ARGS) $(DEMO)/A1/cold/tests
34+
$(TEST) $(TEST_ARGS) $(DEMO)/A1-OOP/cold/tests
35+
$(TEST) $(TEST_ARGS) $(DEMO)/A2-ABC/egypt/tests
3636

3737
.PHONY: run-test-coverage
3838
run-test-coverage:
39-
$(COVERAGE) -v --cov-report=html:$(ASSIGNMENT)/A0/hello/htmlcov --cov-report=term --cov=$(ASSIGNMENT)/A0/hello $(ASSIGNMENT)/A0/hello/tests
40-
$(COVERAGE) -v --cov-report=html:$(ASSIGNMENT)/A0-OOP/hello/htmlcov --cov-report=term --cov=$(ASSIGNMENT)/A0-OOP/hello $(ASSIGNMENT)/A0-OOP/hello/tests
41-
$(COVERAGE) -v --cov-report=html:$(ASSIGNMENT)/A1/cold/htmlcov --cov-report=term --cov=$(ASSIGNMENT)/A1/cold $(ASSIGNMENT)/A1/cold/tests
42-
$(COVERAGE) -v --cov-report=html:$(ASSIGNMENT)/A1-OOP/cold/htmlcov --cov-report=term --cov=$(ASSIGNMENT)/A1-OOP/cold $(ASSIGNMENT)/A1-OOP/cold/tests
43-
$(COVERAGE) -v --cov-report=html:$(ASSIGNMENT)/A2-ABC/egypt/htmlcov --cov-report=term --cov=$(ASSIGNMENT)/A2-ABC/egypt $(ASSIGNMENT)/A2-ABC/egypt/tests
39+
$(COVERAGE) -v --cov-report=html:$(DEMO)/A0/hello/htmlcov --cov-report=term --cov=$(DEMO)/A0/hello $(DEMO)/A0/hello/tests
40+
$(COVERAGE) -v --cov-report=html:$(DEMO)/A0-OOP/hello/htmlcov --cov-report=term --cov=$(DEMO)/A0-OOP/hello $(DEMO)/A0-OOP/hello/tests
41+
$(COVERAGE) -v --cov-report=html:$(DEMO)/A1/cold/htmlcov --cov-report=term --cov=$(DEMO)/A1/cold $(DEMO)/A1/cold/tests
42+
$(COVERAGE) -v --cov-report=html:$(DEMO)/A1-OOP/cold/htmlcov --cov-report=term --cov=$(DEMO)/A1-OOP/cold $(DEMO)/A1-OOP/cold/tests
43+
$(COVERAGE) -v --cov-report=html:$(DEMO)/A2-ABC/egypt/htmlcov --cov-report=term --cov=$(DEMO)/A2-ABC/egypt $(DEMO)/A2-ABC/egypt/tests
4444

4545
.PHONY: clean
4646
clean:

demo-assignments/A1-OOP/cold/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,3 @@ clean:
2121
rm -rf `find . -type d -name __pycache__`
2222
rm -rf `find . -type d -name .pytest_cache`
2323
rm -rf `find . -type d -name .mypy_cache`
24-

notebooks/ObjectOrientedDesign.ipynb

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,12 @@
3434
"\n",
3535
"## Object-oriented programming (OOP)\n",
3636
"- process of converting a design into a working program that does what the product owner originally requested\n",
37-
"- some popular development models are: **waterfall** and **iterative**\n",
38-
"- **iterative** is more popular in modern software engineering\n",
39-
"\n",
37+
"- some popular development models are: **waterfall**, **iterative**, **agile**, etc.\n",
38+
"- **waterfall** is the traditional model where each phase is completed before the next phase begins\n",
39+
"- **agile** is a more modern model where focus is on delivering working software in short iterations\n",
40+
" - ci-cd (continuous integration, continuous deployment) is a popular agile model\n",
41+
" - scrum, kanban, pair programming, etc. are popular agile methodologies\n",
42+
" - focus is on delivering working software quickly and frequently as a team effort with high customer satisfaction\n",
4043
"\n",
4144
"## Objects and Classes\n",
4245
"- *object* is a collection of data with associated behaviors\n",

0 commit comments

Comments
 (0)