Latest #protocols Threads 
I noticed that _build/dev/consolidated gets populated with beam files after executing mix compile, as part of protocol consolidation.
On...
New
Hey guys, I have some files that implement a protocol for some resources for my tests (they are only compiled when running tests:
defimp...
New
I have a protocol that is used on Ecto Schemas. The protocol requires that two fields are defined with specific defaults.
I have come u...
New
Is there a guard for testing protocol implementation?
is_proto/2
For example, how to guard test for implementing Enumerable?
I underst...
New
I’m not sure if this is the way things are intended to be, but I’ve noticed that the following modules (in a new mix project using erlang...
New
If you paste the whole code from
defimpl Inspect, for: Map do
# ...
end
into an Elixir shell, you will get “undefined function color/3”...
New
I am trying to provide a way to create something like inheritance.
i want to be able to call a a function on a Module that inherits the ...
New
I’m trying to write a Table.Reader implementation for Snap.SearchResponse from the snap library (GitHub - breakroom/snap: An Elasticsearc...
New
I don’t think the following is possible, but going to ask for possible solutions.
I have the implementation of a Protocol with 5+ functi...
New
Hello!
I am writing an application that translates JSON messages to SOAP messages. Currently I am handling 16 JSON messages and 20 SOAP ...
New
This Week's Trending
This Month's Trending
This Year's Trending
Hello!
Came here to announce ChromicPDF, a pet project PDF generator I’ve been working on for the past few months. Why another PDF gener...
New
I’ve recently started a new Phoenix project using Elixir 1.11, Phoenix 1.5 and Ecto 3.5.
Everything runs smoothly but there is a recurre...
New
Hey guys, I have some files that implement a protocol for some resources for my tests (they are only compiled when running tests:
defimp...
New
I noticed that _build/dev/consolidated gets populated with beam files after executing mix compile, as part of protocol consolidation.
On...
New
I have a protocol that is used on Ecto Schemas. The protocol requires that two fields are defined with specific defaults.
I have come u...
New
Last Three Year's Trending
I got the error mentioned in the title while running the following code. The weird part is I did get the response I expected but with thi...
New
I stumbled across the desire to want to use get_in while accessing deeply nested parts of a custom struct while needing to provide a defa...
New
I don’t think the following is possible, but going to ask for possible solutions.
I have the implementation of a Protocol with 5+ functi...
New
I’m trying to write a Table.Reader implementation for Snap.SearchResponse from the snap library (GitHub - breakroom/snap: An Elasticsearc...
New
I am trying to provide a way to create something like inheritance.
i want to be able to call a a function on a Module that inherits the ...
New
Hello!
I am writing an application that translates JSON messages to SOAP messages. Currently I am handling 16 JSON messages and 20 SOAP ...
New
I’m not sure if this is the way things are intended to be, but I’ve noticed that the following modules (in a new mix project using erlang...
New
Is there a guard for testing protocol implementation?
is_proto/2
For example, how to guard test for implementing Enumerable?
I underst...
New
If you paste the whole code from
defimpl Inspect, for: Map do
# ...
end
into an Elixir shell, you will get “undefined function color/3”...
New
Trending Over Three Years
Hi,
(I also asked on Stackoverflow, I hope cross-posting is ok.)
I expected it to be documented in Module, probably with references to ...
New
Given:
market_data =
[
%{
asset: "3QvxP6YFBKpWJSMAfYtL8Niv8KmmKsnpb9uQwQpg8QN2",
last_price: 0.1249534,
priced_in: "WAVES...
New
In General if the Enum.all? evaluates true that means all the elements in the given collection evaluates true for the given callback func...
New
I am having some trouble understanding the difference between Behaviours and Protocols. This mostly is caused because the built-in Access...
New
I use protocols in my project. When I run mix dialyzer, it returns list of not implemented protocols in Unknown functions: section.
e.g....
New
I'm trying to write two independent libraries with the same API. I thought I would achieve it with Protocols. I have already reviewed imp...
New
I recently learned that it's possible to delegate common implementations of protocols using defdelegate in the implementations, but I'm c...
New
Hello,
When using protocols, most complex code used in defimpl MyProtocol, for: MyStruct needs to use multiple helper functions from the...
New
As you know, Elixir protocols dispatch to the particular implementation based on the first argument passed to their functions.
For many ...
New
In my current project (first elixir project) I have different messages each represented by its own struct which defines the unique view o...
New
I’m having so much fun working on the “Protohackers” challenges, I never got into Advent of Code much but this has been amazing. The chal...
New
Hi, I’m contemplating writing an admin library, similar to Kaffy and LiveAdmin, but filling a few gaps found while using Kaffy. For that ...
New
Hi,
I'm currently working on a final project/thesis for my CompSci course at the University of Cambridge. I have used Elixir for about ...
New
Hello,
I want to have a protocol with 3 methods with 2 optional having the following logic:
defprotocol MyRepo.Render do
@fallback_to...
New
Apologies if this question has already been asked.
As I understand it, the way to translate a concept similar to use of abstract classe...
New
Latest on Elixir Forum
Get money off!
The Pragmatic Bookshelf
35% off any eBook
Manning Publications
45% off any item
ElixirCasts
10% off for life
The Pragmatic Studio
20% off any course
AppSignal
10% off for 12 months
Honeybadger
10% off for 12 months
Simply use coupon code "devtalk.com" or "elixirforum" at checkout!
Filter by Type:
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #exunit
- #elixirconf
- #discussion
- #javascript
- #podcasts
- #code-sync
- #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
- #distillery
- #api
- #processes
- #forms
- #metaprogramming
- #security
- #performance
- #hex







