Skip to content

jiftechnify/advanced-scala-ja

Repository files navigation

Scala with Cats in Japanese

"Scala with Cats"の(非公式)和訳 🐱🇯🇵 (Japanese translation of the book "Scala with Cats")

著: Noel Welsh / Dave Gurnell

訳: Takumi Fujiwara(@jiftechnify)

挿絵: Jenny Clements

出版: Underscore Consulting LLP

Creative Commons Licence
この著作物はCreative Commons Attribution-ShareAlike 4.0 International Licenseのもとで頒布されています。

概要

Scala with Catsは、Catsライブラリと多くの実例を用いて、モノイド・ファンクタ・モナド・アプリカティブファンクタといった、関数プログラミングにおける抽象化手法について解説した書籍である。

ビルド

Scala with Catsでは、Underscoreの電子書籍ビルドシステムを利用している。

この本をビルドする最も簡単な方法は、Docker Composeを使う方法だ:

  • Docker Composeをインストール(OS Xならbrew install docker-compose。そうでなければdocker.comからダウンロード)し、

  • go.shを実行する(go.shが動かなければ、代わりにdocker-compose run book bashを実行)。

これで、この本をビルドするのに必要なすべての依存ライブラリを含んだDockerコンテナの中で、bashシェルが起動した状態になる。 次に、シェルから次のコマンドを順に実行する:

  • npm install
  • sbt

sbtの中でpdfhtmlepub、またはallコマンドを実行すれば、所望の形式の本がビルドされる。 出力はdistディレクトリに配置される。

Contributing

TBD


(以下、原著のREADME)

Scala with Cats

Copyright Noel Welsh and Dave Gurnell, 2014-2017.

Artwork by Jenny Clements.

Published by Underscore Consulting LLP.

Creative Commons Licence
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Overview

Scala with Cats teaches core functional abstractions of monoids, functors, monads, and applicative functors using the Cats library and a number of case studies.

Building

Scala with Cats uses Underscore's ebook build system.

The simplest way to build the book is to use Docker Compose:

  • install Docker Compose (brew install docker-compose on OS X; or download from docker.com); and

  • run go.sh (or docker-compose run book bash if go.sh doesn't work).

This will open a bash shell running inside the Docker container that contains all the dependencies to build the book. From the shell run:

  • npm install; and then
  • sbt.

Within sbt you can issue the commands pdf, html, epub, or all to build the desired version(s) of the book. Targets are placed in the dist directory.

Contributing

If you spot a typo or mistake, please feel free to fork the repo and submit a Pull Request. Add yourself to src/pages/contributors.md to ensure we credit you for your contribution.

If you don't have time to submit a PR or you'd like to suggest a larger change to the content or structure of the book, please raise an issue instead.

About

Japanese translation of "Scala with Cats"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published