Recent Posts by AeroDame

Subscribe to Recent Posts by AeroDame 1 post found

Nov 29, 2007
Avatar AeroDame 1 post

Topic: Problems, Suggestions, Bugs and Other Insects / What's with all these uninitialized variable warnings!

I’m just exploring the “Hello Google” example shown and am stunned at the amount of warnings generated by the code libraries. How about cleaning up all this stuff so the uninitialized user that comes into this space gets a warm fuzzy that there is some really well written and tested code under the hood.

With warnings turned on, here’s what I get out of the box…YUK!

/usr/local/lib/ruby/gems/1.8/gems/hpricot-0.6/lib/hpricot/builder.rb:11: warning: `&’ interpreted as argument prefix (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized (eval):2: warning: instance variable @is_simple_type not initialized (eval):2: warning: instance variable @is_pointer_type not initialized /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/core/scraping/filters/text_filter.rb:25: warning: don’t put space before argument parentheses /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/logging.rb:97: warning: instance variable @logger not initialized /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/logging.rb:97: warning: instance variable @logger not initialized /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/logging.rb:97: warning: instance variable @logger not initialized /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/logging.rb:97: warning: instance variable @logger not initialized /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/logging.rb:97: warning: instance variable @logger not initialized /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/logging.rb:97: warning: instance variable @logger not initialized /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/core/scraping/filters/base_filter.rb:86: warning: instance variable @parent_pattern not initialized /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/core/scraping/filters/base_filter.rb:86: warning: instance variable @parent_pattern not initialized /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/core/scraping/filters/base_filter.rb:86: warning: instance variable @parent_pattern not initialized /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/core/scraping/filters/tree_filter.rb:37: warning: instance variable @temp_sink not initialized http://www.google.com/search?hl=en&ie=ISO-8859-1&q=ruby /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/core/scraping/filters/tree_filter.rb:5: warning: instance variable @final_result not initialized /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/logging.rb:97: warning: instance variable @logger not initialized /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/core/scraping/filters/tree_filter.rb:21: warning: instance variable @regexp not initialized /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/core/scraping/pattern.rb:262: warning: instance variable @result_indexer not initialized /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/core/scraping/pattern.rb:262: warning: instance variable @result_indexer not initialized /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/core/scraping/pattern.rb:262: warning: instance variable @result_indexer not initialized /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/core/scraping/pattern.rb:262: warning: instance variable @result_indexer not initialized /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/core/scraping/pattern.rb:262: warning: instance variable @result_indexer not initialized /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/core/scraping/pattern.rb:262: warning: instance variable @result_indexer not initialized /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/core/scraping/pattern.rb:262: warning: instance variable @result_indexer not initialized /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/core/scraping/pattern.rb:262: warning: instance variable @result_indexer not initialized /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/core/scraping/pattern.rb:262: warning: instance variable @result_indexer not initialized /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/core/scraping/pattern.rb:262: warning: instance variable @result_indexer not initialized /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/logging.rb:97: warning: instance variable @logger not initialized http://www.google.com/search?q=ruby&hl=en&ie=UTF-8&start=10&sa=N /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/core/scraping/filters/tree_filter.rb:5: warning: instance variable @final_result not initialized /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/logging.rb:97: warning: instance variable @logger not initialized /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/core/scraping/filters/tree_filter.rb:21: warning: instance variable @regexp not initialized /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/core/scraping/pattern.rb:262: warning: instance variable @result_indexer not initialized /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/logging.rb:97: warning: instance variable @logger not initialized /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/output/result_node.rb:14: warning: instance variable @generated_by_leaf not initialized <root> <link> <url>http://www.ruby-lang.org/</url> </link> <link> <url>http://www.ruby-lang.org/en/20020101.html</url> </link> <link> <url>http://en.wikipedia.org/wiki/Ruby_(programming_language)</url> </link> <link> <url>http://en.wikipedia.org/wiki/Ruby</url> </link> <link> <url>http://www.rubyonrails.org/</url> </link> <link> <url>http://www.rubycentral.org/</url> </link> <link> <url>http://www.zenspider.com/Languages/Ruby/QuickRef.html</url> </link> <link> <url>http://www.rubycentral.com/book/</url> </link> <link> <url>http://www.w3.org/TR/ruby/</url> </link> </root>