100 days of code: Day 35 - datetag.py

Last modified on 2020-07-14

Source: 100-days-of-code.

Building on lessons learned about Python object-oriented programming, I did a rewrite of my datetag.py module and dates_weights.py script. The script imports class DateTag and uses regex pattern matching to retrieve weight measurements and dates they were recorded from a source file. It works! 🐧

Separating the module datetag.py from the script allows its reuse to find other types of matching patterns and their associated dates. Maybe a dates_temperatures.py, dates_distance_walked.py, etc.

Happy hacking!