Tags for questions related to validating data.

learn more… | top users | synonyms

3
votes
4answers
359 views

Should validation messages contain punctuation? [closed]

When building an application should all validation messages have punctuation?
8
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? ...
20
votes
10answers
7k 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
960 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
402 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 ...
75
votes
25answers
13k 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 ...