🔧 Need some Elixir code inspiration? Follow us for regular code snippets, tips, and tricks that will help you write clean, elegant, and efficient Elixir code. Let's level up our programming skills together! #Elixir#CodeSnippets#ProgrammingTips
🔗 Elixir's Enum.reduce 🔄 iterates over a collection, combining elements using an accumulator and a given function. 🧮 It's like a master calculator 🧮, summing up values or performing custom aggregations. 💪 Level up your collection transformations with Enum.reduce! 💡 #Elixir
🔑 Elixir's Map.keys ✨ unlocks the keys of a map, revealing its hidden secrets. 🗝️ It's like a keychain, giving you access to all the keys within. 🚪 Explore the keys of a map and unlock new possibilities! 💡 #Elixir#FunctionalProgramming#code#100DaysOfCode
I've now back-filled all the videos back to last December.
That's ~40 short videos of Elixir and Phoenix tips/tricks! 🥳
Hope people enjoy them 👇
elixirstreams.com/#MyElixirStatus
I'm putting all the Elixir & Phoenix tips I've been creating in a single place.
I still have to backfill lots of videos, but the website is now live! 🥳
You can check it out at elixirstreams.com/#MyElixirStatus
🔑 Elixir's Map.get ✨ retrieves the value associated with a given key from a map. 🗺️ It's like a key to treasure, unlocking the value you seek. 🎁 Safely access map values without worries! 💡 #Elixir#FunctionalProgramming#programming#code#100DaysOfCode
Using the bandit webserver in phoenix is so easy it fits in a tweet:
# config.exs
config :app, AppWeb.Endpoint,
adapter: Bandit.PhoenixAdapter,
# mix.exs
{:bandit, "~> 1.0-pre", override: true},
That's it! Thanks for all the hard work @mattrudel ! Looking forward to 1.0.0!
Elixir v1.15 released: elixir-lang.org/blog/2023/06…
* Faster compile and boot times
* Compiler warnings and errors
* Full integration with Erlang/OTP logger
🔍 Elixir's Enum.filter ✨ sifts through a collection, keeping only the elements that meet a given condition. 🧹 It's like a filter for data, keeping what you need and discarding the rest. 🗑️ Clean up your collections with Enum.filter! 🧼 #Elixir#Programming#code
🔁 Elixir's Enum.map 💫 transforms each element of a collection with a given function, returning a new collection. 🔄 It's like a magic wand 🪄 for mapping over lists, maps, and more! 💥🚀 #Elixir#code#programming#100DaysOfCode
⚡️ Want to build concurrent and reactive systems? Elixir's GenServer is here to help! Master the art of spawning processes, handling requests, and managing state with elegance. Let's embrace the power of concurrency! #elixir#code#100DaysOfCode#programming
🗺️ Navigate the power of Elixir's Map module! Discover functions like Map.put/3 and Map.update/4 to add or modify key-value pairs effortlessly. Unlock the potential of maps in your data transformations. #Elixir#MapModule#CodeTips
🌿 Discover the beauty of functional programming with Elixir's Enum module! Functions like Enum.map_join/3 and Enum.flat_map/2 enable you to elegantly transform and flatten nested collections. Simplify your data manipulations with #Elixir Enum!
🔑 Key manipulation made easy with Elixir's Map module! Explore functions like Map.keys/1 and Map.has_key?/2 to extract keys or check for their existence. Master the art of working with maps in #Elixir! #MapModule#CodeTricks
💫 Harness the power of enumeration with Elixir's Enum module! Functions like Enum.with_index/1 and Enum.without/2 let you manipulate collections while keeping track of indices or excluding specific elements. Empower your data transformations! #Elixir#Enum#CodeMagic
⏱️ Time for some time-based operations! Elixir's Enum module offers functions like Enum.min_by/2 and Enum.max_by/2 to find the earliest and latest elements in a collection based on a given criteria. Time-aware operations with #Elixir Enum! #FunctionalProgramming