Discover and read the best of Twitter Threads about #elixirnewbie

Most recents (7)

Chapter 2 of Metaprogramming Elixir by @chris_mccord

You can get a copy here:
pragprog.com/titles/cmelixi…

Summarizing so you can get the key takeaways! 🧵

#elixirnewbie #myelixirstatus

0/11
Macros can be used for powerful code generation. They can save time, reduce boilerplate, and produce elegant APIs. To realize the power of macros, remember that most of the Elixir Standard library is implemented as macros.

1/11
You have the freedom to extend the language and implement your own desired features. Macros allow you to create your own keywords and allow Elixir to be flexible for future requirements.

2/11
Read 12 tweets
Chapter 1 of Metaprogramming Elixir, Write Less Code, Get More Done (and Have Fun!) by @chris_mccord

You can get your copy here:
pragprog.com/titles/cmelixi…

Twitter summaries are back! 🧵

#myelixirstatus #elixirnewbie.

0/17
Ever dream of having that one cool feature in your language of choice? With luck, you might see it in a few years, more likely never. However, Elixir is different. Through metaprogramming, Elixir allows you to extend the language and create first-class features.

1/17
Most programming languages have an AST (Abstract Syntax Tree), but it's hidden from you. When compiled or interpreted, the program's source code is transformed into a tree structure before being turned into bytecode or machine code.

2/17
Read 18 tweets
Today's summary comes from the book Elixir in Action. by @sasajuric.

manning.com/books/elixir-i…

What is Erlang?🧵0/17

#myelixirstatus #elixirnewbie
Erlang is a general-purpose development platform that supports concurrency, scalability, fault-tolerance, distribution, and high availability. It was built in the 1980s by Ericcson, a Swedish telecom giant. However, it is not specialized for telecom systems.

1/17
Erlang powers large applications such as WhatsApp, the Riak distributed database, the Heroku cloud, the Chef deployment automation system, and the RabbitMQ message queue.

2/17
Read 18 tweets
Todays summary: Watched @lawik's LiveStream: Video: Nerves, Livebook & small displays (eInk, OLED)
underjord.io/livestream-ner…

How @NervesProject helps you get started with Elixir and IoT without needing to know a lot about the hardware.

🧵0/13

#myelixirstatus #elixirnewbie
Raspberry pi is a great way to get your start in IoT, and Nerves and Livebook take that even further. Cool enough: the first real Elixir code Lars wrote was for the Rasberry Pi Zero.

1/13
You can sandwich a Rasberry Pi and an eInk display together. The Rasberry Pi runs your application and your application can use The Libraries Inky and Chisel to write to the display.

2/13
Read 14 tweets
Today's summary thread! @ElixirOutlaws with @Adkron, and @ChrisKeathley. Episode 101: Bright and Tight.

open.spotify.com/episode/6YW6Qb…

This episode was packed with information on handling errors in Elixir.

#elixirstatus #elixirnewbie

🧵0/10
Error handling can be tricky, and can cause a task you would expect to take a single day to instead take a whole week!

1/10
This episode is focused on dealing with errors caused by working with external services. Anytime you're dealing with external dependency, you expose yourself to risk.

2/10
Read 11 tweets
Listened to @BeamRadio1 Episode 18: Code Heresy with Chris Keathley.

Today's panel: @lawik @akoutmos @_StevenNunez @redrapids, @sm_debenedetto, and special guest @ChrisKeathley.

Summarizing some interesting and controversial opinions today 🧵 0/24

#myelixirstatus #elixirnewbie
By far the most loved library on the Panel today was Telemetry. Telemetry powers monitoring and observability in elixir projects and provides a consistent interface to do so. Other mentions were OTP, Livebook, and site_encrypt.

1/24
When members of today's panel came into the Elixir Industry, they found opinions they like and trust from the Elixir community but also questioned established norms. Thus today's topic: Code Heresy.

2/24
Read 25 tweets
Struct wizards Activate!

#elixirnewbie

1. The shorthand sigil syntax is great for structs.

defmodule User do
destruct ~w[name email]a
end

The ~w is a sigil with an array of words; the trailing a makes these atoms; the [] instead of () is a valid use of delimiters.
2. Structs are maps, with one extra key:

u = %User{}
-> %User{email: nil, name: nil}
Map.keys u
-> [:__struct__, :email, :name]
u.__struct__
-> User
3. Structs don't implement any Map protocols:

u[:name]
-> ...User does not implement the Access behaviour
u |> Enum.map(f(x) -> x end)
-> ...protocol Enumerable not implemented for %User...
Read 5 tweets

Related hashtags

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!