RE: adding key to DB object

From: Brandon Metcalf (bmetcalf_at_nortel.com)
Date: 03/29/05


Date: Tue, 29 Mar 2005 15:32:39 -0600 (CST)
To: "Rutherdale, Will" <Will.Rutherdale@sciatl.com>

W == Will.Rutherdale@sciatl.com writes:

 W> For the same reason you wouldn't modify data in a C structure belonging
 W> to
 W> an API you're using. It violates the general software engineering
 W> principles of information hiding and encapsulation. There are all kinds
 W> of
 W> reasons putting your own data into an API's structure is bad, for
 W> instance
 W> if the implementation changes then your trick may no longer work, and
 W> your
 W> code will not be portable to new versions of the library.

Understood.

-- 
Brandon


Relevant Pages

  • RE: adding key to DB object
    ... For the same reason you wouldn't modify data in a C structure belonging to ... principles of information hiding and encapsulation. ...
    (perl.dbi.users)
  • RE: adding key to DB object
    ... > For the same reason you wouldn't modify data in a C structure belonging to ... However, in this case, DBI defines an API that allows you to store your own ... all your code has to work off your object, rather than the standard database ...
    (perl.dbi.users)
  • Re: Submitting as POST. Why?
    ... POST is mainly used to modify data, GET is mainly used to show data. ... itoctopus - http://www.itoctopus.com ... I only know of one reason to submit a form as POST and that is because ... you can submit more data in one shot. ...
    (php.general)