Hi All

This is offtopic, but I figure we're going to have a good percentage of
commercial developers here...

This is pretty much a (programming) language neutral question.

We have no choice on how we access the members of a simple array - we must
access them via numbered index. For instance,
value = someArray(8);

But for some collections (eg. a ResultSet (basically a table of data
returned by an SQL query) in Java), we can access elements via numbered
index or by name. For instance,
/* By numbered index.
 * This returns the value of a cell in the current row at the third column.
 * (The columns collections is 1-based).
 */
value = rs(3);
/* By name.
 * This returns the value of a cell in the current row at the Username
column.
 */
value = rs("Username");

My question concerns this second type of collection; the type in which
entries can be access by numbered index or by name. I'm after feedback on
the following statement:

"In a commercial software development enviroment, where maintainability is a
significant issue, using 'by name' retrieval of data is preferable to 'by
index' for collections that support both methods of data access. Assume that
we are speaking of non-iterative retrieval of data."

Any and all feedback welcome and appreciated.

Rob

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to