Welcome Guest, Not a member yet? Register   Sign In
Forum prototype - Constructive criticism requested.
#27

[eluser]TheFuzzy0ne[/eluser]
Much appreciated. You're under absolutely no obligation to go through with it. I understand it's a big ask.

I see what you mean, but I don't think I'm explaining myself properly. What I'd like to achieve, is a simple forum API that isn't hard to learn, and isn't too strict, much like CodeIgniter is. I think the key to this is structure and meaningful method names. Once I have that in the bag, I think the rest is self-explanatory. It's just that I've redesigned my database back-end now twice, and each time I've thrown it out thinking "this is just getting too complex!".

Vanilla is awesome. It's not MVC, and it's a bit hard to understand, but I really like the concept, although they seem to use objects for just about everything. I like that approach, as you can edit each object accordingly to make it behave differently. I like this idea, as it helps add a layer of protection to your application, as well as extra functionality. For example, say I have an object for a post, I could have $post->get_content() and $post->get_db_safe_content() or something like that. So then we have two methods on the same object, capable of passing back the content in different formats.

I'm still really confused. We've discussed so much, but I can't even remember whether you suggested that the models pass back objects, or accept objects etc... For example, I think get_post should pass back a post object, as it might need to be edited or something, but then again, is there even any need when you can just pass the text to an update method in the model, and just insert it without even having to initialise the object from the database.

I think everything has it's pros and cons. I think what would make a difference is if I used objects for the posts, but didn't actually have a save() method, but rather the object can be passed to the model, and the model can ascertain whether or not there are any problems using methods in that object (is_valid()) for example(?). This should help prevent incorrectly formatted data being inserted into the database.

Argh! So many thoughts now, I just don't know... (This one of my more annoying traits). I'm going to go back to checking out Vanilla and chilling before my head explodes...


Messages In This Thread
Forum prototype - Constructive criticism requested. - by El Forum - 04-30-2009, 09:03 AM
Forum prototype - Constructive criticism requested. - by El Forum - 04-30-2009, 11:30 AM
Forum prototype - Constructive criticism requested. - by El Forum - 04-30-2009, 11:51 AM
Forum prototype - Constructive criticism requested. - by El Forum - 04-30-2009, 02:17 PM
Forum prototype - Constructive criticism requested. - by El Forum - 04-30-2009, 07:25 PM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 01:59 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 05:42 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 05:57 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 06:09 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 07:13 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 07:32 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 07:50 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 07:57 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 08:02 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 08:14 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 08:22 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 08:28 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 08:36 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 08:38 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 08:41 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 08:50 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 08:57 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 09:04 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 09:18 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 09:23 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 09:29 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 09:54 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-01-2009, 01:57 PM
Forum prototype - Constructive criticism requested. - by El Forum - 05-02-2009, 11:48 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-03-2009, 05:22 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-03-2009, 06:14 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-03-2009, 06:41 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-04-2009, 07:27 PM
Forum prototype - Constructive criticism requested. - by El Forum - 05-05-2009, 09:23 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-05-2009, 09:31 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-05-2009, 09:49 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-05-2009, 09:50 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-05-2009, 02:41 PM
Forum prototype - Constructive criticism requested. - by El Forum - 05-05-2009, 07:35 PM
Forum prototype - Constructive criticism requested. - by El Forum - 05-06-2009, 05:01 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-06-2009, 08:06 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-06-2009, 08:11 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-11-2009, 09:40 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-11-2009, 09:45 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-11-2009, 11:38 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-11-2009, 11:49 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-11-2009, 12:06 PM
Forum prototype - Constructive criticism requested. - by El Forum - 05-11-2009, 12:10 PM
Forum prototype - Constructive criticism requested. - by El Forum - 05-11-2009, 11:48 PM
Forum prototype - Constructive criticism requested. - by El Forum - 05-12-2009, 01:41 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-12-2009, 06:40 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-12-2009, 06:50 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-12-2009, 06:56 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-12-2009, 06:59 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-12-2009, 07:21 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-12-2009, 07:24 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-12-2009, 07:42 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-12-2009, 07:47 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-12-2009, 11:24 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-12-2009, 11:29 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-12-2009, 11:34 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-12-2009, 12:04 PM
Forum prototype - Constructive criticism requested. - by El Forum - 05-12-2009, 01:19 PM
Forum prototype - Constructive criticism requested. - by El Forum - 05-12-2009, 02:23 PM
Forum prototype - Constructive criticism requested. - by El Forum - 05-12-2009, 02:31 PM
Forum prototype - Constructive criticism requested. - by El Forum - 05-12-2009, 02:34 PM
Forum prototype - Constructive criticism requested. - by El Forum - 05-12-2009, 02:45 PM
Forum prototype - Constructive criticism requested. - by El Forum - 05-13-2009, 04:36 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-13-2009, 05:13 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-13-2009, 02:39 PM
Forum prototype - Constructive criticism requested. - by El Forum - 05-15-2009, 08:45 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-15-2009, 08:53 AM
Forum prototype - Constructive criticism requested. - by El Forum - 05-15-2009, 09:08 AM
Forum prototype - Constructive criticism requested. - by El Forum - 07-17-2011, 09:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB