![]() |
22-May-2005
clbustos in Php y otras yerbas announces the latest release of rb_cdio, the ruby library for reading index information on a CD. Apart from some internal improvements, several new methods have been implemented. He gives a link from where the new version can be downloaded. Jesus Perez in Refactoring asks if we always pass the same value as one of the parameters to a method. It is often the case that parameters are created because we think that they might be used in the future. In such a case, the parameter can be eliminated. This refactoring is one of the class of those that attack speculative generalizations. It is generally more effective to tackle problems when they arise than to complicate our code by thinking about possible future situations. in EsLoMas.com writes that he quite often needs to write code in .NET that returns an array, where within the methods he uses the object ArrayList. This is often the case when it is not possible to know in advance how many elements are going to be needed in the array. In these situations, the method ToArray is very useful. |
Return to Extracts from Planeta Código |
TrickyDicky |
© 2005-6 |