Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [validation]

Tags for questions related to validating data.

Filter by
Sorted by
Tagged with
5 votes
6 answers
778 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 ...
user avatar
0 votes
1 answer
110 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 ...
user avatar
  • 103
12 votes
4 answers
1k 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 ...
user avatar
  • 3,807
30 votes
5 answers
10k 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 ...
user avatar
  • 469
21 votes
6 answers
34k 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 ...
user avatar
  • 973
11 votes
2 answers
6k 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 ...
user avatar
  • 23.9k
53 votes
10 answers
33k 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 ...
user avatar
  • 1,932
33 votes
21 answers
10k 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 ...
4 votes
2 answers
2k 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 ...
user avatar
  • 309
5 votes
4 answers
2k views

Should validation messages contain punctuation? [closed]

When building an application should all validation messages have punctuation?
user avatar
10 votes
5 answers
10k 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?
user avatar
39 votes
9 answers
44k 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)) ...
user avatar
  • 2,028
20 votes
9 answers
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 ...
user avatar
5 votes
8 answers
2k 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
3 answers
519 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 ...
user avatar
  • 2,275
108 votes
25 answers
36k 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 ...
user avatar
  • 1,249

1 2 3 4 5
6