CodeSOD: Delectable Code
The Daily WTF
MAY 19, 2024
Good method names are one of the primary ways to write self-documenting code. The challenge there, is that documentation often becomes out of date. Take this delectable PHP nugget, from Nathaniel P , who has previously been tortured by bad date handling. function deleteTenDays ( ) { //This delects everything from the table minus 3 days $thedel = $this ->db-> query ( 'Delete FROM ClientReportsRelationship where DateEntered db->query('Delete FROM ClientReportsRelationship where Cu
Let's personalize your content