With Phoenix Hooks and Ecto Queries.

Data gets big, really big. You can optimize your data retrieval with faster algorithms, but at some point, there’s simply too much data for your client or server to handle.

That’s where Pagination comes in.

What is Pagination?

Think of your data like a big massive book…


My Multi-Hour Gaming Sessions Are Productive. I Swear.

For those who aren’t familiar, Factory building games are a genre of video game where the goal is to build factories that produce items, which are then used to produce more items, and so on.

Input and Output

Jumping into the genre as a software…


How to Useuse’ and ‘__using__’ Usefully In Your Modules.

Information on ‘use’ is Hard to Find.

I found learning ‘use’ unintuitive. Partially because I think it’s hard to find documentation for.

  • ‘use’ is not searchable: Google searching “how to use ‘use’ in elixir” doesn’t return much information.
  • ‘use’ is hidden in the elixir documentation: It’s in…


The Steps to Take to Become an Employable Elixir Developer.

Your Elixir Learning Path.

Deciding what you should learn is critical. You need to be exposed to new information and understand what the Elixir ecosystem looks like.

You can waste a lot of time learning things that aren’t critical and never learn key skills…


When You Optimize For Thinking Speed, Then 1 + 1 = 3.

Pairing is the process of creating software collaboratively. It’s usually done between 2 developers though other forms of it involve more people.

Typically one person will be the navigator, and the other person will be the driver.

The Driver.

The driver is the person who controls the keyboard. The driver worries about…


With Real World Examples Mocking SMS with Twilio.

Mocks simulate real-world behavior for the sake of convenient testing.

José Valim wrote an excellent piece on mocks and explicit contracts, and I recently had to opportunity to implement a Twilio Mock on my current project. …


Learn How to Maximize Test Coverage Using a Book Search Example.

Testing Interactions Between Features.

When testing interactions, permutations of test cases grow exponentially.

What does that mean? Well, imagine you have to test a single feature. For example, you want to be able to search a list of books by title. …


Thoughts on Building Your Portfolio and New Skills.

If you are a new developer, you might be in the portfolio-building stage of your new career. Deciding on which project to build to increase your skillset and build a portfolio can be overwhelming. …


Use The --slowest and --exclude Flags to Profile Your Slowest Tests.

Tests are wonderful. Tests are little rules and assertions that you can put in your codebase that guarantee you haven’t broken anything while developing your feature.

However, as lovely as tests are, they also suck up a lot of…


Make Easily Composable and Reusable Queries.

In my earlier article, Ecto with Phoenix in 4 Minutes, I summarized how Ecto handles data persistence and validation in your phoenix app. If you would like a refresher on Ecto queries, I recommend you start there.

What are composable queries?

Composable queries are a way of building…

Brooklin Myers

Software Engineer. I create educational content focused on technology for mobile and web applications.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store