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

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.

主站蜘蛛池模板: 南和县| 静宁县| 庄河市| 玉山县| 泊头市| 会泽县| 安徽省| 宁夏| 会东县| 梧州市| 鲜城| 杭州市| 义马市| 拜城县| 新绛县| 巨鹿县| 明星| 金平| 曲阳县| 鲜城| 台湾省| 洛宁县| 扎囊县| 奎屯市| 馆陶县| 平凉市| 纳雍县| 年辖:市辖区| 怀来县| 共和县| 安宁市| 安吉县| 昌黎县| 宝兴县| 常熟市| 堆龙德庆县| 德保县| 三河市| 博兴县| 攀枝花市| 富川|