Listen "48: Ecto Associations with Sheharyar Naseer"
Episode Synopsis
We talk with Sheharyar Naseer about Ecto's feature "association defaults" and how they work. We learn how they even support defining a function that gets called during your changeset operations which can be used to ensure multi-tenancy IDs get populated correctly. We learn more about Slab, talk about Single Table Inheritance designs and how we feel about them. We also talk about wrapping the Repo module for fun and profit!
Show Notes online - http://podcast.thinkingelixir.com/48 (http://podcast.thinkingelixir.com/48)
Elixir Community News
- https://blog.taxjar.com/taxjar-will-be-joining-stripe-to-help-build-the-worlds-tax-compliance-infrastructure/ (https://blog.taxjar.com/taxjar-will-be-joining-stripe-to-help-build-the-worlds-tax-compliance-infrastructure/) – TaxJar, an Elixir-backed service, was acquired by Stripe
- https://twitter.com/collision/status/1387108960881111040 (https://twitter.com/collision/status/1387108960881111040) – Potentially the largest acquisition of a fully-remote company to-date
- https://twitter.com/garazdawi/status/1390303999484514314 (https://twitter.com/garazdawi/status/1390303999484514314) – OTP team shared that OTP 21 (older) received it's last patch and will no longer be supported.
- https://twitter.com/MNishiguchiDC/status/1390658051267563520 (https://twitter.com/MNishiguchiDC/status/1390658051267563520) – Example of using Livebook on Nerves to experiment, document, and control a BMP280 temperature sensor connected to a Raspberry Pi
- https://twitter.com/josevalim/status/1390944763139006464 (https://twitter.com/josevalim/status/1390944763139006464) – Jose Valim was on the Changelog podcast talking about Nx, Axon, Livebook and Machine Learning with Elixir
- https://thinkingelixir.com/podcast-episodes/034-jose-valim-reveals-project-nx/ (https://thinkingelixir.com/podcast-episodes/034-jose-valim-reveals-project-nx/) – Our previous discussion with Jose when he revealed Nx publicly
- https://github.com/elixir-nx/livebook/pull/260 (https://github.com/elixir-nx/livebook/pull/260) – Livebook got collaborative editing with user-specific cursors (similar to Google Docs)
- https://alchemyconf.com (https://alchemyconf.com) – AlchemyConf is a virtual conference happening on May 28th organized by Subvisual
- https://www.elixirconf.eu/ (https://www.elixirconf.eu/) – ElixirConfEU hosting a "hybrid" conference event. Sept 9-10th in Warsaw and also on-line
- https://en.wikipedia.org/wiki/Proofofstake (https://en.wikipedia.org/wiki/Proof_of_stake) – Feedback on crypto currency environmental concerns. Check out Proof-of-Stake as a more environmentally friendly approach than Proof-of-Work.
Do you have some Elixir news to share? Tell us at @ThinkingElixir (https://twitter.com/ThinkingElixir) or email at [email protected] (mailto:[email protected])
Discussion Resources
- https://slab.com/blog/association-defaults-in-ecto/ (https://slab.com/blog/association-defaults-in-ecto/)
- https://slab.com/ (https://slab.com/)
- https://www.notion.so/product (https://www.notion.so/product)
- https://www.atlassian.com/software/confluence (https://www.atlassian.com/software/confluence)
- https://en.wikipedia.org/wiki/SingleTableInheritance (https://en.wikipedia.org/wiki/Single_Table_Inheritance)
- https://hexdocs.pm/ecto/Ecto.Repo.html#c:prepare_query/3 (https://hexdocs.pm/ecto/Ecto.Repo.html#c:prepare_query/3)
- https://hexdocs.pm/ecto/Ecto.Repo.html#c:exists?/2 (https://hexdocs.pm/ecto/Ecto.Repo.html#c:exists?/2)
- https://the.slab.com/public/topics/careers-at-slab-4vhprcwg (https://the.slab.com/public/topics/careers-at-slab-4vhprcwg) – Slab is hiring!
Guest Information
- https://twitter.com/sheharyarn (https://twitter.com/sheharyarn) – on Twitter
- https://github.com/sheharyarn (https://github.com/sheharyarn) – on Github
- https://shyr.io/ (https://shyr.io/) – Blog
- [email protected]
Find us online
- Message the show - @ThinkingElixir (https://twitter.com/ThinkingElixir)
- Email the show - [email protected] (mailto:[email protected])
- Mark Ericksen - @brainlid (https://twitter.com/brainlid)
- David Bernheisel - @bernheisel (https://twitter.com/bernheisel)
- Cade Ward - @cadebward (https://twitter.com/cadebward)
Show Notes online - http://podcast.thinkingelixir.com/48 (http://podcast.thinkingelixir.com/48)
Elixir Community News
- https://blog.taxjar.com/taxjar-will-be-joining-stripe-to-help-build-the-worlds-tax-compliance-infrastructure/ (https://blog.taxjar.com/taxjar-will-be-joining-stripe-to-help-build-the-worlds-tax-compliance-infrastructure/) – TaxJar, an Elixir-backed service, was acquired by Stripe
- https://twitter.com/collision/status/1387108960881111040 (https://twitter.com/collision/status/1387108960881111040) – Potentially the largest acquisition of a fully-remote company to-date
- https://twitter.com/garazdawi/status/1390303999484514314 (https://twitter.com/garazdawi/status/1390303999484514314) – OTP team shared that OTP 21 (older) received it's last patch and will no longer be supported.
- https://twitter.com/MNishiguchiDC/status/1390658051267563520 (https://twitter.com/MNishiguchiDC/status/1390658051267563520) – Example of using Livebook on Nerves to experiment, document, and control a BMP280 temperature sensor connected to a Raspberry Pi
- https://twitter.com/josevalim/status/1390944763139006464 (https://twitter.com/josevalim/status/1390944763139006464) – Jose Valim was on the Changelog podcast talking about Nx, Axon, Livebook and Machine Learning with Elixir
- https://thinkingelixir.com/podcast-episodes/034-jose-valim-reveals-project-nx/ (https://thinkingelixir.com/podcast-episodes/034-jose-valim-reveals-project-nx/) – Our previous discussion with Jose when he revealed Nx publicly
- https://github.com/elixir-nx/livebook/pull/260 (https://github.com/elixir-nx/livebook/pull/260) – Livebook got collaborative editing with user-specific cursors (similar to Google Docs)
- https://alchemyconf.com (https://alchemyconf.com) – AlchemyConf is a virtual conference happening on May 28th organized by Subvisual
- https://www.elixirconf.eu/ (https://www.elixirconf.eu/) – ElixirConfEU hosting a "hybrid" conference event. Sept 9-10th in Warsaw and also on-line
- https://en.wikipedia.org/wiki/Proofofstake (https://en.wikipedia.org/wiki/Proof_of_stake) – Feedback on crypto currency environmental concerns. Check out Proof-of-Stake as a more environmentally friendly approach than Proof-of-Work.
Do you have some Elixir news to share? Tell us at @ThinkingElixir (https://twitter.com/ThinkingElixir) or email at [email protected] (mailto:[email protected])
Discussion Resources
- https://slab.com/blog/association-defaults-in-ecto/ (https://slab.com/blog/association-defaults-in-ecto/)
- https://slab.com/ (https://slab.com/)
- https://www.notion.so/product (https://www.notion.so/product)
- https://www.atlassian.com/software/confluence (https://www.atlassian.com/software/confluence)
- https://en.wikipedia.org/wiki/SingleTableInheritance (https://en.wikipedia.org/wiki/Single_Table_Inheritance)
- https://hexdocs.pm/ecto/Ecto.Repo.html#c:prepare_query/3 (https://hexdocs.pm/ecto/Ecto.Repo.html#c:prepare_query/3)
- https://hexdocs.pm/ecto/Ecto.Repo.html#c:exists?/2 (https://hexdocs.pm/ecto/Ecto.Repo.html#c:exists?/2)
- https://the.slab.com/public/topics/careers-at-slab-4vhprcwg (https://the.slab.com/public/topics/careers-at-slab-4vhprcwg) – Slab is hiring!
Guest Information
- https://twitter.com/sheharyarn (https://twitter.com/sheharyarn) – on Twitter
- https://github.com/sheharyarn (https://github.com/sheharyarn) – on Github
- https://shyr.io/ (https://shyr.io/) – Blog
- [email protected]
Find us online
- Message the show - @ThinkingElixir (https://twitter.com/ThinkingElixir)
- Email the show - [email protected] (mailto:[email protected])
- Mark Ericksen - @brainlid (https://twitter.com/brainlid)
- David Bernheisel - @bernheisel (https://twitter.com/bernheisel)
- Cade Ward - @cadebward (https://twitter.com/cadebward)
More episodes of the podcast Thinking Elixir Podcast
283: Erlang Turns 27 and React at Risk
16/12/2025
282: Type Systems and View Transitions
09/12/2025
281: Planning for the Unexpected
02/12/2025
280: Dark Matter Developers
25/11/2025
279: Hot Code Upgrades and Hotter AI Takes
18/11/2025
278: WAL-ing Through Database Changes
11/11/2025
277: Searching Across the Hexiverse
04/11/2025
276: Elixir v1.19 Types and Speed
28/10/2025
275: From Slop to Success?
21/10/2025
274: Protocols, Permissions, and Performance
14/10/2025
ZARZA We are Zarza, the prestigious firm behind major projects in information technology.