On application design
Moderator: General Moderators
OK I'll structure the lesson around a news script aka a slash like site with simple forums per article type thing?
Those two linked tutorials almost address the issue. The phpfreaks one I think is only "faking" the real point. Their functions are simply wrapping near-static html display. The functions as they have defined them are not general purpose and are only used once each, so it probably doesn't make a strong case for changing your style. In fact their way is probably more work. Tim's article looks closer to what I'm wanting to write, but I think its a little short for helping someone learn to do it that way. I see his article as more of a "Look at a good way to do this" not "Here's how to do this".
Those two linked tutorials almost address the issue. The phpfreaks one I think is only "faking" the real point. Their functions are simply wrapping near-static html display. The functions as they have defined them are not general purpose and are only used once each, so it probably doesn't make a strong case for changing your style. In fact their way is probably more work. Tim's article looks closer to what I'm wanting to write, but I think its a little short for helping someone learn to do it that way. I see his article as more of a "Look at a good way to do this" not "Here's how to do this".
With regard to your case study, I'd appreciate some insight into the art of abstraction. How much makes sense? What does one abstract and to what degree? Obviously reusable code says "abstract me" but say in a function or class, where does one determine to what degree a function, module or class is developed by composition - i.e. including other classes, functions etc?
That seem to trip me up all the time.
Thanks,
PAS
That seem to trip me up all the time.
Thanks,
PAS
-
codewarrior
- Forum Commoner
- Posts: 81
- Joined: Wed Aug 07, 2002 1:28 pm
- hob_goblin
- Forum Regular
- Posts: 978
- Joined: Sun Apr 28, 2002 9:53 pm
- Contact: