Re: OOP/OOD Philosophy



Phlip wrote:
frebe wrote:


Just keep to ANSI SQL and you will be able to change database vendor at
any time. The applications I currently work with, are database vendor
independent without separating the database schema from the GUI or
"business" logic. Using ANSI SQL the database schema are already
separated from the database vendor.


I want to switch to XML.


"I'm sorry, but we didn't plan for XML. So, you can't without, essentially, a rewrite."


"Well, can't you change the code quickly to accomodate XML? I read about a team that converted persistence strategies in a 100 KSLOC code base in about a week. They said that all of the tests that they had helped them do it."

"Er, I'm sorry about that too, but you see once we figured out that had to populate a database every time that we wanted to setup a test, well, we stopped writing as many tests. Plus, the only way to test our app is through the GUI with a screen-scraping tool and well, the tests are horrible to maintain. We have some tests but nowhere near as many as it would take to do a quick safe conversion."

"Please tell me I didn't pay for this."


Michael Feathers author, Working Effectively with Legacy Code (Prentice Hall) www.objectmentor.com .



Relevant Pages

  • Re: Complex Windows Applications in C# -- how high is the bar?
    ... child windows containing various Windows controls, ... application in order to stretch it to handle an enitrely new database ... concern is the GUI -- this is a very complex application in terms of its ... There's nothing wrong with letting the complex GUI stuff remain in the hands of Win32 code and use managed code for the database access, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: porting curses driven to gui application
    ... > more than just replace the curses interface by a GUI. ... > don't have a X server (e.g. because they are just running Windows ... > running on the machine where the database is also running. ... > server and the client on the user side. ...
    (comp.unix.programmer)
  • Re: How to handle mouse events during a long-running database transaction?
    ... isolate your blocking transaction in another thread, ... The application has TCP/IP, UDP/IP connections, local memory database ... and the GUI. ... Do you have any idea how to get mouse motion events from the event ...
    (comp.lang.tcl)
  • Re: The future of Linux
    ... Occasionally, I might use a spreadsheet, wordprocessor, or database. ... depending on the selection of OS your work uses. ... "bash history" that remembers your commands and allows you to search ... talking to remote databases without a GUI overhead across the network. ...
    (comp.os.linux.misc)
  • Re: Advice on Architecture
    ... abstraction from the database. ... My recommendation: for all your lookup data: ... You can simply store the array of DataRow objects and pass it ... If you are going to make a connection, get data, fill some GUI, and not ...
    (microsoft.public.dotnet.general)