Upgrade to Pro — share decks privately, control downloads, hide ads and more …

LT役に立たないScala入門はじめの0歩

 LT役に立たないScala入門はじめの0歩

KAWASAKI Yasukazu

December 04, 2017
Tweet

More Decks by KAWASAKI Yasukazu

Other Decks in Technology

Transcript

  1. ࣗݾ঺հ w $ݴޠ w +BWB4DSJQU w $  w 1FSM

    w "4.ʢY1*$"3.ʣ w 1ZUIPO w (P w 4IFMM4DSJQU ೥લ ೥લ ݱࡏ গ͠͸৮ͬͨݴޠɿ+BWBɺ3VCZɺ&NBDT-JTQ
  2. FNBDTͷΠϯετʔϧ ιʔε͔Βͬ͘͞ΓΛΠϯετʔϧ͠·͢ʂ IUUQGUQKBJTUBDKQQVC(/6FNBDTFNBDTUBSH[ $ sudo apt-get -y install build-essential libncurses-dev

    $ wget http://ftp.jaist.ac.jp/pub/GNU/emacs/emacs-25.3.tar.gz $ tar xf emacs-25.3.tar.gz $ cd emacs-25.3 $ ./configure —without-x $ make $ sudo make install
  3. TCUͷΠϯετʔϧ ͷΠϯετʔϧ $ echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee

    -a /etc/apt/sources.list.d/sbt.list $ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823 $ sudo apt-get update $ sudo apt-get install sbt $ mkdir -p ~/.sbt/1.0/plugins/ $ echo “addSbtPlugin(\“org.ensime\” % \“sbt-ensime\” % \“2.0.1\”)” > ~/.sbt/1.0/plugins/plugins.sbt
  4. TCUͰ)FMMP8PSME $ sbt new sbt/scala-seed.g8 …
 name [My Something Project]:

    Hello
 … $ cd hello $ sbt … sbt:Hello> run … sbt:Hello> exit $
  5. FNBDTΛىಈ $ cd hello $ emacs -nw ~/.emacs.d/init.el (require 'package)

    (add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t) (add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/")) (package-initialize) M-x package-list-packages C-s ensime i C-s use-package i x (use-package ensime :ensure t :pin melpa-stable)