Cargando…

Elixir cookbook : unleash the full power of programming in Elixir with over 60 incredibly effective recipes /

Annotation

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Pereira, Paulo A. (Autor)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham, England : Packt Publishing Ltd, 2015.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Command Line; Introduction; Using the terminal to prototype and test ideas; Loading and compiling modules; Getting help and accessing documentation within IEx; Using Erlang from Elixir; Inspecting your system in IEx; Inspecting your system with Observer; Creating a simple application; Managing dependencies; Generating a supervised application; Generating umbrella applications; Managing application configuration; Creating custom Mix tasks
  • Chapter 2: Data Types and StructuresUnderstanding immutability; Adding and subtracting lists; Combining tuples into a list; Creating and manipulating keyword lists; Using pattern matching; Pattern matching an HTTPoison response; Creating a key/value store with a map; Mapping and Reducing enumerables; Generating lazy (even infinite) sequences; Streaming a file as a resource; Chapter 3: Strings and Binaries; Introduction; Joining strings; Splitting strings; Replacing string codepoints with patterns; Slicing strings with ranges; Using regular expressions
  • Using tasks to perform multiple concurrent computationsCreating a stateful server process (messages with counters); Using agents as an abstraction around states; Using an ETS table to share the state; Creating named nodes; Connecting nodes; Executing code in a different node; Chapter 6: OTP
  • Open Telecom Platform; Introduction; Implementing a GenServer; Expanding our server; Creating a supervisor; Using Observer to inspect supervisors and processes; Handling errors and managing exceptions; Packaging and releasing an OTP application; Deploying applications and updating a running system
  • Chapter 7: Cowboy and PhoenixIntroduction; Setting up Cowboy; Serving static files; Implementing a websocket handler; Creating a Phoenix application; Defining routes; Creating a controller; Creating views and templates; Implementing topics; Protecting the Phoenix app with SSL; Chapter 8: Interactions; Introduction; Using Redis and Postgres; Using OS commands from within Elixir; Getting Twitter data; Appendix: Installation and Further Reading; Installing Elixir; Installing PostgreSQL; Installing Redis; Some useful links; Index