This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mark Help Me Out

 
Anurag Mishra
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mark Tell me please that which type of questions are asked in the Essay Exam I have practice this type of questions,Please tell me which type of question you got in your essay exam, It's a personal request.
Q1)Choice regarding data structures?
Q2)Choice regarding Design Patterns?
In this I have to give Full explanation of my design pattern or just tell them that I had used Adapter and Factory Pattern.
Q3)Choice regarding GUI design which Layout's I have used and why?
What Else can be asked please send me the questions I will be really thankful to you. I am very much nerveous.
Plzzzzzzzzzzzz Help Me.
Anurag Mishra
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you extend or modify your Data class?
Did you use RMI or Object Serialization? What are the denefits or disadvantages?
That should be enough with what you have already worked on.
I really wouldn't worry about it. It is really easy.

Mark
 
Rajesh Matti
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mark- Kind of concerned. Is it generally understood that only one of subclassing Data class OR modifying Data class is accepted ?. I am completely on a different path !!!. Please advise.
Thanks,
-Rajesh
 
Bal Sharma
Ranch Hand
Posts: 273
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Is it generally understood that only one of subclassing Data class OR modifying Data class is accepted ?.

Yep, I think so. My instruction reads "Part of your assignment will be to enhance the Data class. You may do this by modification or subclassing.."
Is there any other way so that Data class can be enhanced? I am not sure.
Hope it helps. -Bal
 
Rajesh Matti
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
================================================
Is there any other way so that Data class can be enhanced? I am not sure.
================================================
Sure, by using a decorator or an adapter. This is using composition.
 
Suchak Jani
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure, by using a decorator or an adapter. This is using composition
I am using the delegation pattern to do this.
Is this a problem? I mean i will not do it this way if it is .
The Decorator pattern is a structured way of applying the Delegation pattern.
Delegation (When not to use Inheritance)
Delegation is a way of extending and reusing a class by writing another class with additional functionality that uses instances of the original class to provide the original functionality

http://www.clickblocks.org/patterns1/pattern_synopses.htm#Delegation
 
Gregory Garrison
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think alot of individuals here are getting a little hyper about "Patterns". Patterns are really more of an Architectural issue. Also, this is a small, prebuilt application so there is not a lot of room to introduce well defined patterns. Just build the app with some decent code and you will pass. Also, there are three ways to go with the Data class - extend, not extending or both. I would not extend the lock methods because every application needs to lock otherwise the integrity of the database will be compromised and you will get runtime errors if one application locks and another does not. Also, my oppinion is that the criteriaFind method should be placed in the Data class as well. It is an enhancement. Existing applications should have the benefit of using it if they want to. Why introduce an enhancement only to limit it to a new subclass?
 
Rajesh Matti
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gregory -
=================================================
I think alot of individuals here are getting a little hyper about "Patterns".
=================================================
I would not call it hyper, it is an excitement for those who do not know they may OR have already used few design patterns without knowing what is in 'design patterns'.
================================================
Patterns are really more of an Architectural issue.
================================================
They are really more of implementaion solutions than architectural issues. For example, architecture may say, there is sorter somewhere in the overall architecture. But, applying proven computer science and algorithms gives an efficient pattern (way, approach) to sort.
================================================
Also, this is a small, prebuilt application so there is not a lot of room to introduce well defined patterns
===============================================
I totally disagree. The few constraints are 1)if it really matters to the person who is marking or 2) if it is an overkill for the asked requirments
3) is it how most of the pople solved it ?, nobody wants to loose marks deviating too much from most of the SCJDs (Known devil is better than the unknown !!!")
============================================
Also, there are three ways to go with the Data class - extend, not extending or both.
============================================
There are other ways too.
===============================================
I would not extend the lock methods because every application needs to lock otherwise the integrity of the database will be compromised and you will get runtime errors if one application locks and another does not.
================================================
Not very clear. Please clarify, I feel that I am missing something here.
================================================
Also, my oppinion is that the criteriaFind method should be placed in the Data class as well. It is an enhancement. Existing applications should have the benefit of using it if they want to. Why introduce an enhancement only to limit it to a new subclass?
================================================
No matter where you put it, existing application must change and recompile to use this feature.

-Rajesh
 
Gregory Garrison
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey! Sorry! Just thought I was providing some insight based upon my experience. I'm saving all my pattern stamina for the SCEA2 exam.
GG
SCPJ2
SCDJ2
[ February 14, 2002: Message edited by: Gregory Garrison ]
 
Rajesh Matti
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gregory- Sorry man, I didn't mean to offend you. But just wanted to input my opinion.
Congrats on your marks. You did it.
Good luck for your SCJA.
-Rajesh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic