News for hackers. Stuff that matters.
Re:Ask HN: What's the largest amount of bad code you have ev... by Rjevski on Wednesday November 14, 2018 @02:51AM (#18448276)
> pulling every record from a db table to iterate over to find the record using PHP string compare functions

As horrible as this sounds, this is actually good from a refactoring point of view because it should be straightforward to rewrite it to use actual queries.

Re:Ask HN: What's the largest amount of bad code you have ev... by edoo on Wednesday November 14, 2018 @03:42PM (#18453711)
Perhaps technically true, but the entire point of the MVC is you can do simple record retrievals with a single line of code using auto generated active record models. One line vs a monstrous dirty function isn't acceptable.
Re:Ask HN: What's the largest amount of bad code you have ev... by exikyut on Wednesday November 14, 2018 @05:53AM (#18448961)
D':