To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Discussion > Echo Lounge

Echo Lounge General Chat and Introductions. A catch all for any topic.

Reply
 
Thread Tools Rate Thread Display Modes
Old 09-27-2002, 04:22 AM   #1
JDcrack
Senior Member
 
JDcrack's Avatar
 
Join Date: Aug 2002
Location: USA
Posts: 140
Bad Programming

http://www.phpbuilder.com/board/show...eadid=10212055

Any other opinions?
__________________
CODITO ERGO SUM
~JDcrack
JDcrack is offline   Reply With Quote
Old 10-01-2002, 11:35 AM   #2
bastien
Senior Member
 
bastien's Avatar
 
Join Date: Oct 2001
Location: toronto, canada
Posts: 2,386
said it once say it again

programming is

70% coding to prevent users from f****ing up
30% to do the job

if the user can screw things up, they will...

i suppose it is a rather cynical view of people, but unfortunately also true...

I recently wrote an ASP application (yeah I know ) where about 30 lines of code did the actual work, 200 or so lines were dedicated to checking inputs and preventing errors or stopping malicious users from trying to access the DB


Note: Humans on average use 13% of our brainpower, half of that is dedicated to finding better ways to blow each other up...
__________________
Bastien

Cat, the other other white meat.
bastien is offline   Reply With Quote
Old 10-01-2002, 01:07 PM   #3
Sxooter
Chamberlain
 
Sxooter's Avatar
 
Join Date: Aug 2002
Location: Denver, CO
Posts: 4,056
I like the last idea listed of using a sequence that you stick in each form for posting, so that once you've posted from that form, the sequence number is used up. Then you have to post from a newly produced form which should cut down on duplicates a fair bit.
__________________
PostgreSQL version 8.4 is now in beta! New features in the works: Updateable Views, WITH queries including recursive, On-disk bitmap indexes, and improved partitioning. woot!
Sxooter is offline   Reply With Quote
Old 10-06-2002, 10:53 PM   #4
7khat
Member
 
Join Date: Sep 2002
Location: Canberra, Australia
Posts: 36
The method I have always used is that I check if the user has: a) Posted anything in the last minute by doing a SELECT on anything with the timestamp greater that a minute ago from the current time.
b) checks if the same user has posted in the same topic with the same message. There is obviously no need for anyone to ever need to post an identical post in the same thread for any reason. I'd identify that as spam. However if you think there is a valid reason for it then you can always just put a timecheck on it as well.

THe sequence ID is a clever idea, and I implement that in other applications in a similar manner. In my forums though it'd only mean more tables or columns and more information that needs to be sent through pages.
7khat is offline   Reply With Quote
Old 10-17-2002, 07:26 PM   #5
Jedi Legend
Member
 
Join Date: Aug 2002
Posts: 73
Or you could use a java script that disables the submit button after it is clicked the first time.
Jedi Legend is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 07:13 AM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.