What's wrong with a global User module?
We often see a User module in the root project directory. Here are some thoughts about its impact on the system architecture and some examples how to split it into cleaner and more isolated components.
Might be helpful to understand how to separate the code when using Phoenix Contexts.
https://medium.com/@mkaszubowski/whats-wrong-with-a-global-user-module-ed7ed013a519
Just in time for Spooktober: `Ghoul` 0.1.1: An undead cleanup crew for your processes
Ghoul.summon/2 raises one of the undead to stalk your process, waiting until just after death to consume the corpse… err… execute a custom callback.
Ghoul.reap_in/3 invites the carrion eaters to slay a misbehaving process after a timeout, unless reap_in is called again to set a new timeout, or cancel_reap or banish prevent the Ghoul from mincing up his tasty treat.
I’ve been using this in production for a few months, and it has elegantly solved some tricky issues; my current favorite is delaying a supervisor’s restart of a worker, but only when the worker exited while in a particular situation.
Check out the rest of the API over at the repo
Filtrex 0.4.1 Released
Sanely handling query parameters in your elixir application now works properly with multi-table Ecto queries in Filtrex 0.4.1.
Getting started with Mix format
How to use the amazing new Mix code formatter today - http://blog.janfornoff.com/elixir/2017/10/21/getting-started-with-mix-format.html
Implementing a Simple Neural Network in Elixir (free video for 24 hours)
Here’s a DailyDrip episode implementing a basic neural network in Elixir with Karmen Blake’s neural_network_elixir library: https://www.dailydrip.com/topics/daily/drips/implementing-a-simple-neural-network-in-elixir
I’ve been having fun digging into his code, and I’ll be doing more of that tomorrow.
Adding Semantic UI Sass to Phoenix with Brunch
Here’s how to have Semantic UI set up in 3 minutes:
https://medium.com/@kimlindholm/adding-semantic-ui-sass-to-phoenix-with-brunch-7d8cb4d8aedc
IntelliJ Elixir v6.4.0
- Convert ANSI escape codes to colored output in mix Run and Debug output
- Decompile more invalid identifiers with unquote decompiler
- Fix “Write access is allowed from event dispatch thread only” in Credo annotator when auto-upgrading Elixir SDK to put Internal Erlang SDK.
Elixir: Brackets Hell in Supervision tree
Trying to understand new child_spec approach in Supervision trees.
https://virviil.github.io/2017/10/25/Elixir-Brackets-Hell-in-Supervision-tree.html
Announcing Taggart - A Markup Generation Tool for Elixir
Taggart is a markup generation tool for Elixir. Context switching when building a web application can be frustrating. Elixir already provides great tooling for structured representations. Just use data, functions, and normal composition to build your pages. Read about it here.
Elixir/Phoenix app makes Top 20 in prestigious UK startup competition
Assenty, the social Q&A platform I’ve been bootstrapping over the last year has made it to the final 20 of the prestigious Northern Stars UK tech startup competition. It runs on Phoenix (channels)!! Read all about it
Release blog post: benchee 0.10, html plugin & others
The release blog post for benchee is a bit delayed, but you can check out the main overview of new features there along with a look behind the curtain, what we did and what we’re going to do in the future :)
Testing protected Phoenix controller endpoints
Bypassing your own authorization can be a bit tricky. Here’s a short guide on easily writing phoenix controller tests for endpoints requiring authorization, without simulating a user login every time.
Registration for SpawnFest is open!
Hey Beamers! Registration is open for SpawnFest 2017 The contest will happen on December 9-10!!
Elixir Community for Spanish Speakers Elixir-Lang.es
Elixir Community for Spanish Speakers |> Para todos los entusiastas de Elixir Lang hispanohablantes: |> https://foro.elixir-lang.es
Benchee 0.10.0 released
Benchee 0.10.0 was released today, with a ton of new features, including a way to have setup and teardown hooks run before your benchmarks!
Check out the full changelog for all the new features and bug fixes.
Atom Elixir Formatter Updated
The Atom Elixir Formatter recently changed the way it communicates with the Elixir code formatter. It now uses the - option added to the Elixir master branch on October 17, 2017. This allows formatting via STDIN and STDOUT, which eliminates temporary files and reduces latency.
IMPORTANT If you downloaded and compiled the master branch of Elixir prior to that date, you will need to update your local Elixir repo and recompile. Please visit atom-elixir-formatter more information.
Spawnfest Rules added to the Site
We improved @spawnfest’s website thanks to several comments on @elixirlang’s @reddit. We also added the rules of the contest! Check them out!
