rbp-book icon indicating copy to clipboard operation
rbp-book copied to clipboard

Ruby Best Practices, by Gregory Brown

Results 9 rbp-book issues
Sort by recently updated
recently updated
newest added

PDF link in README is invalid. NO such GitHub site. http://sandal.github.com/rbp-book/pdfs/rbp_1-0.pdf

On page 137 of Chapter 5 should the self#authenticate method be changed from this: ``` def self.authenticate(username, password) user = new(username, password) user.authenticate(password) rescue Net::LDAP::LdapError => e ActiveRecord::Base.logger.debug "!!! LDAP...

in is an operator, therefore not a valid identifier

Chapter 4 / Regular Expressions / Don't Work Too Hard introduces the section with the following code: ["James Gray", "James gray", "james gray", "james Gray"].all? { |e| ?> e.match(/James|james Gray|gray/)...

on pages 36 and 37 of rbp_1-0.pdf, the tests say: ``` must "return false when parsing #{y}" do ``` where they should say ``` must "return true when parsing #{y}"...

Method calls are parenthesized irregularly. For example, on page 21: In the `["y", "Y", "YeS", "YES", "yes"].each do |y|` block, the calls to `expect_output` and `assert` are not parenthesized while...

(Reported by DrErnie on RBP blog) There appears to be a typo in the last paragraph: "the myriad collection languages that people are comfortable with." "collection OF languages", perhaps?