ElixirCasts

ElixirCasts

Forum Sponsor

@impl Attribute

In this episode we’ll look at the @impl attribute and how it can be used to make code more readable.

Most Liked

Fl4m3Ph03n1x

Fl4m3Ph03n1x

@impl is actually one of my favorite attributes. I do however use it in a different way, for example, in the code you showed I would have used @impl GenServer to make it clear which behaviour is being implemented.

The issue with this approach however, is that to avoid doing @impl MyApp.SomeModule.MyBehaviour everywhere, I usually have to put an alias call before, which messes up the Elixir style guidelines which say that an alias should be after a behaviour call.

But oh well, good to know you’re still rocking!

Where Next?

Popular in Screencasts Top

New
ityonemo
Hey all! Following the fantastic blog post by the erlang team (A brief introduction to BEAM - Erlang/OTP) I made a video that quickly d...
New
New
New
omgneering
I made a video for getting started with the GenServer module. I introduce some concepts and try go over what's happening step by step. ...
New
ElixirCasts
Made a video about introspecting Ecto Schemas. https://elixircasts.io/introspecting-ecto-schemas Posted via Devtalk (see this thread ...
New
alvises
The Beauty of Pattern Matching in Elixir (Screencast + Transcript) One of the reasons I fell in :heart: with Elixir is pattern matchin...
New
anuragg
One of our users just created this screencast for deploy Elixir apps on Render. Hope it’s helpful!
New
CinderellaMan
Hello everyone :wave: Officially this is the most intense/demanding video that I ever released :slight_smile: The video sums up the wor...
New
aseigo
In this week’s episode we look at the basics of how clustering Elixir nodes works, and how to automate their creation using libcluster (u...
New

Other popular topics Top

JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1140 51847 244
New
sergio
In Ruby, I can go: User.find_by(email: "foobar@email.com").update(email: "hello@email.com") How can I do something similar in Elixir? ...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
_russellb
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
fireproofsocks
I’m working on defining a simple Ecto schema for a table (in PostGres), but I don’t see where I can define a column as NOT NULL. Conside...
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
johnnyicon
Hi all, I've just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I'm trying to use Postg...
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers' Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
Nvim
Elixir appears to be a superior language to Python. I don’t see any advantage of Python over Elixir. Are there any?
New

We're in Beta

About us Mission Statement