Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Bad Data in Original Database

 
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I recently downloaded my assignment and wrote a small GUI piece to view the data from db.db. Four records in the database have invalid data (such as 14:75 and 11:65 as times of departure and duration). I found a few messages in this forum refering to this, and the answers seemed to be to ignore the bad data and show it in the table as is. However, the fact that there are relatively many "bad" fields tells me that I should probably be expected to do some sort of validation, although it is not explicitely mentioned in the instructions. What do you guys think?
Thanks,
Eugene.
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I noticed the bad data as well. I am leaving it as is but noting the fact that it is there in my design decisions document. I am justifying leaving the data alone on the basis that it is not the function of the application to ensure data validity of existing data, only of that which the user enters through the reservation system.
I don't know if that'll fly (I'm preparing to upload later this week....whew!), but any data cleanup efforts I could think of were not very elegant and rather arbitrary.
 
I'd appreciate it if you pronounced my name correctly. Pinhead, with a silent "H". Petite ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic