On May 6, 2006, at 4:00 PM, Talha Oktay wrote:

Allow me to rearrange your statements a bit.

> I am a newbie in Ruby. I have read several books including pickaxe  
> and wrote
> several thousands lines of code. So far, as an ex perl user, I have  
> found
> the major annoyance with ruby is the lack of declaration of variables.
> Automatic creation,  in perl jargon autovification is the common  
> feature of
> many high level languages such as perl, paython, visual basic etc.  
> but most
> of the these languages have seen that this not necessarily a good  
> thing and
> created flags, commands to prohibit it if the developer wants to. I  
> really
> wish ruby had one.
>
> I guess in Pickaxe book, unit testing is presented as the cure for  
> this
> problem which I do not agree. I can not write a test code for every  
> peace of
> little functionality, besides I am eager to make the compiler or  
> interpreter
> to work for me.

Yes, you can.  I do.

> Last  several hours  I spent debugging a malfunctioning code just  
> to see mistyped variable name was causing all the problem. I had to  
> put many log statements which polluted to the code.

Or, you could have written some tests that wouldn't have polluted  
your code and saved yourself several hours (and having to pull out  
all those log statements).

-- 
Eric Hodel - drbrain / segment7.net - http://blog.segment7.net
This implementation is HODEL-HASH-9600 compliant

http://trackmap.robotcoop.com