Level 0: All warnings are disabled. • Level 1: Only important warnings are enabled (default). • Level 2: All warnings are enabled. ◦ Almost warnings are enabled only with Level 2.
in many cases. • Because ◦ The goal is clear. ◦ The patch will be small. • But some warnings is difficult to fix. e.g. ◦ Uninitialized instance variable ◦ The code has bug(s).
◦ Use URI.open. ▪ File.open, IO.open, and IO.popen are also avairable. • URI.escape ◦ Use ERB::Util.#url_encode, CGI.escape, or URI.encode_www_form_component ◦ It depends on the requirement.
fix warnings, etc • With using warnings, we can ◦ Find bugs. ◦ Contribute to OSS easier. • Let’s try enabling warnings in your application! Thank you for listening!