Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all

After countless of hours of reading, i am still not sure which software design pattern to choose from to implement for my project.

i must design a kios system to order spare parts which has a few functionality of another parent spare part system.

i need to use a software pattern to implement this kios system and so far, i have only narrowed to factory pattern. However, i still have no idea on how to implement it in actual project.

May i know if there's any other guide on how to implement it or is there any appropriate pattern to address my problem ?

Regards
Mel
Posted

Pick the one that gets the job done, or don't pick one at all. I've never consciously made a decision to use a specific "design pattern". I do what makes sense for the project, and get on with my life. I usually split the interface as much as possible from everything else, and go with it. If there is a database aspect, I separate that from the "everything else". I can move between platforms with relative ease that way, and that's all that counts - agility when changing direction - which happens a lot more than it really should.
 
Share this answer
 
v2
Comments
unrealweapon 27-Mar-11 9:02am    
i am a programmer like you, and i too do not consciously make a decision to use a design pattern.

this is a uni assignment and i need to think of a design pattern to use it with. :(
Sergey Alexandrovich Kryukov 27-Mar-11 15:40pm    
My 5. I was expecting something like that from you; otherwise I would answer myself.
"Choose design pattern" is not exactly the right idea. One should try to design the solution based on rational criteria, and when some similarity with existing design pattern is getting clear (chances are, it will), try to reuse whatever is already done in this way.
--SA
Hi,

currently i am reading a book over designpatterns it is well written and good to understand with lots of funny practical examples.
http://books.google.de/books?id=GGpXN9SMELMC&printsec=frontcover&dq=Head+First+Design+Patterns&hl=de&ei=-xSPTeaEOcj4sgbvvMmXCg&sa=X&oi=book_result&ct=result&resnum=1&ved=0CDMQ6AEwAA#v=onepage&q&f=false[^]


Based on your question you can not say i implement a compelte Program with the pattern x or y. Patterns are paths to find a solution for small individual problems. Not for a complete Software.

You have to split your complete Program to small problems and than you can ask with which patterns I could solve this small probelm.

Hope it helps.
 
Share this answer
 
Comments
unrealweapon 27-Mar-11 8:32am    
Hi
I need to split the system into individual modules and ask myself which pattern I can/should use for those particular module ?

The examples in the book are a little too general, I have no idea on how to use it in in practise.

Can you please advise on how do I implement it ?

Regards
Mel

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900