Tags for questions related to validating data.
1
vote
2answers
85 views
Approach to use for user email address change in application?
As the title says, if the user wants change their email address in the application, in terms of programming, what approach (process) to use? Where do you store the new email address until the user ...
2
votes
5answers
363 views
Why validate XML?
I am looking for an explanation on just why XML needs to be validated. I have been testing DTD's and Schema's for the past month and recently tried to find out why I am doing this. I know it makes the ...
0
votes
2answers
251 views
Form validation and file structure
I have a form (lets say a registration form) and onsubmit, it calls a function to validate as follows:
$.ajax({
url : "/ajax/validate.php",
type : "POST",
data : ...
0
votes
0answers
30 views
Dynamic server side form validation [duplicate]
I'm looking for new ways to create forms and dynamically validate them. I want to be able to create forms and not worry about putting a lot of time into them and their validation. I've tried methods ...
-2
votes
1answer
119 views
What is the best practice for method parameter validation in a library?
I develop a game library in javascript, containing many classes. I hesitate on the behavior that I should follow concerning method parameter validation:
Should I check the validity of parameters ...
3
votes
2answers
97 views
Design strategies for storing and validating serial numbers
We are writing software to track Foo Widgets. Each Foo Widget has a serial number. The serial number is an 32-character alphanumeric string. The string is separated into five sets. Each set is ...
1
vote
0answers
84 views
How do you track third party services SSL certificates?
Recently Windows Azure Storage SSL certificate unexpectedly expired and since a lot of dependent services defaulted to "refuse to connect to a site with expired SSL certificate" that became a serious ...
1
vote
6answers
299 views
Validation of the input parameter in caller: code duplication?
Where is the best place to validate input parameters of function: in caller or in function itself?
As I would like to improve my coding style, I try to find the best practices or some rules for this ...
1
vote
1answer
259 views
What is a practical level of abstraction in a web application? [closed]
(Originally asked on StackOverflow - http://stackoverflow.com/questions/14896121/what-is-a-practical-level-of-abstraction-in-a-web-application)
I still consider myself a newcomer to OO programming, ...
5
votes
2answers
361 views
How is the Trial Period for Softwares generally implemented?
I was always under the assumption that trial softwares write a registry value of the installation date and then the software makes a comparison of the current date of the system with the remaining ...
6
votes
7answers
450 views
When should pointers be checked for NULL in C?
Summary:
Should a function in C always check to make sure it is not dereferencing a NULL pointer? If not when is it appropriate to skip these checks?
Details:
I've been reading some books about ...
3
votes
1answer
200 views
MVC Pattern - How to get errors from the model to the controller?
Say I have a typical MVC setup. The controller passes on some input to the model, and asks it to do something with it. But the validation of the data fails, or there is some other problem. What's the ...
2
votes
2answers
139 views
Validating Objects With XSDs: Is Re-Serializing Redundant or Negligible?
Context:
I've got a web service that deals with request / response objects. There are strict, externally-defined schemas constraining both the structure and the content of both requests and ...
7
votes
1answer
160 views
Better to use error monad with validation in your monadic functions, or implement your own monad with validation directly in your bind?
I'm wondering what's better design wise for usability/maintainability, and what's better as far as fitting with the community.
Given the data model:
type Name = String
data Amount = Out | Some | ...
1
vote
1answer
145 views
Class structure/pattern for validating several different Excel templates?
I'm trying to validate the contents of Excel sheets that follow several different templates. For each one, there are three possible validation actions for various cells:
Regex (e.g. "XYZ-123" fails ...
4
votes
3answers
182 views
Name for sanitizing at the right time?
Recently we had an issue on our site where someone attempted SQL injection via a cookie (we'll call it lastID). NOC was in a frenzy and angry about how the cookie as an attack vector could be ...
1
vote
2answers
140 views
Referential integrity in a database where tuples are not physically deleted
Many modern Relational Database Management Systems automatically support referential integrity, i.e. when you try to delete a tuple which has a reference (in the form of foreign key, for example), the ...
2
votes
1answer
609 views
Mobile number validation
I am trying to find best way to validate a mobile number with in a country.
Currently my understanding is: User can enter whatever format they want in mobile numbers and its a waste of time and ...
4
votes
2answers
112 views
How to properly include field validation in a Software Documenation
I'm developing a software documentation in a project, and much of it are just CRUD or CRUD based functions. As you can imagine, a lot of the rules are constraints about fields validation, things like ...
6
votes
4answers
349 views
Validating User Stories: How much change is too much?
While the core of requirements development and acceptance criteria would ideally take place during the planning meeting in order to create a better estimate, Scrum encourages continuous interaction ...
1
vote
3answers
230 views
Why some consider static analysis a testing and some do not?
Preparing myself also to ISTQB certification, I found they call static analysis actually as a static testing, while some engineering book distinct between static analysis and testing, which is the ...
1
vote
3answers
172 views
System testing - making sure the system conforms to specification. Validation? [closed]
After weeks of research I have nearly completed my thesis, yet I am unable to clear up my confusion contained in all previous threads here (and in many books):
During system testing, we check the ...
2
votes
2answers
138 views
Validation and Verification explanation (Boehm) - I cannot understand its point
Hopefully my last thread about V&V as I found the B.Boehm is text which I just do not understand well (likely my technical English is not that good).
...
-1
votes
1answer
164 views
Are Verification and Validation both Quality Assurance and Quality Control?
Having read a book I found a note that verification and validation can be both quality assurance and quality control. I cannot see how it can be quality assurance because both just provide evidence ...
1
vote
4answers
1k views
How to apply verification and validation on the following example
I have been following verification and validation questions here with my colleagues, yet we are unable to see the slight differences, probably caused by language barrier in technical English.
An ...
6
votes
4answers
220 views
Can data classes contain methods for validation?
OK, say I have a data class for a user:
public class User {
private String firstName;
private String lastName;
private long personCode;
private Date birthDate;
private Gender gender;
private String ...
6
votes
2answers
401 views
Is server validation necessary with client-side validators?
I recently created a .net web app that used over 200 custom validators on one page. I wrote code for both ClientValidationFunction and OnServerValidate which results in a ton of repetitive code.
My ...
2
votes
0answers
134 views
How best to implement HTML5 support for my validation library
I have created an annotation-based validation library called regula. There seems to be some amount of interest around the framework and the next thing I'd like to do is to support HTML5 validation. ...
374
votes
3answers
50k views
Is the use of “utf8=✓” preferable to “utf8=true”?
I have recently seen a few URIs containing the query parameter "utf8=✓". My first impression (after thinking "mmm, looks cool") was that this could be used to detect a broken character encoding.
So, ...
-1
votes
1answer
105 views
Simple Architecture Verification [closed]
I just made an architecture for an application with the function of scoring, saving and loading tennis games. The architecture has 2 kinds of elements:
Components: Standalone elements that can be ...
-2
votes
1answer
778 views
Password Validation using regular expressions in html 5 [closed]
this question may sound stupid, but no one has ever taught me this. I have an HTML input for a password field, and you can only log on with one specific password with JS. Could someone please give me ...
2
votes
5answers
174 views
Verification of requirements question
Doing a lot of reading about V&V, I would need to clarify the following.
A lot of definitions (less formal ones found in books) define verification like that:
Verification: The software should ...
3
votes
2answers
517 views
Functional testing in the verification
Yesterday my question How come verification does not include actual testing? created a lot of controversy, yet did not reveal the answer for related and very important question: does black box ...
8
votes
3answers
485 views
How come verification does not include actual testing?
Having read a lot about this topic --- such as on this Software Testing Fundamentals site on verification and validation and Software Testing and Quality Assurance: Theory and Practice by Naik and ...
2
votes
3answers
280 views
Validating best practices, property vs dto, simple type vs object
Consider a user profile page. User can add many emails to his/her profile (something like GitHub's profile page).
So, theoretically, user hits the plus button, then enters an email address, and ...
0
votes
2answers
149 views
How should a website validate a users mailing address?
This is for a site that relies on shipping items via UPS or FedEx. I know there is software out there that does it (http://en.wikipedia.org/wiki/Coding_Accuracy_Support_System), but if you are trying ...
0
votes
2answers
177 views
What is the logic behind filtering/sanitizing input?
I have always found it more logic to validate input instead of filtering it. How to appropriately filter data depends on the situation, so IMO it should be done in output or when saving to a database.
...
1
vote
4answers
303 views
Is it practical to have perfect validation score on HTML?
I was in a heated discussion the other day, about whether or not it's practical to have a perfect validation score on any HTML document. By practical I mean:
Does not take a ridiculous amount of ...
10
votes
5answers
538 views
For an ORM supporting data validation, should constraints be enforced in the database as well?
I have always applied constraints at the database level in addition to my (ActiveRecord) models. But I've been wondering if this is really required?
A little background
I recently had to unit test a ...
0
votes
1answer
263 views
How to make Ninject inject an MVC view model?
How do I configure Ninject so it injects an instance in a view model?
PS. It is an abstracted service to help with validation, so I am not trying to burden the model with too much responsibilities.
7
votes
3answers
613 views
IValidatableObject vs Single Responsibility
I like the extnesibility point of MVC, allowing view models to implement IValidatableObject, and add custom validation.
I try to keep my Controllers lean, having this code be the only validation ...
7
votes
3answers
741 views
Validation and authorization in layered architecture
I know you are thinking (or maybe yelling), "not another question asking where validation belongs in a layered architecture?!?" Well, yes, but hopefully this will be a little bit of a different take ...
3
votes
1answer
220 views
Dapper and object validation/business rules enforcement
This isn't really Dapper-specific, actually, as it relates to any XML-serializeable object.. but it came up when I was storing an object using Dapper.
Anyways, say I have a user class.
Normally, I'd ...
5
votes
5answers
642 views
Is realtime validation of username good or bad?
I have a simple form for the user to sign up to my site; with email, username and password fields. We are now trying to implement an ajax validation so the user doesn't have to post the form to find ...
2
votes
2answers
70 views
Standard way of allowing general XML data
I'm writing a data gathering and reporting application that takes XML files as input, which will then be read, processed, and stored in a strongly-typed database. For example, an XML file for a "Job" ...
2
votes
3answers
258 views
Validating allowed characters or validating disallowed characters
I've always validated my user input based on a list of valid/allowed characters, rather than a list of invalid/disallowed characters (or simply no validation). It's just a habit I picked up, probably ...
1
vote
1answer
270 views
DDD and validation of aggregate root
Suppose an aggregate root : MailConfiguration (wrapping an AddressPart object). The AddressPart object is a simple immutable value object with some fields like senderAdress, recipentAddress (to make ...
2
votes
1answer
109 views
Ensure data entered by users adjusts to what actually is
This is more of a usability issue I'd say, looking of suggestions on it.
I have a system that depends on the data entered by the users to be correct, as in the address exists, the name is correct, ...
0
votes
1answer
148 views
Verification & Validation books
So I need some help with Verification & Validation of software. So I know the definitions of both but ... I can't really find any real entry level books about the process from setting up the ...
7
votes
3answers
232 views
How to measure external quality of software
For my thesis, I am doing research into the characteristics of Behavior Driven Development (BDD). One of the BDD claims is that by specifying the requirements in a ubiquitous language together with ...