官术网_书友最值得收藏!

Setting up your environment

First things first, we need to set up our work environment. In this section, we will get all the tools and libraries, and then install and configure them on your computer.

Scala programs are compiled to Java bytecode, which is a kind of assembly language that can be executed using a Java Virtual Machine (JVM). You will, therefore, need to have a Java compiler and a JVM installed on your computer. The Java Development Kit (JDK) provides both components, alongside other tools.

You could develop in Scala using a simple text editor and compile your programs using the Scala Simple Build Tool (SBT). However, this would not be a pleasant nor productive experience. The majority of professional Scala developers use an Integrated Development Environment (IDE), which provides many helpful features such as syntax highlighting, autocompletion, code navigation, integration with SBT, and many more. The most widely used IDE for Scala is IntelliJ Idea from JetBrains, and this is the one we are going to install and use in this book. The other options are Scala IDE for Eclipse and ENSIME. ENSIME is an open source project that brings IDE-like features to popular text editors such as Emacs, Vim, Atom, Sublime, and VSC.

主站蜘蛛池模板: 安塞县| 油尖旺区| 佛冈县| 白玉县| 镇远县| 浮梁县| 娄底市| 玉溪市| 马龙县| 高青县| 临泽县| 凯里市| 灵山县| 依兰县| 循化| 依兰县| 徐水县| 禹州市| 德江县| 崇仁县| 竹北市| 峡江县| 个旧市| 冀州市| 建平县| 陵川县| 泰安市| 遂溪县| 安宁市| 姚安县| 纳雍县| 肇庆市| 宝丰县| 新邵县| 韶山市| 陇西县| 马龙县| 台山市| 沁水县| 天峻县| 拜城县|