alvinj / FunctionalProgrammingSimplified

Notes and projects for my book, “Functional Programming, Simplified"
18 stars 2 forks source link

Chapter 19. A couple of typos? #34

Open javabean68 opened 2 years ago

javabean68 commented 2 years ago

Hi Alvin, on page 119 shouldn't it read "Pure FP Code is more strict than EOP, FP is a subset (instead of superset) of EOP"? On page 122 I would also expect "because EOP is a superset (instead of subset) of FP"...Compliments to your book. The first on FP I can read enjoying it without falling asleep ;)

alvinj commented 2 years ago

Thanks for the kind words, and the issue report.

A few people have written me about this, so I clearly need to reword it. And maybe add a little image as well.

Also, I should note that this issue will be open for a while because I’m not actively working on this atm. If that’s a problem, just let me know.

Thanks again!

javabean68 commented 2 years ago

Hi Alvin,

Thank you for your antwort. I have another question to you. I'd like to buy your Scala Cookbook. I have been studying Scala 2.13 in the last few months and now I wonder if I should buy the v.3 of your book or the v.2. ( I read some excerpts already in O'Reilly Safari und found the graphics really nice: something that definitely helps while reading a book :))

Are they so different that a newbie with Scala 2 should at the moment concentrate on the old version before he begins with the 3?

Thank you very much! Bye Fabio

Am Mi., 4. Aug. 2021 um 17:36 Uhr schrieb Alvin Alexander < @.***>:

Thanks for the kind words, and the issue report.

A few people have written me about this, so I clearly need to reword it. And maybe add a little image as well.

Also, I should note that this issue will be open for a while because I’m not actively working on this atm. If that’s a problem, just let me know.

Thanks again!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/alvinj/FunctionalProgrammingSimplified/issues/34#issuecomment-892760752, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGA7GX2C2JKTHAPAQ4KPTQLT3FM7TANCNFSM5BGRC5TQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

alvinj commented 2 years ago

Hi Fabio,

That’s a great question. I think it depends on your goals. The first edition of the Scala Cookbook was written in 2013, and covers Scala 2. Eight years later, a surprising amount of it it still relevant if you want to use Scala 2.

Conversely, the new Cookbook, which will be released online in 7-10 days, and in print in about three weeks, has been completely updated over the last 2+ years to cover Scala 3, and includes some recipes for Spark, Scala.js, Akka Typed, and the Play Framework. (Note that Spark, Akka, and Play don’t support Scala 3 yet, so their coverage uses Scala 2.)

If you don’t have any pressing needs that force you to use Scala 2, I would go with the new Cookbook, just because everything has just been completely updated, even things like the date/time recipes and sbt recipes.

The only caveat I can think to add is that the new book uses the “significant indentation” style in Scala 3 — which all new Scala 3 books are using — so some of the code will look quite different than Scala 2. But this is the new way, and I prefer it, and if I have a choice, I will use Scala 3 in all of my new projects. (Many, many projects have already been updated to use Scala 3, with the exception of Play, Akka, and Spark, as noted above.)

I hope that makes sense, and I hope it helps.

All the best,
Al

javabean68 commented 2 years ago

Ciao Alvin,

Many Thanks. I'll follow your advice. I gave you 5 stars on Amazon for the other book,"functional programming simplified" . Amazing one! :)

Bye Fabio

Am So., 8. Aug. 2021 um 21:26 Uhr schrieb Alvin Alexander < @.***>:

Hi Fabio,

That’s a great question. I think it depends on your goals. The first edition of the Scala Cookbook was written in 2013, and covers Scala 2. Eight years later, a surprising amount of it it still relevant if you want to use Scala 2.

Conversely, the new Cookbook, which will be released online in 7-10 days, and in print in about three weeks, has been completely updated over the last 2+ years to cover Scala 3, and includes some recipes for Spark, Scala.js, Akka Typed, and the Play Framework. (Note that Spark, Akka, and Play don’t support Scala 3 yet, so their coverage uses Scala 2.)

If you don’t have any pressing needs that force you to use Scala 2, I would go with the new Cookbook, just because everything has just been completely updated, even things like the date/time recipes and sbt recipes.

The only caveat I can think to add is that the new book uses the “significant indentation” style in Scala 3 — which all new Scala 3 books are using — so some of the code will look quite different than Scala 2. But this is the new way, and I prefer it, and if I have a choice, I will use Scala 3 in all of my new projects. (Many, many projects have already been updated to use Scala 3, with the exception of Play, Akka, and Spark, as noted above.)

I hope that makes sense, and I hope it helps.

All the best, Al

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/alvinj/FunctionalProgrammingSimplified/issues/34#issuecomment-894843826, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGA7GX2EYFOBQDTD7NB76TDT33K63ANCNFSM5BGRC5TQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

javabean68 commented 2 years ago

https://www.amazon.de/gp/customer-reviews/R3GSZ4MWPW3M2/ref=cm_cr_dp_d_rvw_ttl?ie=UTF8&ASIN=B076J7CJKY

:)

Am Mo., 9. Aug. 2021 um 08:30 Uhr schrieb Fabio Salvi @.***

:

Ciao Alvin,

Many Thanks. I'll follow your advice. I gave you 5 stars on Amazon for the other book,"functional programming simplified" . Amazing one! :)

Bye Fabio

Am So., 8. Aug. 2021 um 21:26 Uhr schrieb Alvin Alexander < @.***>:

Hi Fabio,

That’s a great question. I think it depends on your goals. The first edition of the Scala Cookbook was written in 2013, and covers Scala 2. Eight years later, a surprising amount of it it still relevant if you want to use Scala 2.

Conversely, the new Cookbook, which will be released online in 7-10 days, and in print in about three weeks, has been completely updated over the last 2+ years to cover Scala 3, and includes some recipes for Spark, Scala.js, Akka Typed, and the Play Framework. (Note that Spark, Akka, and Play don’t support Scala 3 yet, so their coverage uses Scala 2.)

If you don’t have any pressing needs that force you to use Scala 2, I would go with the new Cookbook, just because everything has just been completely updated, even things like the date/time recipes and sbt recipes.

The only caveat I can think to add is that the new book uses the “significant indentation” style in Scala 3 — which all new Scala 3 books are using — so some of the code will look quite different than Scala 2. But this is the new way, and I prefer it, and if I have a choice, I will use Scala 3 in all of my new projects. (Many, many projects have already been updated to use Scala 3, with the exception of Play, Akka, and Spark, as noted above.)

I hope that makes sense, and I hope it helps.

All the best, Al

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/alvinj/FunctionalProgrammingSimplified/issues/34#issuecomment-894843826, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGA7GX2EYFOBQDTD7NB76TDT33K63ANCNFSM5BGRC5TQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

alvinj commented 2 years ago

Thank you so much for that, I appreciate it. I’m always glad to hear when a book is helpful! All the best to you!