Questions tagged as 'validação'

8
answers

Is using validation via client sufficient?

Is using validations in JavaScript enough for efficient validation? Example : Validate dates. Is it also necessary to check the code? What are the disadvantages of doing validations via client-side ?
asked by 17.04.2014 / 18:59
4
answers

Type of the CPF or CNPJ field in the VARCHAR or INT database?

What type of CPF or CNPJ field in database VARCHAR or INT ? I've seen some posts suggesting to use INT to optimize performance in JOIN and filters. If you have 0 on the left, you can only complete it according...
asked by 22.01.2015 / 14:51
5
answers

Is there any algorithm to check the validity of a RG number in Brazil using digits checkers?

Is there any algorithm to check the validity of a RG number in Brazil using digits checkers, as with the CPF? If so, what is this algorithm like?     
asked by 11.12.2013 / 18:27
3
answers

Should we validate function parameters?

In languages like Java, the method parameters are "validated" in the compilation (at least the type): public void facaAlgo(String str) { // ... } // em algum outro lugar: int i = 2; this.facaAlgo(i); // erro de compilação! In dynamic typ...
asked by 02.12.2014 / 12:46