万本电子书0元读

万本电子书0元读

顶部广告

Elixir Cookbook电子书

售       价:¥

5人正在读 | 0人评论 9.8

作       者:Paulo A Pereira

出  版  社:Packt Publishing

出版时间:2015-02-19

字       数:108.5万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
This book is intended for users with some knowledge of the Elixir language syntax and basic data types/structures. Although this is a cookbook and no sequential reading is required, the book’s structure will allow less advanced users who follow it to be gradually exposed to some of Elixir’s features and concepts specific to functional programming. To get the most out of this book, you need to be well versed with Erlang.
目录展开

Elixir Cookbook

Table of Contents

Elixir Cookbook

Credits

About the Author

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers, and more

Why Subscribe?

Free Access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Sections

Getting ready

How to do it…

How it works…

There's more…

See also

Conventions

Reader feedback

Customer support

Downloading the example code

Errata

Piracy

Questions

1. Command Line

Introduction

Using the terminal to prototype and test ideas

Getting ready

How to do it…

How it works…

There's more…

Loading and compiling modules

Getting ready

How to do it…

How it works…

There's more…

Getting help and accessing documentation within IEx

How to do it…

How it works…

There's more…

Using Erlang from Elixir

Getting ready

How to do it…

How it works…

There's more…

Inspecting your system in IEx

Getting ready

How to do it…

How it works…

See also

Inspecting your system with Observer

Getting ready

How to do it…

Creating a simple application

How to do it…

How it works…

See also

Managing dependencies

Getting ready

How to do it…

How it works…

See also

Generating a supervised application

How to do it…

How it works…

See also

Generating umbrella applications

How to do it…

How it works…

See also

Managing application configuration

How to do it…

How it works…

Creating custom Mix tasks

How to do it…

How it works…

2. Data Types and Structures

Understanding immutability

Getting ready

How to do it…

How it works…

Adding and subtracting lists

Getting ready

How to do it…

How it works…

Combining tuples into a list

Getting ready

How to do it…

How it works…

See also

Creating and manipulating keyword lists

Getting ready

How to do it…

How it works…

Using pattern matching

Getting ready

How to do it…

How it works…

See also

Pattern matching an HTTPoison response

Getting ready

How to do it…

How it works…

Creating a key/value store with a map

Getting ready

How to do it…

How it works…

See also

Mapping and reducing enumerables

Getting ready

How to do it…

How it works…

There is more…

Generating lazy (even infinite) sequences

How to do it…

How it works…

There is more…

Streaming a file as a resource

Getting ready

How to do it…

How it works…

3. Strings and Binaries

Introduction

Joining strings

Getting ready

How to do it…

How it works…

There's more…

Splitting strings

Getting ready

How to do it…

How it works…

See also

Replacing string codepoints with patterns

Getting ready

How to do it…

How it works…

See also

Slicing strings with ranges

Getting ready

How to do it…

How it works…

There's more…

Using regular expressions

Getting ready

How to do it…

How it works…

See also

Combining operations with the |> operator

Getting ready

How to do it…

How it works…

Creating a word list

Getting ready

How to do it…

How it works…

There's more…

Determining the word frequency in a text

Getting ready

How to do it…

How it works…

Reading and writing metadata from MP3 files

Getting ready

How to do it…

How it works…

There's more…

4. Modules and Functions

Introduction

Namespacing modules

Getting ready

How to do it…

How it works…

There's more…

Using module attributes as constants

How to do it…

How it works…

See also

Enforcing behaviors

How to do it…

How it works…

See also

Documenting modules

Getting ready

How to do it…

Using module directives

Getting ready

How to do it…

How it works…

There's more…

Using a module in the scripted mode

How to do it…

How it works…

There's more…

Defining functions with default arguments

Getting ready

How to do it…

How it works…

Using guard clauses and pattern matching in function definitions

Getting ready

How to do it…

How it works…

5. Processes and Nodes

Introduction

Sending messages between processes

Getting ready

How to do it…

How it works…

There's more…

Making code run on all available CPUs

Getting ready

How to do it…

How it works…

There's more…

Using tasks to perform multiple concurrent computations

Getting ready

How to do it…

How it works…

There's more…

Creating a stateful server process (messages with counters)

Getting ready

How to do it…

How it works…

See also

Using agents as an abstraction around states

How to do it…

How it works…

There's more…

Using an ETS table to share the state

Getting ready

How to do it…

How it works…

There's more…

Creating named nodes

Getting ready

How to do it…

How it works…

See also

Connecting nodes

Getting ready

How to do it…

How it works…

There's more…

See also

Executing code in a different node

Getting ready

How to do it…

How it works…

There's more…

6. OTP – Open Telecom Platform

Introduction

Implementing a GenServer

Getting ready

How to do it…

How it works…

There's more…

Expanding our server

Getting ready

How to do it…

How it works…

See also

Creating a supervisor

Getting ready

How to do it…

How it works…

See also

Using Observer to inspect supervisors and processes

How to do it…

How it works…

Handling errors and managing exceptions

Getting ready

How to do it…

How it works…

There's more…

Packaging and releasing an OTP application

Getting ready…

How to do it…

How it works…

There's more…

See also

Deploying applications and updating a running system

Getting ready

How to do it…

How it works…

See also

7. Cowboy and Phoenix

Introduction

Setting up Cowboy

Getting ready

How to do it…

How it works…

There's more…

See also

Serving static files

Getting ready

How to do it…

How it works…

Implementing a websocket handler

Getting ready

How to do it…

How it works…

There's more…

Creating a Phoenix application

Getting ready

How to do it…

How it works…

There's more…

Defining routes

Getting ready

How to do it…

How it works…

There's more…

See also

Creating a controller

Getting ready

How to do it…

How it works…

There's more…

Creating views and templates

Getting ready

How to do it…

How it works…

There's more…

Implementing topics

Getting ready

How to do it…

How it works…

Protecting the Phoenix app with SSL

Getting ready

How to do it…

How it works…

8. Interactions

Introduction

Using Redis and Postgres

Getting ready

How to do it…

How it works…

Using OS commands from within Elixir

How to do it…

How it works…

There's more…

See also

Getting Twitter data

Getting ready

How to do it…

How it works…

There's more…

See also

A. Installation and Further Reading

Installing Elixir

Installing PostgreSQL

Installing Redis

Some useful links

Elixir

The Phoenix framework

Erlang

Index

累计评论(0条) 1个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部