• As powerful as possible, as complex as necessary.
  • Posts: 14,278
Find and repair errors
« on March 22nd, 2011, 05:31 PM »
I've been looking at how it works in SMF because one of the things we will need to do is maybe extend it (and I had to write something similar for something else)

I have to admit, I'm more than a little confused why it's done how it's done in SMF. Let's get a really big array, one element for each test we're going to perform, then just for shits 'n' giggles, let's stuff at minimum one query into that array (raw SQL) for what we're testing for, likely a second query to repair it, sometimes a lambda function to pass the rows from the original test query to...

Is there something wrong with having one function per test and encapsulating it like that?
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial


  • Dadman with a boy
  • Posts: 16,061
Re: Find and repair errors
« Reply #1, on March 22nd, 2011, 06:52 PM »
I don't know... What matters to me is that it works ;) And it doesn't always. (Board relationship issue reported but not fixed.)