Problem Earlier today I wrote a question (Validating a StreamingPin) and I thought it was a good idea (apparently I […]
Tag: validation
Hold and validate EAN code – follow-up
Problem Based on suggestions and some thoughts I made some refactorings of my classes to hold EAN13 codes, I created […]
Validation sequence
Problem if ( ! empty( $form[ ’email’ ] ) ) { $validator = v::email()->validate( $form[ ’email’ ] ); if ( […]
Validating an IP address and returning the reason it’s invalid
Problem I have a method that validates a user-written IP address in an Android application. If it’s invalid, I need […]
Method for validating properties based on passed conditions
Problem I wrote a method for validating properties based on passed conditions. It works well, but declaration takes more space […]
Two methods to prompt the user to enter the width and length of a rectangle
Problem I have two similar methods for setting dimensions of a rectangle. At first, I had them combined into one […]
jQuery array of functions validation
Problem I am attempting to validate a set of business rules in order for a user to successfully add to […]
Form validation function for React
Problem I need to validate multiple input fields using React. I am using a simple if-else block for each input […]
c# record parameter validation technique
Problem This comes from an answer I provided to a question on stackoverflow here: https://stackoverflow.com/a/71482194/3258131 To make c# record parameter […]
PHP class to send CRM records to Five9 API
Problem I am experimenting with the Five9 API and setting up a PHP class to deal with the addRecordstoList method. […]