Four Js Development Tools Forum

General => Ask Reuben => Topic started by: Reuben B. on January 25, 2024, 12:44:15 am



Title: Ask Reuben 210 - Optimistic vs Pessimistic Field Validation
Post by: Reuben B. 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/