veganism.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Veganism Social is a welcoming space on the internet for vegans to connect and engage with the broader decentralized social media community.

Administered by:

Server stats:

299
active users

#elixir

37 posts20 participants4 posts today

Side Project Update: Switched the production env to the new backend and infrastructure last night. What was running on 4 hosts because of performance issues could now run on a single host. Even though the live traffic is approaching the daily peak, the db host is chilling at 0.02% load and the app servers register between 0.01 and 0.1% load.

I don't know … this might be one of my proudest engineering achievements - unless Murphy comes in with a delayed strike :D

So Elixir 1.19 is slated to remove the Struct Update Syntax and after reading through the issue I am NOT a fan of this deprecation.

The Struct Update Syntax looks like: `%Point{p | x: 3}`

The proposed alternative is to pattern match where `p` is defined but that could be quite far from where you are updating the struct.

Here is the discussion: github.com/elixir-lang/elixir/

I'm curious what other developers think of this impending change. Are you in favor?

Instead, we should prefer pattern matching. With the type system, we already get the benefits of checking if fields exist or not, in a more reliable and extensible way. Here is an example from Live...
GitHubDeprecate struct update syntax, such as `%URI{x | ...}` · Issue #13974 · elixir-lang/elixirBy josevalim