Don't have much time for a full reply yet (working!) but I used to think the 
'get your Nouns from the use case' way was best too.

I changed my mind after reading Uncle Bob's 'Agile Principles, Patterns, and 
Practices in C#'
http://www.amazon.co.uk/Principles-Patterns-Practices-Robert-Martin/dp/0131857258/ref=sr_1_1?ie=UTF8&s=books&qid=1231414000&sr=8-1

In one chapter on designing a coffee maker application he uses the Noun 
approach and ends up with a class diagram where there are lots of objects doing 
very little and one God-like CoffeeMaker object. On paper it looked good but He 
then explains the way he creates a design, focussing more on behaviour and ends 
up with a much better solution with each object earning its place, cohesive and 
loosely coupled.

I'll send some more later once I've met my deadline :-)

Alan 




________________________________
From: aliaspooryorik <[email protected]>
To: CFCDev <[email protected]>
Sent: Thursday, January 8, 2009 11:15:55 AM
Subject: [CFCDEV] Analysis and Design process


I know that this is not a ColdFusion specific question but I hope you
don't mind me posting it here.

I'm just curious to know how you guys go about analysing and designing
your applications. I tend to try as many requirements as I can from
the client and then start writing "use cases" for each situation. For
example:

"A user attempts to login using a unique username and password. If
they have entered valid credentials they will be assigned their
associated permissions..."

>From that I then pick out the objects (nouns), methods (verbs) and
properties. So the above example would have something like:

============================
User
============================
-username
-password
============================
+setUsername(string):void
+setPassword(string):void
+validate():boolean
+loginUser():void
-addPermission(Permission)
============================

I'm always keen to learn so any feedback is appreciated :)




      
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CFCDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cfcdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to