The Most interesting

10 Killer Elixir Tips #2

Do the right thing in a smart way

Malreddy Ankanna
blackode
Published in
7 min readFeb 26, 2017

--

Photo by Form on Unsplash

Hey guys !!
Welcome back to another set of 10 Killer Elixir Tips #2.

Thanks Giving
Thanks for the support you have shown in reading and clapping the part one. If you did not read #1, you can read it from 10 Killer Elilxir Tips.

Read all parts of Killer Elixir Tips and download README.MD file at GitHub . Click on link All Killer Elixir Parts. Contribute with a ★ If that deserves.

1 — Code Grouping

Code grouping stands for something great. It shows you how your code is grouped when you write multiple lines of code in single line with out using braces. It will be more clear with the following example.

one 1 |> two()

If you want to see how this line of code is grouped into, you can check in the following format..

quote(do: one 1 |> two()) |> Macro.to_string |> IO.puts
one(1 |> two())

So, by using the quote and Macro.to_string you can see how our code is grouped.

This tip came out in discussion with the creator of Ecto MichalMuskala in the Elixir forum.

2 — Elixir Short…

--

--

Malreddy Ankanna
blackode

Programmer & Writer, I write about coding, thoughts, ideas, personal musings, technical articles, and tutorials.https://bio.link/blackode