• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Resuable models

#12
[eluser]jedd[/eluser]
Hi solepixel and thanks for your comments on this old thread.

[quote author="solepixel" date="1252379636"]
And people like me come here to read how to do it myself, and have to go through all this arguing before find the solution.
[/quote]

I'd be quite distrustful of any forum where there were two messages (and only two message) in every thread - the first asking The Question, and the second providing The Solution.

I think if you seek Absolute Truth without accepting that people will argue their case, you're on the wrong foru^H^H^H^Hplanet.


Quote:As I was reading it was saying in my head "Is this how CI people deal with issues? Change your data structure rather than addressing a problem with CI? Wow."

Well, I'm probably not indicative of 'CI people'. The fact that I'm now arguing my case to you is probably revealing, in and of itself.

I'm not sure how much you know about database design - it may well be that you know much more than me (as I'm not hugely proficient in the art) -- but consider for a moment what you'd do if you looked at the stated schema, and assessed it was broken by design. Would you suggest it be rectified as the first step, and thereby removing the 'problem' as posted simply as a side-effect? The concept of 'duty of care', and all that.

It's also worth noting that judging by his comments, the original poster was cognoscente of their design's shortcomings, too.

As an academic exercise it might be nice to consider 'from this broken starting point, and assuming we have no power to change our conditions, what could we do to fix this?' - but as a pragmatic exercise it's easier to simply fix your starting conditions.

I'd also suggest that there's no apparent 'problem with CI' as far as I could / can see here.


Quote:FYI, i'm using a base data model that handles errors, post data, get_one, get_all, defaults etc, and my need a few adjustments based on what data I need to use it with, so I'm extending Module with PageModule or AdModule, so yes, it is necessary.

It's quite possible that you have the exact same problem as the poster above, or that your approach is the optimal solution to your particular conditions.

But it's hard to say for sure without a schema to pick holes in Wink


Messages In This Thread
Resuable models - by El Forum - 08-04-2009, 06:45 AM
Resuable models - by El Forum - 08-04-2009, 07:23 AM
Resuable models - by El Forum - 08-04-2009, 07:28 AM
Resuable models - by El Forum - 08-04-2009, 07:28 AM
Resuable models - by El Forum - 08-04-2009, 07:30 AM
Resuable models - by El Forum - 08-04-2009, 07:37 AM
Resuable models - by El Forum - 08-04-2009, 07:45 AM
Resuable models - by El Forum - 08-04-2009, 10:27 AM
Resuable models - by El Forum - 08-04-2009, 12:05 PM
Resuable models - by El Forum - 08-04-2009, 01:47 PM
Resuable models - by El Forum - 09-07-2009, 04:13 PM
Resuable models - by El Forum - 09-07-2009, 04:35 PM
Resuable models - by El Forum - 09-08-2009, 01:05 AM
Resuable models - by El Forum - 09-08-2009, 04:01 AM
Resuable models - by El Forum - 09-08-2009, 04:51 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.