# Errata thread for Dart Apprentice, First Edition

**URL:** <https://forums.kodeco.com/t/errata-thread-for-dart-apprentice-first-edition/121571>\
**Category:** Dart Apprentice\
**Created:** [October 1, 2020, 8:12pm UTC](https://forums.kodeco.com/t/errata-thread-for-dart-apprentice-first-edition/121571 "2020-10-01T20:12:26Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisrazeware](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/chrisrazeware/32/107900_2.png) [@chrisrazeware](https://forums.kodeco.com/u/chrisrazeware)\
**Post date:** [October 1, 2020, 8:12pm UTC](https://forums.kodeco.com/t/errata-thread-for-dart-apprentice-first-edition/121571/1 "2020-10-01T20:12:26Z")

</div>

Official errata thread for Dart Apprentice, First Edition!

---

<div class="post-metadata">

**Author:** ![aymenbrxii](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/aymenbrxii/32/102075_2.png) [@aymenbrxii](https://forums.kodeco.com/u/aymenbrxii)\
**Post date:** [November 6, 2020, 7:21pm UTC](https://forums.kodeco.com/t/errata-thread-for-dart-apprentice-first-edition/121571/2 "2020-11-06T19:21:06Z")

</div>

Hello, I think there is a typo in:

- **Before You Begin**
  - **iv. Introduction**
    - **5th Paragraph** : “There’s a good chance… fast native applications across mobile and _desktop_ _ **desktop** _ platforms …embedded devices.”

---

<div class="post-metadata">

**Author:** ![suragch](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/suragch/32/109020_2.png) [@suragch](https://forums.kodeco.com/u/suragch)\
**Post date:** [November 26, 2020, 6:02am UTC](https://forums.kodeco.com/t/errata-thread-for-dart-apprentice-first-edition/121571/3 "2020-11-26T06:02:56Z")

</div>

Thank you for catching that. I’ve fixed it in the source text so it should get updated in the online version soon.

---

<div class="post-metadata">

**Author:** ![cl12345](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/cl12345/32/81494_2.png) [@cl12345](https://forums.kodeco.com/u/cl12345)\
**Post date:** [January 5, 2021, 5:15am UTC](https://forums.kodeco.com/t/errata-thread-for-dart-apprentice-first-edition/121571/4 "2021-01-05T05:15:47Z")

</div>

I think that there is a small typo in the abstract classes section (Ch. 9):

“Don’t be put **of** by the word “abstract”. It’s no more difficult that the idea of an animal.”

“of” should be “off”

Thanks for the wonderful book

---

<div class="post-metadata">

**Author:** ![suragch](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/suragch/32/109020_2.png) [@suragch](https://forums.kodeco.com/u/suragch)\
**Post date:** [January 5, 2021, 6:27am UTC](https://forums.kodeco.com/t/errata-thread-for-dart-apprentice-first-edition/121571/5 "2021-01-05T06:27:25Z")

</div>

It’s amazing how many times I can proofread a chapter and still miss miss things like this! Thanks a lot for catching that and reporting it. I’ve corrected the source text now and hopefully the website should be updated soon.

---

<div class="post-metadata">

**Author:** ![dan-garubba](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/dan-garubba/32/81494_2.png) [@dan-garubba](https://forums.kodeco.com/u/dan-garubba)\
**Post date:** [December 5, 2021, 10:32pm UTC](https://forums.kodeco.com/t/errata-thread-for-dart-apprentice-first-edition/121571/6 "2021-12-05T22:32:31Z")

</div>

Error in Chapter 6 - Factory constructors:

> This is actually highly desireable in the case here because if `'id'` or `'String'` didn’t exist in the map, then your app would crash because you aren’t handling `null`.

`'String'` should be `'name'` here, since we’re talking about `Map` membership.

Also, “desireable” should be “desirable,” which I discovered on my way to reporting the above error.

---

<div class="post-metadata">

**Author:** ![suragch](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/suragch/32/109020_2.png) [@suragch](https://forums.kodeco.com/u/suragch)\
**Post date:** [December 6, 2021, 9:12am UTC](https://forums.kodeco.com/t/errata-thread-for-dart-apprentice-first-edition/121571/7 "2021-12-06T09:12:44Z")

</div>

Thank you very much for catching those mistakes! I’ve updated the repo so the online version should get the changes soon.

---

<div class="post-metadata">

**Author:** ![rdrocca](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/rdrocca/32/102075_2.png) [@rdrocca](https://forums.kodeco.com/u/rdrocca)\
**Post date:** [April 11, 2022, 7:36pm UTC](https://forums.kodeco.com/t/errata-thread-for-dart-apprentice-first-edition/121571/8 "2022-04-11T19:36:18Z")

</div>

I saw this in Chapter 3 - Casting down:

To get the this error

> \_CastError (type ‘int’ is not a subtype of type ‘double’ in type cast)

The expression `'num someNumber =3;'` must be `'int someNumber =3;'`

---

<div class="post-metadata">

**Author:** ![suragch](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/suragch/32/109020_2.png) [@suragch](https://forums.kodeco.com/u/suragch)\
**Post date:** [April 18, 2022, 6:00am UTC](https://forums.kodeco.com/t/errata-thread-for-dart-apprentice-first-edition/121571/9 "2022-04-18T06:00:45Z")

</div>

`num someNumber = 3;` also causes the error you quoted above. The reason is that while the compile-time type of `someNumber` is `num`, the run-time type is actually an `int` since `3` is an `int`.

It would probably be useful to clarify the explanation or change the example in the next edition of the book, though.

---

<div class="post-metadata">

**Author:** ![bhaskarjha](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/bhaskarjha/32/102075_2.png) [@bhaskarjha](https://forums.kodeco.com/u/bhaskarjha)\
**Post date:** [May 27, 2022, 12:48pm UTC](https://forums.kodeco.com/t/errata-thread-for-dart-apprentice-first-edition/121571/11 "2022-05-27T12:48:32Z")

</div>

Chapter 4 - Control Flow.  
Making Comparisions.  
1st Para: "The int type is for whole numbers while the double type is for decimal numbers. "

The int type is for integer would be better as whole number just signifies 0 and positive natural number.

---

<div class="post-metadata">

**Author:** ![suragch](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/suragch/32/109020_2.png) [@suragch](https://forums.kodeco.com/u/suragch)\
**Post date:** [May 27, 2022, 11:23pm UTC](https://forums.kodeco.com/t/errata-thread-for-dart-apprentice-first-edition/121571/12 "2022-05-27T23:23:17Z")

</div>

That’s a good point. I wasn’t thinking clearly about the mathematical meaning of whole numbers. I’ve made the change in the Editions 2.0 version that we’re working on now. Hopefully it should be published in August or September.

---

<div class="post-metadata">

**Author:** ![jellodiil](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jellodiil/32/109742_2.png) [@jellodiil](https://forums.kodeco.com/u/jellodiil)\
**Post date:** [November 2, 2022, 12:01am UTC](https://forums.kodeco.com/t/errata-thread-for-dart-apprentice-first-edition/121571/13 "2022-11-02T00:01:46Z")

</div>

This topic was automatically closed after 4 hours. New replies are no longer allowed.
