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

Preparing for the Journey Ahead

Welcome to this incredible journey! This is the beginning of an odyssey that will take you through the many features of Elixir, and how to use them to build, test, deploy, and maintain applications. This journey may require some shifting of your mindset and how you think about programming (and problem-solving in general) if you're not already familiar with functional programming.

Before diving into this book, we want to point out that this introductory chapter is deliberately short. Although we'll be introducing the language, its tooling, and its ecosystem, this won't be a complete reference guide. Elixir treats documentation as a first-class citizen, and this is shown in the incredible documentation of its modules and functions. Hence, we decided to teach you how to search for what you need, and target on the core concept of bookbuilding an Elixir application. We think that this pragmatic approach is the one that delivers the most value to you, as you'll be able to follow an application right from its inception and into its production, including its deployment and monitoring, which are sometimes overlooked.

In this chapter, we will cover the following topics:

  • Data types in Elixir
  • Working with pattern matching and how to apply it to various types
  • Working with functions and bundling them in modules
  • Working with collections
  • Using classic control-flow constructs (such as case)
  • Using typespecs on your functions
  • Creating behaviours, and adopting them in other modules
  • Using protocols to make our functions polymorphic
  • Some of the most useful tools that ship with Elixir
  • Calling Erlang libraries directly
  • Interacting with operating system processes through ports
主站蜘蛛池模板: 金沙县| 苍梧县| 武川县| 海盐县| 西贡区| 城固县| 新田县| 呼伦贝尔市| 阳泉市| 南漳县| 综艺| 恩施市| 南和县| 保康县| 桃源县| 通山县| 尼玛县| 吉木萨尔县| 沂源县| 太白县| 彰化县| 塘沽区| 喀喇沁旗| 灵宝市| 四子王旗| 彩票| 尼勒克县| 莲花县| 凤台县| 西丰县| 文登市| 德化县| 成安县| 合川市| 江陵县| 曲周县| 旬邑县| 西乌珠穆沁旗| 天镇县| 沐川县| 积石山|