Banner Zenit, Scientific & ICT Services

22-May-2005

 

rb_cdio version 0.02 (rb_cdio, versión 0.0.2)

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.

 

Eliminating parameters (Eliminar parametros (Remove Parameter))

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.

 

Passing data from an ArrayList to an array in C# (Pasar de ArrayList a array en C#)

 Patxi Echarte 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

Home

[Image]