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
@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!
1
Popular in Screencasts
Playlist Here
New
This is a part of the ongoing elixir OTP series. The video walks through creating an application, talks about application structure and ...
New
This video is about the step by step guide to build packages with clear explanation of package files and registration procees to hex.pm
...
New
I made an episode for anyone wanting an introduction to testing with Elixir.
https://elixircasts.io/introduction-to-testing
New
New video covering, at least in brief, the current date and time APIs in Elixir.
I do hope that more of Calendar / Timex a...
New
I’m doing a 7-part screencast that deep-dives into how Elixir (yup, that’s elixir, not erlang) does processes.
Prerequisites are underst...
New
One of our users just created this screencast for deploy Elixir apps on Render. Hope it’s helpful!
https://twitter.com/Alc...
New
I created a tutorial for implementing a toggle button in LiveView.
It’s been done against Phoenix 1.7 to future-proof it, ...
New
I was working on testing a named agent that was started by my application. In testing I had intermittent failures. I thought I would shar...
New
3 episodes at $6.75 each
Build real-time apps with ease using Phoenix. In this screencast series, get a brief introduction to the Elixi...
New
Other popular topics
Hi All,
I set a environment variables in dev.exs , like below code.
when i start server, how can i set the ${enable} value?
thanks.
d...
New
Posting this to see if we can make things easier for people to get into Neovim. If you use Neovim and have a favourite distro please let ...
New
Hi all,
I’ve just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage.
I’m trying to use Postgres...
New
I’m brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
New
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
Credo is smart enough to check for (something like) this:
assert length(the_list) == 0
with this response:
Checking if an enum is empt...
New
Got a question about when to concat vs. prepending items to list then reversing to achieve appending.
So i know lists boil down to [1 | ...
New
I had some trouble figuring out how to make many-to-many associations work. Once I got it working, I wrote a blog post. Because I’m a nov...
New
Update:
How to use the Blogs & Podcasts section
You can post links to your blog posts or podcasts either in one of the Official Blog...
New
Hi everyone!
I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #javascript
- #code-sync
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








