Groovy: using parameters with default values to separate method configuration from method body

noviembre 23, 2012 at 10:37

And with that huge title , I want to talk about a little technique that I like to use in Groovy by taking advantage of the method parameters with default values feature. By method configuration and method body I am refering to two typical parts of a business logic method [...]

Java: cambiar el valor de un atributo privado de un objeto

mayo 29, 2007 at 13:17

En Java a veces es necesario cambiar el valor de un atributo privado de un objeto. Por suerte, la reflexión nos permite hace esto de forma sencilla. El código, como vereis, no puede ser más simple: public static void setField (Object o, String fieldName, Object newValue) throws IllegalArgumentException, IllegalAccessException { [...]

Jamie Zawinski dijo

agosto 21, 2006 at 16:14

Frase célebre acerca de las expresiones regulares y su complejidad

Una práctica chula (robots y torres de Hanoi)

enero 26, 2006 at 10:32

Hace no mucho Jose y yo hemos terminado una práctica muy interesante. Se trata de programar una librería para manejar un brazo industrial “de juguete” (por tamaño, más que nada), y posteriormente usar esa librería para hacer una demostración (el brazo robótico resuelve el juego de las torres de Hanoi [...]