Design Pattern Exam: Some more information About Code, and class diagram and etc
4 posters
IITDU Forum :: Academics (BIT) :: Semester 5 :: SE 506
Page 1 of 1
Design Pattern Exam: Some more information About Code, and class diagram and etc
Course code: 506
Course Name: Design Pattern
Well, I had some confusions. And I mailed Maeenul sir about it. Here is his reply.
Me:
The Singleton pattern in design pattern book by GOF contains a structure image, which is similar to class diagram. Its format is somewhat like this
Class Name
=========
Methods
=========
Variables
However, the format of class diagram is like this
Class Name
=========
Variables
=========
Methods
This is somewhat confusing me. Which one is supposed to be used?
Sir:
Any one you like.
Me:
Again, we are used to accessibility symbols from the UML diagrams IDE generates for us. But generally, accessibility are expressed using , #, –, ~ according to IBM tutorials. Is it ok if we use any one of them when we hand draw?
Sir:
OK.
Me:
Also, when we write codes in paper, will you overlook the syntax details? You mentioned pseudo code, so if the code is a mixture of C# and Java syntaxes, will it be overlooked? As I am still an inexperienced C# programmer, I am facing this problem of somewhat mixing C# and Java syntaxes when I am practicing using pen and paper.
Sir:
language is not my concern, The code needs to explain the pattern. Thats it. You saw in class, how I coded on the board. That is what I am expecting.
One suggession here. You saw I used to code first, then erase it and adjust as I proceed further with the pattern. So while coding probably you also will not be able to correctly code everything at first run. You can use pencil and rubber so that you can easily erase code and modify it. I used to do this in my exams for programming courses. No problem if the final code remains in pencil.
Me:
Next, the book contains many more details. For example, applicability, collaborations, participants. As you didn’t mention them in syllabus, I assume they can be safely ignored?
Sir:
collaborations you may ignore. But how can you ignore applicability and participants, I am not sure. The main thing of design pattern course it to learn where we can apply and what are the main classes of the pattern. This is what is applicability and participants. So these 2 are very important.
Me:
Lastly, in singleton pattern, in your presentation, you have given three kinds of implementations. In my humble opinion, the second one is better than the first one, and the third one is better than second one.
However, in such cases, if nothing is mentioned in question, will it be ok to write any of those implementations?
Sir:
Should not you use the best one?
Please make sure that you pass these message to all of your class mates.
Course Name: Design Pattern
Well, I had some confusions. And I mailed Maeenul sir about it. Here is his reply.
Me:
The Singleton pattern in design pattern book by GOF contains a structure image, which is similar to class diagram. Its format is somewhat like this
Class Name
=========
Methods
=========
Variables
However, the format of class diagram is like this
Class Name
=========
Variables
=========
Methods
This is somewhat confusing me. Which one is supposed to be used?
Sir:
Any one you like.
Me:
Again, we are used to accessibility symbols from the UML diagrams IDE generates for us. But generally, accessibility are expressed using , #, –, ~ according to IBM tutorials. Is it ok if we use any one of them when we hand draw?
Sir:
OK.
Me:
Also, when we write codes in paper, will you overlook the syntax details? You mentioned pseudo code, so if the code is a mixture of C# and Java syntaxes, will it be overlooked? As I am still an inexperienced C# programmer, I am facing this problem of somewhat mixing C# and Java syntaxes when I am practicing using pen and paper.
Sir:
language is not my concern, The code needs to explain the pattern. Thats it. You saw in class, how I coded on the board. That is what I am expecting.
One suggession here. You saw I used to code first, then erase it and adjust as I proceed further with the pattern. So while coding probably you also will not be able to correctly code everything at first run. You can use pencil and rubber so that you can easily erase code and modify it. I used to do this in my exams for programming courses. No problem if the final code remains in pencil.
Me:
Next, the book contains many more details. For example, applicability, collaborations, participants. As you didn’t mention them in syllabus, I assume they can be safely ignored?
Sir:
collaborations you may ignore. But how can you ignore applicability and participants, I am not sure. The main thing of design pattern course it to learn where we can apply and what are the main classes of the pattern. This is what is applicability and participants. So these 2 are very important.
Me:
Lastly, in singleton pattern, in your presentation, you have given three kinds of implementations. In my humble opinion, the second one is better than the first one, and the third one is better than second one.
However, in such cases, if nothing is mentioned in question, will it be ok to write any of those implementations?
Sir:
Should not you use the best one?
Please make sure that you pass these message to all of your class mates.
BIT0117-Ibrahim- Study Moderator
- Course(s) :
- BIT
Blood Group : B+
Posts : 96
Points : 234
Re: Design Pattern Exam: Some more information About Code, and class diagram and etc
Thanks a lot for the information
I was also confused about some of them.
I was also confused about some of them.
Re: Design Pattern Exam: Some more information About Code, and class diagram and etc
Hello All,
This is another link which may become helpful for us.Because I saw that some patterns code match here which sir was solved in our classes.Motivation, intent, applicability and codes are given here more clearly. So you all can see this link.
[You must be registered and logged in to see this link.]
This is another link which may become helpful for us.Because I saw that some patterns code match here which sir was solved in our classes.Motivation, intent, applicability and codes are given here more clearly. So you all can see this link.
[You must be registered and logged in to see this link.]
BIT0117-Ibrahim- Study Moderator
- Course(s) :
- BIT
Blood Group : B+
Posts : 96
Points : 234
Re: Design Pattern Exam: Some more information About Code, and class diagram and etc
BIT0117-Ibrahim wrote:Hello All,
This is another link which may become helpful for us.Because I saw that some patterns code match here which sir was solved in our classes.Motivation, intent, applicability and codes are given here more clearly. So you all can see this link.
[You must be registered and logged in to see this link.]
ছোট্ট বন্ধু, এই লিংকটা অনেক আগেই দেয়া হয়েছিল।
তুমি মনে হয় দেখো নাই
BIT0115-Efat- Service Release
- Course(s) :
- BIT
Blood Group : O+
Posts : 779
Points : 1120
Re: Design Pattern Exam: Some more information About Code, and class diagram and etc
দেয়া হলে দেয়া হইছে। আমার মনে ছিল না এই লিংকের কথা। আবার দেয়াতে মনে পড়লো
Similar topics
» Design Pattern exam related study Link: Class Diagram
» Design Pattern - Final Exam related Information - UPDATED
» Design pattern Assignment - fly weight pattern
» Design Pattern : Smelly Code help material
» Where are the details of the design pattern exam on March 12, 2011?
» Design Pattern - Final Exam related Information - UPDATED
» Design pattern Assignment - fly weight pattern
» Design Pattern : Smelly Code help material
» Where are the details of the design pattern exam on March 12, 2011?
IITDU Forum :: Academics (BIT) :: Semester 5 :: SE 506
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
Tue Sep 29, 2015 2:45 pm by Sophiawood
» Cisco EHWIC SFP/GE WAN Card
Mon Sep 07, 2015 11:08 am by Sophiawood
» Huawei S1700-28GFR-4P-AC Price
Thu Jun 25, 2015 2:31 pm by Sophiawood
» teach yourself C++ / Herbert Schildt Solutions
Wed Jun 03, 2015 1:52 pm by Abdullah Al Noman
» teach yourself c by herbert schildt pdf
Wed May 13, 2015 11:01 pm by Raquib Ridwan
» ASA 5506X With Firepower ASA5506-K9
Fri Apr 10, 2015 4:31 pm by Sophiawood
» New Trends in Deal Business
Tue Feb 03, 2015 9:38 pm by nersoa
» PoE Power Allocation for WS-C2960S-24PS-L
Wed Nov 05, 2014 11:12 am by Sophiawood
» How to cure back pain
Fri Oct 31, 2014 7:15 pm by Bergen Guildford