Tags » ‘Buenas Practicas’

Complexity kills. Complexity sucks the life out of users, developers and IT.  Complexity makes products difficult to plan, build, test and use.  Complexity introduces security challenges.  Complexity causes administrator frustration.

Ray Ozzie

Fuente: Dawn of a New Day

WTFs/mVisto en Clean Code: A Handbook of Agile Software Craftsmanship (Robert C. Martin)

In general programmers are pretty smart people. Smart people sometimes like to show
off their smarts by demonstrating their mental juggling abilities. After all, if you can reliably
remember that r is the lower-cased version of the url with the host and scheme
removed, then you must clearly be very smart.

 

One difference between a smart programmer and a professional programmer is that
the professional understands that clarity is king. Professionals use their powers for good
and write code that others can understand.

Clean Code A Handbook of Agile Software Craftsmanship, Robert C. Martin

Índice

Evil or not evil

Crockford es cosa seria

Antes de empezar, es bueno hacer notar que las afirmaciones tan intransigentes como ‘___ is evil’ no deberían darse sin un contexto específico en el cual se pueda justificar dicha afirmación (si es que existe el contexto en cuestión). Siendo tal que lo que en una situación puntual es útil y hasta aconsejable, no lo sea en otra.

Por eso mismo, no es aconsejable dejarse llevar por afirmaciones dogmaticas realizadas al respecto, aún si vienen de una eminencia del tema:

Douglas Crockford:

“eval is Evil: The eval function is the most misused feature of JavaScript. Avoid it”

John Resig:

“Code evaluation is simultaneously the most advanced and most frequently misused feature of JavaScript. Understanding the situations in which it can and should be used (along with the best techniques for using it) can give you a definite advantage when creating advanced applications.

Siendos un poco más justos con la línea de pensamiento del señor Crockford, hay que admitir que es excesivo el uso de la sentencia eval por parte de los programadores novatos, los cuales utilizan dicha herramienta para paliar su falta de conocimiento/interés en soluciones más propicias.

Douglas Crockford:

“… it turns out that if you have absolutely no idea what you’re doing in the language you can still generally make things work.”

Originalmente visto en: Always put enough comments in your code! (Amir Salihefendic / amix)

put_comments_in_your_code

 

  • Buscar

  • Ultimos Twits

  • Por fecha

    • 2012 (11)
    • 2011 (63)
    • 2010 (13)
  • Tags

  • Documentacion Javascript

    JavaScript Reference, JavaScript Guide, JavaScript API, JS API, JS Guide, JS Reference, Learn JS, JS Documentation