Filter
Exclude
Time range
-
Near
#ElixirTips Ash Framework
Mainly learning the Ash way vs the Ecto's. Defining resource actions and domain code interfaces with arguments is significantly different from writing normal functions. However, the validations and changes feel much easier once you understand them. The best part is conditional validations and changes with the where option that validates all conditions before executing the change or validation. Query composition moves from just functions to Preparations where you can do the same style of function head pattern matching. Same can be said for custom Changes and Actions. Managing relationships is made way easier in Ash. Instead of doing put_assoc, you can put the manage_relationship change and specify what should happen when adding the relationship. Like create if one doesn't exist, relate when it does exist, or remove and add a new one. Still not fully clear on how to compose actions by leveraging Hooks like before_action, after_action, before_transaction, after_transaction to replace Ecto.Multi uses or leverage Notifiers for async actions. But, I've mostly been able to replace Ecto.Multi uses with manage_relationship for my use cases. Planning to dive into Notifiers soon for writing to an action logs table. The main challenge of learning the framework has been a lack of search-ability as opposed to Ecto. That's just due to the framework being young. However, you can learn a ton with the documentation, Discord, Elixir Forum, and using references like github.com/team-alembic/real…. I'm still actively learning the framework and figuring things out. I constantly go from "Why isn't this working???? I could just write a function or use the Ecto way" and then when it finally works "Holy crap! It was that simple?! This is awesome."
3
112
11 Sep 2024
Does sharing state between processes in Elixir involve sending virtual carrier pigeons or smoke signals? Source: devhubby.com/thread/how-to-s… #Code #SharingState #Elixir #ElixirTips #share #processes

3
17
🚀 #ElixirEnthusiasts! Experienced dev @PJUllrich shares eye-opening tips to navigate Elixir with confidence! 🌟💡 Discover mindset shifts & strategies to elevate your skills. 📈🔥 Must-watch for all levels! 👀 #elixirtips #developerinsights #MyElixirStatus
1
1
11
698
🚨 Developer Alert! 🚨 Michael, founder of @paraxialio, is here to discuss a critical Elixir security tip. Discover why Erlang's binary to term could be your code's hidden enemy and the safer alternative you should use. Don't risk your app's security! #ElixirLang #ElixirTips
2
6
23
1,760
What's the deal with binaries in Elixir? 🤔💻 Find out in this quick clip from Elixir Mentor. Bytes, bits, and all things binary - explained! For the full episode, visit "Binaries in Elixir" on my channel. youtube.com/@elixirmentor #ElixirMentor #ProgrammingBasics #ByteIntoCoding #ElixirTips #TechEducation #elixirlang
1
11
315
(ignore if you're not interested in Phoenix LiveView) I find myself re-using the same "copy to clipboard" logic across my liveview projects. So I wrote a quick gist for how I do it. It's simple interactive works across browsers. #elixirtips charlieholtz.com/copy
2
1
9
994
Very in-depth article on string ilike and similarity searches using Ecto and Postgresql #elixirtips #elixir @elixirstatus @elixirlang peterullrich.com/efficient-n…

2
7
19 Mar 2021
⚗️ Elixir Tip #78 - High performance counters⚗️ Erlang ships with a very interesting module called counters. Reach for it when you need to increment or decrement global data in a high throughput environment. #myelixirstatus #elixirlang #elixir #erlang
2
4
July Elixir Tip 15: Use Keyword.get to have easy keyword options for functions. This is a common pattern I use for content-helpers. #myelixirstatus #elixirlang #elixirtips
5
8 Mar 2019
#elixirtips Elixir text types pack up unicode integers (code points) two ways: iex> ?a 97 iex> <<97, 98, 99>> "abc" iex> [97, 98, 99] 'abc' Charlists ARE lists of integers. Strings ARE binaries, continuous bytes in memory. Charlists are Lists, linked lists. #myelixirstatus
1
#elixirtips Elixir text types pack up unicode integers (code points) two ways: iex> ?a 97 iex> <<97, 98, 99>> "abc" iex> [97, 98, 99] 'abc' Charlists ARE lists of integers. Strings ARE binaries, continuous bytes in memory. Charlists are Lists, linked lists. #myelixirstatus
7
1/2 #elixirtips reducers. Reducers take an accumulator and x, and return another accumulator. Enum.reduce takes a reducer function that specifies the acc *second*. My advice? In modules, place the acc *first* for better piping and use an anon fn to flip args. #myelixirstatus
2
2
12
#elixirtips Sometimes a tuple is a better map key. Examples: - a cache key of {item.id, item.updated_at} => item, ... - a game token {x, y} => :black_queen, ... - a course catalog {:elixir, :basics} => lesson, ... Works great. #myelixirstatus

2
11
44
22 Aug 2017
Trying to update a function in your #elixirlang project? try `mix xref` to find all the places that it's used #myelixirstatus #elixirtips
7
16
To find out, outdated dependencies run mix.hex.outdated --all #elixir #elixirtips #myelixirstatus hex.pm/docs/tasks

4
6
"Failover and Takeover in the Erlang VM" from The Little Elixir & OTP Guidebook bit.ly/1PX3aPL @Elixirtips x.com/ManningBooks/status/65…
2
2