svetarosemond

svetarosemond

Topics covered in Elixir in Action textbook

I’m planning on purchasing Elixir in action second edition, and I was wondering if anyone could tell me based off the first edition, does it cover the following topics:

  • try, catch, and rescue
  • case, cond, and if
  • IO (Reading and Writing to a file)

First 10 of 11 Posts Switch mode

kokolegorille

kokolegorille

Quoting the book from @sasajuric , notable changes between 1st and 2nd edition are:

  • HashDict → Map
  • new Supervisor child specifications
  • Registry
  • DynamicSupervisor
  • exrm → distillery
  • intro to testing
sasajuric

sasajuric

Author of Elixir In Action
  • Branching constructs (case, cond, if) are explored in chapter 3.
  • try is briefly mentioned but not explored in details.
  • File I/O is mostly not discussed. The example which is developed throughout the book uses File.read and File.write, and there’s a brief example of File.stream! in chapter 3, and that’s all.
AstonJ

AstonJ

Further to what has been said already, I highly recommend the book :023: It really helped me understand what is going on with GenServers and Supervisors since you build them from scratch in the book. It’s an excellent book all round.

I wrote a small review about the first edition here :slight_smile:

svetarosemond

svetarosemond OP

Is hexdocs a good resource to learn from? When it comes to online resources I’m a little more cautious, because some sites don’t teach proper practices for example WC3schools or TutorialsPoint.

svetarosemond

svetarosemond OP

This might go a little off topic, but seeing as your the author Elixir in Action, could you recommend a good introduction textbook, one that covers try, and IO(file reading and writing)?

Also, when is the second edition of EiA coming out? Some stores says September 30th but Amazon says November 6th.

peerreynders

peerreynders

Getting Started and Introduction to Mix are definitely worth your time.

Hexdocs quality depends on the package providers - and as valuable and high quality the hexdocs for Phoenix and Ecto are, I feel that going through Programming Phoenix 1.4 and Programming Ecto first helps you to get more out the hexdocs (and makes them easier to understand).

Elixir in Action 2e is an excellent guide to learning how to develop Elixir applications (the Elixir/BEAM way). That being said some people may benefit from some additional help from Learn Functional Programming in Elixir to get more used to the functional way of doing things.

Also, when is the second edition of EiA coming out? Some stores says September 30th but Amazon says November 6th.

You can get the eBook right now 35% off with your forum discount - code ‘elixirforum18’ at manning.com

idi527

idi527

Is hexdocs a good resource to learn from?

Other than reading the source code and tests directly, hexdocs are the most relevant source of information, in my opinion, since they are mostly written by the developers themselves.

sasajuric

sasajuric

Author of Elixir In Action

The official language docs on hexdocs are IMO a great reference resource. This is also why I don’t provide a detailed coverage of some of the topics you mentioned.

The thing is that most Elixir books are around 300-400 pages, and you can’t expect to have every aspect of the language covered in details in such space. This is where the official docs step in, as they provide a reference info of the language and stdlib, and they are more up to date with the recent language changes.

could you recommend a good introduction textbook, one that covers try, and IO(file reading and writing)?

Not really sure. Perhaps Programming Elixir or Learn Functional Programming with Elixir, but it’s been a while since I’ve read the former, and I haven’t read the latter yet (though I’ve heard it’s pretty good).

As far as the online docs, you can find reference on try here. For working with files, check out the File module docs.

Also, when is the second edition of EiA coming out? Some stores says September 30th but Amazon says November 6th.

This now depends on Manning, they’re in the finalizing process. Their current estimate is October. Note though that you can get the MEAP (early access) version in the ebook form today on the Manning site. Currently the content is complete, so the upcoming changes are mostly spelling and grammar fixes.

simon

simon

Dave Thomas’ Programming Elixir 1.6 book has an appendix about handling exceptions which includes information about try.

Learn Functional Programming with Elixir also has a section on it but it’s possibly not quite as detailed.

File reading and writing does come up in both as far as I remember but generally in passing rather than being detailed guides. You might be better asking specific questions here about it rather than trying to find a book covering it.

Where Next?

Trending in Chat/Questions Top

krisleech
Hey folks, I’ve been using Elixir for over a couple of years (phx, ecto, broadway, oban). For this kind of work you do not tend, in my e...
New
mhindujadheerajsudan
Hi, I’m Dheeraj Sudan from the UK. I’m a software developer and also run a business with my wife Meenu Hinduja. I’m interested in getting...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
type1fool
I just stumbled on a newly redesigned elixir-lang.org. :tada: It looks like @Software_Mansion did the work, and I think it is generally a...
New
akoutmos
@hugobarauna and I (Alex Koutmos) have been hard at work on writing a book on Nerves that takes you from simply blinking LEDs to building...
New

We're in Beta

About us Mission Statement