Page 3 of 3

Posted: Sat Oct 01, 2005 1:45 pm
by Maugrim_The_Reaper
Must profess to enjoying it. I'm at three days and counting in the learning process. Methinks I see glimmer of understanding sparking in my brain...

Posted: Sun Oct 02, 2005 10:03 pm
by mickd
i just called up my local bookstore (by local i dont mean local at all) and got them to hold a copy of POEAA and PHP5 objects, patterns, practise which i should be picking up tomorrow 8)

Posted: Wed Oct 05, 2005 7:26 pm
by harrisonad
too bad such book is not found in the philippines or it is already here but will rob your savings.
I am just wondering if there is an online version for this. anyone?

Posted: Wed Oct 05, 2005 7:31 pm
by John Cartwright
[hijack]
harrisonad wrote:$wiseguy = ($canListen ? true : false)
You have your TRUE and FALSE mixed up.

$wiseguy = if can listen TRUE
so if he can listen he's a wiseguy

of course this depends on your meaning of wiseguy

:lol:

[/hijack]

Posted: Wed Oct 05, 2005 8:12 pm
by Jenk
Funky 'IT' Terminology always leaves me a bit baffled..

How would Enterprise development techniques/patterns benefit me? - That is, an average Joe PHP developer, who will not likely be developing anything bigger than something like an in-game webshop for a MMORPG?

Sorry to ask what would probably seem such a silly question to most.

Posted: Wed Oct 05, 2005 10:10 pm
by harrisonad
Hey I didn't know that signatures also have rules in this forum :lol:

Posted: Thu Oct 06, 2005 2:24 am
by n00b Saibot
harrisonad wrote:Hey I didn't know that signatures also have rules in this forum :lol:
signatures don't have rules, but PHP Code certainly has . IT HAS TO BE MEANINGFUL :twisted: :lol: Oh well...
Jenk wrote:How would Enterprise development techniques/patterns benefit me? - That is, an average Joe PHP developer, who will not likely be developing anything bigger than something like an in-game webshop for a MMORPG?
imo, These patterns can be applied in mid to large scale apps so you will probably find great use for it once you read all about it. I nearly have used it in almost all of my projects....

Posted: Thu Oct 06, 2005 3:06 am
by Maugrim_The_Reaper
It depends a lot on whether the game as a whole has utilised patterns in its design - I mean when you make your addition will you need to do input filtering, make SQL calls directly on the database, and mix html with PHP? If so using patterns won't be very possible IMO since the underlying system you're working with is missing them from the start. For them to be useful the overall game would need to be implementing them where they solved a common problem.

My own games under development (all open source) make use of patterns - specifically Model-View-Controller (Lvl1). There are other useful patterns that developers often stumble across themselves such as Factories, Singletons, Decorators, Facades. Maybe ask the game developer to put a little time into researching the usefulness of patterns...

Posted: Thu Oct 06, 2005 5:13 am
by Jenk
The webshop, as an example as I intend on 'expanding', is pretty much a standalone webapp, the only reason it is limited to the game is because it will use the games own web browser which has a few 'special' functions and abilities, such as determining where in the in-game universe the player is and other such attributes.

SQL Cleansing etc will be used and I plan to complete the project with an OO method.

In case anyone knows or plays it, it will be for the game http://www.eve-online.com (shameless plug)

Basically, I understand that this book will have more of a lean towards Java and/or C. I know some C and a fait bit of Java, but my interests are in PHP (atleast for now) and thus my strengths are in PHP. Would this be problematic or are the examples more like pseudo than actual code?

Posted: Thu Oct 06, 2005 8:03 am
by Maugrim_The_Reaper
Well, taking it as a standalone application. Even looking at how you request a page might point to a few patterns. For example all requests can go to individual pages, or pass though a single page. If a single page (e.g. for centralising some tasks like input filtering) you might look up the Front Controller or Page Controller patterns. Now from there, you can start looking at other contributing patterns (e.g. a Request object for filtering data, and offering an interface to "cleaned" GET/POST arrays).

There's a sort of half discussion on this in the Unit Testing forum - basically in learning TDD I took a basic quick'n'dirty Front Controller, applied TDD, and saw where it led me. There are more explanatory places that explain the actual pattern vs its implementation - probably more useful to you.

You'll probably hear mention of MVC (model-view-controller) which many Input Controllers wind up a part of. That too is worth a look. The book will go very far...;)

http://msdn.microsoft.com/library/defau ... roller.asp
http://java.sun.com/blueprints/corej2ee ... oller.html

Posted: Thu Oct 06, 2005 8:09 am
by Jenk
Those two links are most helpful in my understanding of exactly what this subject is about, you should send a mail to the Author as I have just placed an order :P

Posted: Sat Oct 08, 2005 10:50 pm
by Jenk
Book arrived, I've not even finished the introduction and already am impressed.