-
Book Overview & Buying
-
Table Of Contents
Polished Ruby Programming - Second Edition
By :
Testing is important to ensure proper behavior in every programming language, but it is even more important in Ruby. In statically typed programming languages, the compiler will catch errors related to improper use of types when the program is compiled, before the program is run. Ruby uses a dynamic type system, so it will not catch many errors related to the improper use of data types until such code is executed. Ruby programs are generally not compiled until they are loaded at runtime, so even syntax errors will not be caught unless you try to load the related code. Combined, these two qualities make testing in Ruby more important than in most other programming languages.
When talking about testing, the lack of static type checking is often considered a missing feature. However, one of the best things about Ruby is that it doesn't require you to specify types for variables and methods. Unlike most languages, Ruby doesn't focus...
Change the font size
Change margin width
Change background colour