Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

B&S: Interpretation Question, Please!

 
Scott H. Kao
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi each and every member,

I'm about to submit my assignment, but when I made the final
review of the specification I found a sentance seeming stranger
than what I had thought earlier.
In the DBAccess interface, the comment close to the updateRecord() reads:

"... The new value for field n appears in data[n]."

I originally interpreted the 1st field as appearing in data[0],
the second in data[1], ... etc.

But I'm considering of another interpretation that
the 1st field appears in data[1],
the second in data[2], ... etc.


What do you interpret it as the specification really wanted?

Thanks in advance!

Best regards,
Scott
 
Barend Garvelink
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Scott,

To be honest, I think you're reading too much into this. I would not worry.


Barend
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11855
187
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Scott,

I agree with Barend.

In this assignment, as in real life, you are unlikely to get perfect instructions. Sometimes this could be because the person writing the instructions has a different "mindset" (e.g. they may be a DBA moving into writing programming specifications - in which case they may well write that field 1 goes into data[1]), and sometimes the confusion could be deliberate (so that the customer has more time to think / clarify instructions, or (in the case of assignments for certification) it could be that the instructions are meant to mirror the vaguarities of a real life assignment ).

Go with what seems a reasonable interpretation for us: that the "1st field as appearing in data[0]"

Regards, Andrew
 
Scott H. Kao
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Barend and Barend,

Thank you for your replies and thoughts!

Best Regards,
Scott
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic