I dunno if this is the place to do this, but I'll give it a shot! Basically, I would like to get better in my OOP. Playing around with things like this is getting kind of redundant..
Code: Select all
require 'fruit.class.php';
$fruit = new fruit();
$fruit->showFruitBasket();
$fruit->addFruit('banana');
$fruit->showFruitBasket();
So basically what I would like to do is have someone challenge me with a code to do, and within a week or so I will answer with the best I could come up with. Other users can write code too and show it when the deadline is up. Then we can discuss and compare what was wrong, what was right, and what could be improved.
So, if anyone is up for it, I would like a challenge to meet the following requirements.
1. Would improve on my barbaric OOP knowledge. Perhaps setting a few method properties (big words

).. nothing that's going to kill me... yet.
2. I would prefer not to use any databases or storing methods.
3. I don't care the subject nature of the assignment.
4. I can run either php4 or php5. So if your assignment would be specific to one or the other, please specify.
OK, so don't flame me too bad..

I just want to improve my code writing. A mix of basic OOP and procedural is starting to get really... ugly.
Thanks,
-Scott