On Fri, 2010-09-17 at 01:30 +0300, Vlad Dragu wrote:
> Xavier, if you have time, please take a look at the code and tell me
> if I’m on the right track especially with the abstract class and the
> data objects.
Hi Vlad,
I've just looked at the code, and there are still some large issues with
it. :/ The biggest issue is that the MissionEngine is not supposed to be
inheriting the Missions class. The Missions class is only an abstraction
of the individual Mission classes, like FirstMission. The MissionEngine
is an entirely different class, and the missionEngine object is supposed
to create and handle the individual mission objects.
This is a tricky situation, because it would be hard to properly explain
why and how without starting to actually teach you OO programming -
you're learning the difficult part, which is to know how to structure
the objects and their relationships.
I don't know if you have followed those discussions, but we have been
talking about providing training to the recurring contractors, and this
could have been a good opportunity to start this. However, the role is
not completely defined yet, and it is supposed to be attached to other
things - such as a more long term commitment to the project, reviews and
evaluations, etc.
On the other side, I really appreciate working with you, and I'd like to
help you here. So, if you and David think it's a good idea, I'd like to
give you the opportunity to spend one iteration on getting up to speed
with OO programming. Instead of working on HackIt's code, you would
spend the week reading and making some exercises - and you would be paid
for this. : )
Here is what I have in mind for that training week:
1. You read this book about OO programming:
http://my.safaribooksonline.com/9781430229254 (the one I was
mentioning the other day - except that it's the latest
revision)
2. Each day, you do the quiz and exercises contained in this book
(4 chapters/day):
http://my.safaribooksonline.com/9780768683684 . It's not about
PHP, but it will help you to learn to actually do exercises. You
don't necessarily need to read all that second book, except
maybe for parts where you can't find the answer to the questions
with just the first book.
3. Through the week, you build the UML schema for the whole
application that we were talking about previously (User/Session,
but also Mission, Site, etc. - all the classes of HackIt); I
will review and discuss them progressively with you, which will
allow you to be sure you start on the right feet when you resume
working on the actual code.
What do you think? Would that help you?
Xavier.
_______________________________________________
Hackit Bar mailing list - [email protected]
Wiki: http://community.hackit.cx/
List: http://community.hackit.cx/ml/
Forum: http://community.hackit.cx/forum/
Ideas: http://community.hackit.cx/ideas/
IRC: irc://irc.freenode.net/#politis