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:
parent
ae8c09013c
commit
2f2be8e1a0
4 changed files with 265 additions and 0 deletions
11
demo-03/employees.csv
Normal file
11
demo-03/employees.csv
Normal 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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue