Add demo-03: CSV data processor with intentional code smells

- Add employee_data_processor.py: functional but ugly code with god function, globals, hardcoded values, mixed concerns
- Add employees.csv: sample data with 10 records (4 invalid for testing)
- Generates report.json and report.html output files
- Perfect candidate for refactoring demo
This commit is contained in:
Benjamin Hackl 2026-01-15 19:01:07 +01:00
commit 2f2be8e1a0
4 changed files with 265 additions and 0 deletions

11
demo-03/employees.csv Normal file
View file

@ -0,0 +1,11 @@
name,email,department,salary,hire_date
Alice Smith,alice@example.com,ENG,75000,2023-01-15
Bob Jones,bob@example.com,SALES,-50000,2023-02-01
Charlie,charlie@bademail,MKTG,65000,2023-03-01
Diana Prince,diana@example.com,ENG,82000,2022-05-20
Eve Wilson,eve@example.com,HR,58000,2023-04-10
Frank Miller,frank@example.com,INVALID,70000,2023-01-25
Grace Lee,grace@example.com,SALES,0,2023-06-01
Henry Davis,henry@example.com,ENG,90000,invalid_date
Ivy Chen,ivy@example.com,MKTG,62000,2023-07-15
Jack Brown,jack@example.com,HR,55000,2023-08-01
1 name email department salary hire_date
2 Alice Smith alice@example.com ENG 75000 2023-01-15
3 Bob Jones bob@example.com SALES -50000 2023-02-01
4 Charlie charlie@bademail MKTG 65000 2023-03-01
5 Diana Prince diana@example.com ENG 82000 2022-05-20
6 Eve Wilson eve@example.com HR 58000 2023-04-10
7 Frank Miller frank@example.com INVALID 70000 2023-01-25
8 Grace Lee grace@example.com SALES 0 2023-06-01
9 Henry Davis henry@example.com ENG 90000 invalid_date
10 Ivy Chen ivy@example.com MKTG 62000 2023-07-15
11 Jack Brown jack@example.com HR 55000 2023-08-01