Yay for PoEAA!

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post 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...
mickd
Forum Contributor
Posts: 397
Joined: Tue Jun 21, 2005 9:05 am
Location: Australia

Post 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)
User avatar
harrisonad
Forum Contributor
Posts: 288
Joined: Fri Oct 15, 2004 4:58 am
Location: Philippines
Contact:

Post 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?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post 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]
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post 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.
User avatar
harrisonad
Forum Contributor
Posts: 288
Joined: Fri Oct 15, 2004 4:58 am
Location: Philippines
Contact:

Post by harrisonad »

Hey I didn't know that signatures also have rules in this forum :lol:
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post 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....
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post 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...
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post 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?
Last edited by Jenk on Thu Oct 06, 2005 8:04 am, edited 1 time in total.
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post 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
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post 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
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post by Jenk »

Book arrived, I've not even finished the introduction and already am impressed.
Post Reply