Banner Zenit, Scientific & ICT Services

24-May-2005

BuayaCorp forms validator (BuayaCorp Forms Validator)

alex in  Buayacorp writes that he has been looking for a Javascript field validator for HTML forms, but found none that met his requirements. He therefore wrote one of his own and posts a link to the source code ( BC-Validator). Its characteristics are:

  • validates data entered into text boxes, text areas and lists
  • allows the use of customized functions
  • allows adding of events based on regular expressions
  • has different ways of alerting errors
  • allows cleanup
  • implemented as an object
  • tested in IE6 and Firefox.

 

In which circumstances should we comment our code? (¿En que casos debemos comentar nuestro código?)

Jesus Perez in  Refactoring comments on an article by Mike Clark about writing good comments. The points that Jesus found most interesting were:

  • If it is poor quality code, adding comments to deodorize the bad smell is not a good idea. Correct the code instead.
  • We should try to make the code speak for itself. Adding obvious comments duplicates information and may be a source of error.
  • Most comments will not be necessary if we have a good naming convention and a good design.

 

Three new blogs about java in programacion.com (Tres nuevas bitácoras sobre Java en programacion.com)

jbravo in  Programando... comments on 3 new blogs on Java that have appeared in  programacion.com. These are Métricas Web, Java_blog and Técnicas de Programación.

 

How to use design patters (Cómo utilizar los patrones de diseño)

 Cesar Tardaguila in  design-nation posts a link to the article by  Bill Venners on  How to use design patterns.

 

Beyond the operating system (Más allá del sistema operativo)

The author of  Diario de un Programador has just been reading an article by  Jerry Pournelle in Byte. Jerry is a science fiction author, but in the article he writes the design of microprocessors and about puttig a layer between the hardware and the operating system. This idea could resolve the problems of incompatibility that we are experiencing now, and level the playing field for companies designing operating systems.

 

 

Return to Extracts from Planeta Código

TrickyDicky


© 2005-6

Home

[Image]