Dev Shed Lounge
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherDev Shed Lounge

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #16  
Old February 4th, 2003, 04:50 PM
AlCapone's Avatar
AlCapone AlCapone is offline
Mobbing Gangster
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Sep 2001
Location: "Best City" 2002 and 2003- Melbourne, Australia
Posts: 4,913 AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 h 36 m 31 sec
Reputation Power: 18
Send a message via ICQ to AlCapone Send a message via AIM to AlCapone Send a message via Yahoo to AlCapone
roflmao mate! I don't ever give those idiot users option to delete anything! Just make a column in the database 'deleted' and stick date in there when they click delete. And then just have cron purging data that's say older than 2 weeks or something..
__________________
And you know I mean that.

Reply With Quote
  #17  
Old February 4th, 2003, 08:17 PM
Ctb's Avatar
Ctb Ctb is offline
An Ominous Coward
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jan 2002
Posts: 4,425 Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 3 Weeks 10 h
Reputation Power: 0
Uh uh... I don't let user's make changes directly to the data in the database. The extra layer of abstraction is more an overture to the stupidity of FUTURE users, not the current one. This guy's actually quite intelligent, especially compared to the average joe luser.

Basically, data in the system goes back and forth like this:

USER <---> FLATFILE TEXT <---> DATABASE

The user can either create new data to input in the database, or they can pull data from the database. Either way, the data they actually edit is ALWAYS in the FLATFILE TEXT stage. That way, I can say "look - you can muck around with it however you want, just don't commit the changes until you're CERTAIN that's what you want to do". Even then, there's a window of several hours before the changes really do commit for most edits (deletion of textual data is an exception). It also makes it virtually impossible to delete content from the databse unintentionally (database data is absolutely sacred in this case - it MUST not be spoiled for good reason).

This guy, however, made changes to about 20 documents or more over a period of maybe 4 hours. Then, he went to commit them all at the same time, accidentally chose to delete it, and wiped out ALL of his draft work. Since it was all from scratch, it didn't exist in any form anywhere else, so it was gone I tried some heroic efforts, but, ultimately, it was consigned to the ultimate data afterworld: bit bucket... bummer. It was a poor design decision on my part to not verify the removal, and to not put a limit on how many can be deleted at one time - two things that have since changed!

Still, although I trust the current guy to not fudge things up, I have taken into consideration future waves of idiots who may take over and basically made it as simplistic as possible.... I don't trust the average user as far as I can throw 'im...

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDev Shed Lounge > Pray for Database....


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT