Elixir School: OTP Distribution

This post is pulled from this Elixir School lesson. Did you know that Elixir School is an awesome open-source Elixir curriculum that YOU can contribute to today?! Help us grow the Elixir community by making it _more_ beginner-friendly and resource rich. Check out our open issues here or open an… »

Improving UX with Phoenix Channels & React Hooks

This is a guest post by Alex Griffith, originally published on the Flatiron Labs blog. Alex is an engineer at The Flatiron School. He is also an incredibly talented teacher who happens to have a hilarious twitter handle Integrating Learn.co with a Partner Organization As part of a project… »

JWT Storage in Rails + React The Right Way

Local or session storage in the browser might feel like the right place to store a JWT when authenticating your client-side app against a backend API. Maybe it feels like the right place because I told you to do that. But its not right! Its wrong and its insecure. Instead,… »

Selecting Fixed Virtual Attributes with Arel

Arel: A Quick Intro Arel is a SQL AST (Abstract Syntax Tree-like) manager for Ruby. It allows us to write complex SQL queries in a semantic, reusable fashion. Arel is "framework framework"; it's designed to optimize object and collection modeling over database compatibility. For example, Active Record is built on… »

Testing External Requests in Elixir? Roll Your Own Mock Server

What should you do when testing Elixir code that makes web requests to an external API? We don't want to let our code make those requests during a test run––we'll slow down our tests and potentially use up API rate limits. We could mock such requests with the help… »