14,953
edits
Tags: Mobile edit Mobile web edit |
|||
| Line 59: | Line 59: | ||
Error condition which met "Define a constant instead of duplicating this literal" - violates DRY (Don't Repeat Yourself) principle and creates maintenance issues <ref>[Clean Code principles - Avoid Magic Numbers/Strings]</ref> | Error condition which met "Define a constant instead of duplicating this literal" - violates DRY (Don't Repeat Yourself) principle and creates maintenance issues <ref>[Clean Code principles - Avoid Magic Numbers/Strings]</ref> | ||
Original problematic code: | Original problematic code (Python): | ||
<pre> | <pre> | ||
def parse_date(row): | def parse_date(row): | ||