1
11
submitted 1 month ago by [email protected] to c/[email protected]
2
11
submitted 1 month ago by [email protected] to c/[email protected]

Bonfire Expeditions - Collaborating to Release Version 1.0

Releasing the stable 1.0 version of the Bonfire federated social network requires collaboration with the communities, hackers, tinkerers, and sysadmins who plan to use it.

3
8
submitted 2 months ago by [email protected] to c/[email protected]

The first released candidate of LiveView 1.0 is out!

4
6
submitted 2 months ago by [email protected] to c/[email protected]

๐Ÿ“˜๐Ÿ“˜๐Ÿ“˜ New post: 10 @elixir gotchas!

It's a great language, but some behavior can be unintuitive, confusing and in the worst case lead to bugs. In this post I wanna help clear some of them up!

https://pragtob.wordpress.com/2024/05/01/10-elixir-gotchas/

5
8
submitted 3 months ago by [email protected] to c/[email protected]
6
1
submitted 5 months ago by [email protected] to c/[email protected]

You can read his book, but you can also join his talks and trainings!
Saลกa Juriฤ‡ is our speaker and trainer at Code BEAM America in San Francisco in March and at ElixirConf EU in Lisbon in April.

See you there! Tickets:
๐Ÿ”ฅ codebeamamerica.com
๐Ÿ”ฅ elixirconf.eu

#myelixirstatus #elixirinaction #elixirlang #codebeam #elixirconf #elixirconfeu #codebeamamerica @ManningPublications @elixir @sasajuric

RE: https://hachyderm.io/users/sasajuric/statuses/111896306303158921

7
3
Wiki - ElixirNitpicks (wiki.alopex.li)
submitted 5 months ago by [email protected] to c/[email protected]
8
4
submitted 5 months ago by [email protected] to c/[email protected]
9
5
Elixir v1.16 released (elixir-lang.org)
submitted 6 months ago by [email protected] to c/[email protected]
10
5
submitted 6 months ago by [email protected] to c/[email protected]

Elixir is a dynamically-typed functional language running on the Erlang Virtual Machine, designed for building scalable and maintainable ...

11
3
submitted 6 months ago by [email protected] to c/[email protected]

Published: Tail-Recursive & Body-Recursive Function Performance Across Elixir & BEAM versions โ€“ whatโ€™s the impact of the JIT?

Watch me go through @elixir and erlang versions from 1.6 @ OTP 21 up to 1.16 @ OTP 26 and marvel at our performance gains.

https://pragtob.wordpress.com/2024/01/08/tail-recursive-body-recursive-function-performance-across-elixir-beam-versions-whats-the-impact-of-the-jit/

12
7
submitted 7 months ago* (last edited 7 months ago) by [email protected] to c/[email protected]

This only comes around once a year and is a great time to pick up some of their great courses using promo code 2023THANKS.

  • Elixir & OTP ~~$149~~ down to $89
  • Phoenix LiveView ~~$129~~ down to $77
  • Full-Stack GraphQL with Phoenix ~~$99~~ down to $59
13
3
submitted 8 months ago* (last edited 8 months ago) by [email protected] to c/[email protected]

at https://hexdocs.pm/open_api_spex/3.2.0/readme.html there's a definition of a module User

defmodule MyApp.Schemas do
  alias OpenApiSpex.Schema

  defmodule User do
    @behaviour OpenApiSpex.Schema
    @derive [Jason.Encoder]
    @schema %Schema{
      title: "User",
      description: "A user of the app",
      type: :object,
      properties: %{
        id: %Schema{type: :integer, description: "User ID"},
        name:  %Schema{type: :string, description: "User name"},
        email: %Schema{type: :string, description: "Email address", format: :email},
        inserted_at: %Schema{type: :string, description: "Creation timestamp", format: :datetime},
        updated_at: %Schema{type: :string, description: "Update timestamp", format: :datetime}
      },
      required: [:name, :email],
      example: %{
        "id" => 123,
        "name" => "Joe",
        "email" => "[email protected]"
      }
      "x-struct": __MODULE__
    }
    def schema, do: @schema
    defstruct Map.keys(@schema.properties)
  end

In order to avoid re-describing it like that for Open API Specs whilst having already done so for Ecto, is it possible to combine the two definitions in a single module somehow? That is, my Ecto schema User would serve its purpose for Open API Specs too. With some required tweaks.

And if I do combine them, won't this mess up with the methods of the 2 modules and other things?

14
4
submitted 8 months ago by [email protected] to c/[email protected]

Djot is a markdown alternative, created by John MacFarlane, creator of Pandoc and spec author of CommonMark. It aims to fix many of the little issues Markdown has, and does a pretty good job of it, imo.

15
3
submitted 8 months ago by [email protected] to c/[email protected]

In a third-party project, in the models, I've encountered functions like this:

  def changeset(model \\ %__MODULE__{}, params) do
    model
    |> cast(params, @required_fields ++ @optional_fields)
    |> validate_required(@required_fields)
  end

How can a function have a default argument which is both a) first and b) followed by a mandatory one?

What's interesting, they work properly.

16
-4
submitted 10 months ago by [email protected] to c/[email protected]
17
5
submitted 10 months ago by [email protected] to c/[email protected]

@axelson demoing a 7-color e-ink display powered by @elixir and @NervesProject. Super cool!

#MyElixirStatus #ElixirConf2023

18
4
submitted 10 months ago by [email protected] to c/[email protected]
19
0
submitted 11 months ago by [email protected] to c/[email protected]
20
8
submitted 11 months ago by [email protected] to c/[email protected]
21
7
submitted 11 months ago by [email protected] to c/[email protected]
22
5
BDD/TDD projects (kbin.social)
submitted 11 months ago by [email protected] to c/[email protected]

I was wondering if there were any BDD/TDD projects or tutorials that anyone could recommend?

I'm currently learning elixir and when I was learning rust, I really enjoyed a tutorial called pngme. It has test cases and a specification but left you to implement everything else. Link to pngme: https://picklenerd.github.io/pngme_book/introduction.html

Does anyone know of any similar projects but for elixir?

Thanks in advance

23
1
submitted 11 months ago by [email protected] to c/[email protected]
24
3
submitted 11 months ago by [email protected] to c/[email protected]
25
9
submitted 11 months ago by [email protected] to c/[email protected]
view more: next โ€บ

Elixir

445 readers
2 users here now

founded 1 year ago
MODERATORS