Skip to main content

Questions tagged [elixir]

Elixir is a functional meta-programming aware language built on top of the Erlang VM. It is a dynamic language with flexible syntax with macros support that leverages Erlang's abilities to build concurrent, distributed, fault-tolerant applications with hot code upgrades.

0 votes
1 answer
80 views

I'm new to elixir and would really like some feedback on my code. MY background has been node -> laravel -> ruby / rails -> go -> elixir. I'm building an SMTP client and would like to make ...
Quesofat's user avatar
  • 143
1 vote
1 answer
174 views

I've recently started learning elixir, and the following is my attempt at fetching the local IP address of the system. It can definitely be improved further, but as this would be my first ever project ...
hjpotter92's user avatar
  • 8,941
4 votes
1 answer
271 views

I would like to transform the input elems = [a, b, c] terms = [t1, t2] @spec contains?(term, elem) :: boolean def contains?(term, elem), do: #implementation to ...
Mark McElroy's user avatar
5 votes
0 answers
157 views

Here is my code: ...
dopatraman's user avatar
2 votes
1 answer
68 views

I'm trying to do a simple implementation of a scp wrapper in Elixir. The code is working as intended, but I got a feeling that the error conditions can be ...
Rodrigo Ce Moretto's user avatar
2 votes
1 answer
111 views

In this article I found this quite elegant looking Elixir code: ...
oligofren's user avatar
  • 121
1 vote
1 answer
107 views

I have already done many of the Project Euler questions in other languages before, but whenever learning a new language, I like to do the problems again in that language. Here is my elixir version ...
Dylan's user avatar
  • 119
1 vote
1 answer
187 views

I'm working on a Phoenix/Absinthe application and I thought to expose encrypted sequential IDs instead of UUIDs since these are a bit shorter. Encryption on Elixir/Erlang seems very hard, so I think I'...
emiliano.bovetti's user avatar
2 votes
0 answers
50 views

As I'm learning elixir, I wrote some code for printing elements in the spiral of a matrix(2D array). I was wondering if there is any room for improvements with regards to its performance or ...
Surya's user avatar
  • 121
1 vote
2 answers
409 views

I'm learning the Elixir language and the Phoenix web framework. And I had an idea. What if, in a web wizard (multi-step form) scenario, I stored the intermediate data in a ETS table instead of the ...
art-solopov's user avatar
3 votes
0 answers
108 views

I wrote this Paginator module that's part of a small application that displays Elixir Github repos in a table. I'm new to Elixir and looking for code improvements with as much as possible. Best ...
dan-klasson's user avatar
6 votes
1 answer
131 views

I was trying my hand at learning Elixir via ancient adventofcode puzzles and was trying to write a function to satisfy this requirement: It contains a pair of any two letters that appears at least ...
thesunneversets's user avatar
1 vote
2 answers
126 views

I just started learning Elixir and stumbled upon this challenge over on Programming Puzzles & Code Golf. It is a well-suited task for beginners, so I chose to give it a go (to be clear, give it a ...
Mr. Xcoder's user avatar
3 votes
0 answers
450 views

Here's my recursive implementation of a sliding window algorithm to find the longest substring of a given string without repeating characters. Is there a more idiomatic-Elixir way to write this? <...
Eli's user avatar
  • 31
5 votes
1 answer
518 views

I am trying to learn Elixir, so I decided to write a port of Ruby's Parslet library. I want to define a DSL that lets you define your grammar and given a string can parse it into an AST. I wrote ...
Nigel Thorne's user avatar

15 30 50 per page