Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Ask Reuben 210 - Optimistic vs Pessimistic Field Validation  (Read 2161 times)
Reuben B.
Four Js
Posts: 1119


« on: January 25, 2024, 12:44:15 am »

Most of you should be aware of the concepts of optimistic and pessimistic locking as it relates to the concept of how to handle concurrent access to the same database records (if not then that will be a future Ask-Reuben).  When it comes to validating the data entered by an INPUT dialog, there are two coding patterns that can be used to validate the data that I like also to describe as being pessimistic and optimistic.
 
Both patterns have their strengths and weaknesses.

Read more at https://4js.com/ask-reuben/ig-210/

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines