Latest #behaviours Threads Top

bugnano
Hello everyone. I’m the author of GitHub - bugnano/wtransport-elixir: Elixir bindings for the WTransport WebTransport library · GitHub ,...
New
ArthurMmn
I have a behaviours with lots of functions. Each pass an arguments and an optional keyword list of options. And I found myself in this we...
New
jeremy.owensboggs
While perusing the defoverridable documentation, one of my teammates pointed out the disclaimer: Use defoverridable with care. If you n...
New
herman
I have seen some good examples for best practices in sharing test suites: Test a module for a given behaviour Test a behaviour that use...
New
kai_feldhoff
In my current project I have a rather complex data-tranfsformation. Additionally there are several flavors fo ths trqansormation that sha...
New
MarcoTrevisiol
I would like a piece of elixir code to do something like the following: defmodule InfoManager do def initial_state(queried_info) do ...
New
CharlesO
I’m looking to improve this pattern. It is a pattern I use in a lot of my projects. defmodule Handler do def handle_request(data) d...
New
denna
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
mudasobwa
The goal of this library is to make planting better testing into a source code as smoothly and fluently as possible. It’s barely needed ...
New
DidactMacros
Given that use GenServer calls for the injection of the AST constructed in the __using__ function of GenServer, and given that this call ...
New

This Week's Trending Top

This Month's Trending Top

bugnano
Hello everyone. I’m the author of GitHub - bugnano/wtransport-elixir: Elixir bindings for the WTransport WebTransport library · GitHub ,...
New

This Year's Trending Top

robbplo
I ran into this issue the other day and it’s been bugging me ever since. Below is a basic behaviour/implementation, and function which re...
New
ArthurMmn
I have a behaviours with lots of functions. Each pass an arguments and an optional keyword list of options. And I found myself in this we...
New

Last Three Year's Trending Top

Sebb
I was just looking for documentation to build a Behaviour with some defaults. I stumbled upon this thread: As it seems, that’s still t...
New
bmitc
The question in the subject line is pretty self-explanatory, and I’m trying to understand perhaps a hidden misunderstanding. My understan...
New
fireproofsocks
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
jeremy.owensboggs
While perusing the defoverridable documentation, one of my teammates pointed out the disclaimer: Use defoverridable with care. If you n...
New
herman
I have seen some good examples for best practices in sharing test suites: Test a module for a given behaviour Test a behaviour that use...
New
Straffern
I am currently tinkering with a poc, which is a rewrite of an existing product originally implemented in Python. I recently saw a presen...
New
CharlesO
I’m looking to improve this pattern. It is a pattern I use in a lot of my projects. defmodule Handler do def handle_request(data) d...
New
zoedsoupe
I can “overwrite” native stdlib functions, just by not importing them from the kernel, right? Like: defmodule Filter do Import Kernel...
New
mudasobwa
The goal of this library is to make planting better testing into a source code as smoothly and fluently as possible. It’s barely needed ...
New
MarcoTrevisiol
I would like a piece of elixir code to do something like the following: defmodule InfoManager do def initial_state(queried_info) do ...
New
kai_feldhoff
In my current project I have a rather complex data-tranfsformation. Additionally there are several flavors fo ths trqansormation that sha...
New
denna
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
kidp330
I came across this issue when using a behaviour from a dependency and did not see any warnings when I implemented a callback with the wro...
New
DidactMacros
Given that use GenServer calls for the injection of the AST constructed in the __using__ function of GenServer, and given that this call ...
New

Trending Over Three Years Top

fireproofsocks
Coming from an OO background, my first reaction is to think of behaviours as interfaces. So it makes sense that a module must define one...
New
Fl4m3Ph03n1x
Background So I have a behaviour that has some functions with optional parameters and I want a way to make them more readable: @type o...
New
paseg
Hi When I use @behaviour and @callback, the functions are defined. I guess that I do not need to use @spec for the implementation of the...
New
Qqwy
I am having some trouble understanding the difference between Behaviours and Protocols. This mostly is caused because the built-in Access...
New
peoj
Let’s say I have a behaviour MyBehaviour and a function that may return any module implementing that behaviour. Is it possible to write ...
New
wfgilman
I have a behaviour for which I need to implement real functions and mock versions for testing. Right now I am using three modules to do t...
New
Ripster
I am writing an application that reads incoming packets and I’d like to decode them and route them to the appropriate handler. The heade...
New
vshesh
Hi everyone, I’m struggling to understand behaviours and dynamic dispatch. The example in the getting started with elixir page doesn’t m...
New
Rich_Morin
Some folks here might enjoy reading a recent article called “Erlang’s not about lightweight processes and message passing…”. It’s a prett...
New
Fl4m3Ph03n1x
Background I have a behaviour that has some functions inside it, so that modules that implement it can use them: defmodule MyBehaviour d...
New
desmond
My application has many serializers for turning structs into something suitable for clients. These serializers have many serialize/1 fun...
New
KallDrexx
In my current project (first elixir project) I have different messages each represented by its own struct which defines the unique view o...
New
Fl4m3Ph03n1x
Background I have a test that defines modules which use a behaviour. To save some typing I am using an alias for the behaviour module whe...
New
Sanjibukai
Hi everybody, I’m following along the Programming Phoenix 1.4 book and at a moment we are implementing a custom Ecto type. According to...
New
Fl4m3Ph03n1x
Background I have a module that is a GenStage. I am trying to make this module dyalizer compliant but I am not sure if I am going overboa...
New
  • Follow
  • Join
  • Shape
the conversation

Latest on Elixir Forum

Elixir Forum

Similar Portals

    None added yet

We're in Beta

About us Mission Statement