Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Final Book Fixes
- ## Chapter 14
- ### Spacing issue
- - In the step by step path, can you add a space between the `#` and the description. Right now only the `final output` has a space separating it, it should looke like this:
- ```ruby
- # parenthesis
- 5 + 15 * 20 - 2 / 6 ** 3 - (3 + 1)
- # exponents
- 5 + 15 * 20 - 2 / 6**3 - 4
- # multiplication
- 5 + 15 * 20 - 2 / 216 - 4
- # division
- 5 + 300 - 2 / 216 - 4
- # addition
- 5 + 300 - 0 - 4
- # subtraction
- 305 - 0 - 4
- # final output
- 301
- ```
- ## Chapter 16
- ### Spacing issue
- On the code line that says `def baseball_team_list end` can you change that to be on two lines like this:
- ```ruby
- def baseball_team_list
- end
- ```
- If it's not on two lines it will cause an error.
- ## Chapter 22
- ### Indentation issues
- In the code:
- ```ruby
- def full_name first_name, last_name
- first_name + " " + last_name
- end
- ```
- Right now it looks like there are four spaces and the indentation is different than the other methods for `first_name + " " + last_name`.
- Next, the method `def sms_generator api_key, num, msg, locale` has the `end` keyword moved all the way to the left of the page, so it's not lined up with the rest of the code.
- Lastly, the `def stream_move` code line is butted up to the paragraph above it, can you update it so the spacing is the same as the rest of the code blocks?
- ## Chapter 52
- ### Bold issues
- - Several of the `def` keywords are not bold, it looks like they're specifically not bold on most of the `def initialize` code lines.
- - The two `end` keywords aren't bold in the `Mailer` class towards the end of the chapter.
- ## Chapter 53
- ### Bold issues
- - The `def` keyword is not bold in the first code block for the `def invoice` line
- ### Image
- - The image under `naive` approach wasn't deleted. The code was added underneath it, but the image needs to be removed.
- ## Chapter 54
- ### There are a few indentation issues, including:
- - The `}` in the `user.settings` code block is all the way to the left, it needs to be lined up with `user.settings`.
- - The entire `def signed_in_today?` method is indented when it should be flush to the left.
- - In the last large code block the `}` for admin.settings is not lined up to the left.
- - The `puts "#{user.email} signed in today"` code needs to be indented.
- ### Code mispelling
- - The code `usersettings` needs to be changed to `user.settings` in the code line `puts usersettings`
- ## Chapter 55
- ### Bold issues
- - The `def` keyword is not bold in the first code block for the `def create_post` line
- - Under the **Better Way** subheading there are two `def` keywords that aren't bold: `def delete_post` and `def initialize`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement