Skip to content

Commit 2580c87

Browse files
committed
Updated readme with images and emoji
1 parent 907fd3b commit 2580c87

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# HeadFirstDesignPatterns_python
2-
Example code from [Head First Design Patterns second edition](https://www.wickedlysmart.com/head-first-design-patterns/) translated to python to help me understand and memorise the patterns.
2+
3+
<img src="images\learning.oreilly.jpg" alt="Girl in a jacket" width="200" align="right">Example code from [Head First Design Patterns second edition](https://www.wickedlysmart.com/head-first-design-patterns/) translated to python to help me understand and memorise the patterns.
34

45
I am aiming for a literal translation without trying to make the code pythonic beyond, e.g. using python conventions for `ClassNames` and `method_names` and putting all of the code in a single file where it makes sense to do so.
56

67
### Sample Code : Java
78

8-
From the book :
9+
From the book 📖:
910

1011
```java
1112
package headfirst.designpatterns.strategy;
@@ -41,7 +42,7 @@ public abstract class Duck {
4142
}
4243
```
4344

44-
### Sample Code : Python
45+
### Sample Code : Python 🐍
4546

4647
From this repository :
4748

@@ -66,5 +67,5 @@ class Duck():
6667
self.quack_behavior.quack()
6768

6869
def swim():
69-
print("All ducks float, even decoys!")
70+
print("All ducks float, even decoys! 〰🦆〰")
7071
```

images/learning.oreilly.jpg

23.9 KB
Loading

0 commit comments

Comments
 (0)