[email protected]

Build A Static-Website Generator With Elixir, Part 1

— We take the first steps in designing and implementing the "world's simplest static-website generator". Building on tools and knowledge we acquired previously, and utilizing an incremental and iterative development process, we go through the entire software life-cycle from creating the initial project files to deploying to production. We spare nothing, from spelling out every command, to ensuring application integrity with tests, and even updating the README file. Grab a drink and some snacks, and dive right in! Read post→

Temporary Directories For Testing Mix Tasks That Modify Files

— Writing a test for a simple Mix task gets surprisingly complex. Application environment variables, temporary test directories, and IO capture are all involved. Read post→

Deploy Elixir-Generated HTML With Docker On DigitalOcean

— This is a simple proof of concept where we create a boilerplate HTML file with Elixir, containerize our build process with Docker, and deploy our markup live with DigitalOcean's hosting service. Read post→

Fix Distortion Introduced When Transforming Multiview Projections To Isometric

— One thing we learned from a week of trying to make isometric vector drawings. Read post→

Start Erlang's Dialyzer With GUI From A Docker Container

— Everything in OTP is command-line driven, so using containers during development has been without issue. But, Dialyzer, Erlang's static analysis tool, actually has a Graphical User Interface. How can we still use Dialyzer and its GUI even though Elixir is running inside a container? Read post→

Open An IEx Shell From An Elixir Script

— We can run an Elixir script with either the elixir or the iex command. Both will execute the code, but the second command opens an interactive IEx shell afterward. What if, we won't know until runtime whether we want a shell or not? How can we start an IEx session even when we use elixir, instead of iex, to run our script? Read post→

Recursively List All Files In A Directory With Elixir

Read post→