'The Block'- Desiging a project, but unable to 'get with it'

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

Post Reply
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

'The Block'- Desiging a project, but unable to 'get with it'

Post by Jenk »

Hi folks,

If any of you remember, I mentioned in another thread somewhere that I have been considering taking over a project (EVEKills on SourceForge). I finally decided that I can't bare to read the previous developers code, since leaving 100's of notice errors in (undefined vars etc.) and other such trivial poor qualities, that will only lead to me ammending the entire project. I have decided to give creating a new project a go which is primarily just for me to flex the php skills etc. and I doubt I will actually release it, but meh.

In procedural methods, I can do this quite easily, but I want to do this strictly in an OO method. Having read several chapters now of PoEAA, I hope to maintain this in a Domain Model (;)) fashion and seperate into the three basic layers (data source, domain logic and presentation of course)

But! I am sat here looking at a blank piece of paper, doing nothing but doodling and wondering where to start.. I've got most of the DB structure defined, but as far as the class construction is going, I suck!

I've jotted a list of what each type of object needs, but am just not with it enough to actually translate into code.. as I said before, if this were procedural I probably would be well into the production phase right now, but as it is not, I am not :p

What do you guys do to clear 'the block' ? :)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

this feels oddly similar to this thread, but anyways....

I do other stuff of any sort: other programming, playing games, go out to the beach, etc etc
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post by Jenk »

Doh, didn't see/remember that thread :(

Also, when designing classes etc, are there any 'thumb rules' ?

Anything that a new to OOP guy should know?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I figure out all the verbs (actions) the class will need, at least roughly.. then just start building. I personally design the systems from the top down, but build from the bottom up, refactoring in "regular" cycles.. none of the code is above revision, whether mine or some third party library...
alvinphp
Forum Contributor
Posts: 380
Joined: Wed Sep 21, 2005 11:47 am

Post by alvinphp »

I start out by first figuring out what presentation pages/modules I will need by listing them out. Sometimes it is useful to create this visually using something like Visio. From that I create an ERD. The ERD then becomes my starting point for my class structure. In the class structure I start listing all the methods I need.
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post by Maugrim_The_Reaper »

three basic layers (data source, domain logic and presentation of course)
Sounds a little like MVC...;) It's just missing mention of a controller...

When the coding gets a little lodged in my brain I usually decide to find a similar project and work out how it works. Sometimes it jars a few ideas loose so I get a better idea for a starting point... Maybe there's something similar done in OOP with Patterns you can get some encouragement from? :)
Grim...
DevNet Resident
Posts: 1445
Joined: Tue May 18, 2004 5:32 am
Location: London, UK

Post by Grim... »

feyd wrote:go out to the beach
You live near a beach?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Grim... wrote:You live near a beach?
but of course.. I'm in sunny southern Florida.. :)
Post Reply