- 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
537 B
537 B
| 1 | name | 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 |