Tags for questions related to validating data.

learn more… | top users | synonyms

3
votes
1answer
324 views

How can I use Windows Workflow for validation of a Silverlight application?

I want to use Windows Workflow to provide a validation service. The validation that will be provided may have multiple tiers with chaining and redirecting to other stages of validation. The ...
10
votes
6answers
2k views

How should I handle invalid user input?

I have been thinking about this issue for a while and I would be curious to have opinions from other developers. I tend to have a very defensive style of programming. My typical block or method looks ...
2
votes
3answers
187 views

Do you do any validation on directories when recursively deleting them?

How do you recursively delete paths of the data that your app created? The deleting process itself is trivial. The question is, do you do extra validation? And if so, what kind? From one point of ...
5
votes
5answers
764 views

In a web application backed by a database, how often should I validate data? [duplicate]

Possible Duplicate: Data input validation - Where? How much? Given that I have a web application with a user facing form that will store information in a database (that will be used by ...
5
votes
4answers
462 views

How far should I take email address validation when the cost of bad emails is high?

When it's more important to prevent typos than to cover 100% of all possible email addresses, what syntactic email validations do you do? Imagine this: You're with the local gas & electric ...
0
votes
1answer
78 views

Should I implement functionality for an xml file+schema?

I am working on a script to get data from excel spreadsheets to a database. The data is from surveys conducted by our office where the data comes in with very little formatting. At the moment, the ...
9
votes
4answers
742 views

How defensive should we be?

We've been running Pex over some code, and it has been showing some good things (well bad things, but showing them before it gets to production!). However, one of the nice things about Pex is that it ...
19
votes
5answers
3k views

Data input validation - Where? How much? [closed]

Data input validation always was quite an internal struggle to me. On the verge of adding a real security framework and code to our legacy application rewrite project (which so far pretty much keeps ...
8
votes
5answers
6k views

What Special characters should one allow for a Phone Number?

So I am designing a webpage which will be used for global users, includes users from Canada, US, India, UK etc. I need to apply validations for this phone number field, but I'm not sure the best way ...
10
votes
2answers
4k views

Has anyone successfully used Windows Workflow for a Business Rules/Validation engine?

I was wondering if anyone has successfully used Windows Workflow Foundation for a BusinessRules/Validation engine, or if you know of some sample code or articles about this. If you have used it ...
18
votes
10answers
6k views

Should a method validate its parameters? [duplicate]

Say you are designing a Square root method sqrt. Do you prefer to validate the parameter passed is not a negative number or do you leave it up to the caller to make sure the param passed is valid. How ...
30
votes
21answers
6k views

Is Software Testing Really Needed?

I'm a student working on my B.E(CS) and my question is the following: Is testing in the software field needed? If we create a software with great care, then why should we test? After testing can ...
3
votes
2answers
663 views

Best practice for validating XML messages

Two systems are communicating via XML messages on a message queue and any received message must be validated for structure, content and business logic before being processed. An XML schema offers ...
4
votes
4answers
405 views

Should validation messages contain punctuation? [closed]

When building an application should all validation messages have punctuation?
9
votes
5answers
3k views

Do you use both Client-side and Server-side validation techniques?

Do you use both Client-side and Server-side validation techniques side by side when validating input from a user, e.g. via a contact form? If so, is it really necessary? Are you over engineering? ...
21
votes
10answers
10k views

Constructor parameter validation in C# - Best practices

What is the best practice for constructor parameter validation? Suppose a simple bit of C#: public class MyClass { public MyClass(string text) { if (String.IsNullOrEmpty(text)) ...
19
votes
9answers
2k views

Is an 'if password == XXXXXXX' enough for minimum security?

If I create a login for an app that has middle to low security risk (in other words, its not a banking app or anything), is it acceptable for me to verify a password entered by the user by just saying ...
4
votes
8answers
1k views

Data validation best practices: how can I better construct user feedback?

Data validation, whether it be domain object, form, or any other type of input validation, could theoretically be part of any development effort, no matter its size or complexity. I sometimes find ...
1
vote
3answers
439 views

Textarea validation

I'm interested to hear what characters people permit in the various common fields of input forms (barring e-mail...) For example: Textarea/Messages: do you allow completely free text, or restrict ...
83
votes
25answers
16k views

How far should one take e-mail address validation?

I'm wondering how far people should take the validation of e-mail address. My field is primarily web-development, but this applies anywhere. I've seen a few approaches: simply checking if there is ...