• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is the point of learning something the less preferred way?

 
leo donahue
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I taking a break from reading my cert book to practice some mock exam questions for the chapters I've read so far. So far, I've missed every question because the questions are written in exactly the way in which my cert book tells me not to write java code.
What's the point?
Example:
Which two will declare an array and initialize it with four numbers?
answers:
int array[] = new int[4];
int x[] = {1,0,2,0};
So much for the preferred method of writing arrays and so much for the leaving out of the word "construct" from the question.
If I'm supposed to learn the "right" way to code, what's the point in being tested over the "wrong" way?
 
Brian Joseph
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, some of the debate about the certification is in it's usefulness of the tested material. With the exam it's all about legal syntax, how well you know the language specifications. Practical programming or good design is not part of it. In fact, you see mock questions which are written like nothing you'll probably ever see in the real world. I mean, I don't know if I'll ever actually have a need to know there is a difference between -0.0 and +0.0, and you really only need to know one or two ways to create an array.
But, for the purposes of getting the certification, you'll need to know some of the details. Once you take answer a couple hundred practice questions over the course of a few weeks it'll be a lot easier.
Actually, I think studying for this is worth it. I've already noticed that I have a greater understanding of the code I'm writing. I'm just aware of more possibilities with the language now, and it is easier to explore them since I know what the language is capable of. I didn't have that type of in-depth knowledge before.
 
chi Lin
Ranch Hand
Posts: 348
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with Brian,
For exam purpose, you may be forced to momorize something real world programmer does NOT worry a bit in order to response correctly/efficently in the exam ... (I forgot most of them after the test as I did not encounter them daily to refresh my memory)
good thing is, when you encounter something similar later on, you know the path to look for answer.
HTH
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic