The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

322711 (7) [Avatar] Offline
#1
On page 153 of the printed book, there are two iex results shown, confusingly, in response to a single iex command:

TodoList.entries(todo_list, {2013, 12, 19})


I'm assuming that the latter response is the correct one, since it reflects the most recent version of TodoList developed in the book up to this point.

Also, there is a minor instance of excess indentation on the first "%{date: ..." line in the first iex command on the page.
sjuric (109) [Avatar] Offline
#2
322711 wrote:On page 153 of the printed book, there are two iex results shown, confusingly, in response to a single iex command:

TodoList.entries(todo_list, {2013, 12, 19})


I'm assuming that the latter response is the correct one, since it reflects the most recent version of TodoList developed in the book up to this point.


There is definitely one redundant and obsolete output here, thanks for reporting.

The first output is the correct one, and this is the one that reflects the most recent version:

[%{date: {2013, 12, 19}, id: 3, title: "Movies"},
 %{date: {2013, 12, 19}, id: 1, title: "Dentist"}]