Advertisement
Guest User

Untitled

a guest
Sep 27th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.57 KB | None | 0 0
  1. # Final Book Fixes
  2.  
  3. ## Chapter 14
  4.  
  5. ### Spacing issue
  6.  
  7. - 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:
  8.  
  9. ```ruby
  10. # parenthesis
  11. 5 + 15 * 20 - 2 / 6 ** 3 - (3 + 1)
  12.  
  13. # exponents
  14. 5 + 15 * 20 - 2 / 6**3 - 4
  15.  
  16. # multiplication
  17. 5 + 15 * 20 - 2 / 216 - 4
  18.  
  19. # division
  20. 5 + 300 - 2 / 216 - 4
  21.  
  22. # addition
  23. 5 + 300 - 0 - 4
  24.  
  25. # subtraction
  26. 305 - 0 - 4
  27.  
  28. # final output
  29. 301
  30. ```
  31.  
  32. ## Chapter 16
  33.  
  34. ### Spacing issue
  35.  
  36. On the code line that says `def baseball_team_list end` can you change that to be on two lines like this:
  37.  
  38. ```ruby
  39. def baseball_team_list
  40. end
  41. ```
  42.  
  43. If it's not on two lines it will cause an error.
  44.  
  45. ## Chapter 22
  46.  
  47. ### Indentation issues
  48.  
  49. In the code:
  50.  
  51. ```ruby
  52. def full_name first_name, last_name
  53. first_name + " " + last_name
  54. end
  55. ```
  56.  
  57. Right now it looks like there are four spaces and the indentation is different than the other methods for `first_name + " " + last_name`.
  58.  
  59. 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.
  60.  
  61. 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?
  62.  
  63.  
  64. ## Chapter 52
  65.  
  66. ### Bold issues
  67.  
  68. - Several of the `def` keywords are not bold, it looks like they're specifically not bold on most of the `def initialize` code lines.
  69. - The two `end` keywords aren't bold in the `Mailer` class towards the end of the chapter.
  70.  
  71. ## Chapter 53
  72.  
  73. ### Bold issues
  74.  
  75. - The `def` keyword is not bold in the first code block for the `def invoice` line
  76.  
  77. ### Image
  78.  
  79. - The image under `naive` approach wasn't deleted. The code was added underneath it, but the image needs to be removed.
  80.  
  81. ## Chapter 54
  82.  
  83. ### There are a few indentation issues, including:
  84.  
  85. - The `}` in the `user.settings` code block is all the way to the left, it needs to be lined up with `user.settings`.
  86. - The entire `def signed_in_today?` method is indented when it should be flush to the left.
  87. - In the last large code block the `}` for admin.settings is not lined up to the left.
  88. - The `puts "#{user.email} signed in today"` code needs to be indented.
  89.  
  90. ### Code mispelling
  91.  
  92. - The code `usersettings` needs to be changed to `user.settings` in the code line `puts usersettings`
  93.  
  94. ## Chapter 55
  95.  
  96. ### Bold issues
  97.  
  98. - The `def` keyword is not bold in the first code block for the `def create_post` line
  99. - 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