Implementing Password Reset using Ruby on Rails and Trailblazer

Allowing your users to reset their password is one of the foundational bits of functionality of just about every type of web application. It’s usually not that interesting to implement because 9 times out 10 the functionality is exactly the same for all applications. However, this makes a great example of something we can build […]

Continue reading...

Working with Processes in Elixir

Over the last couple of weeks we’ve explored many of the foundational elements of the Elixir programming language. If you are coming to Elixir from a programming language such as PHP, Ruby, or Python, you have probably already learned a lot. Elixir is a functional programming language and so it takes a new way of […]

Continue reading...

Writing Integration Tests in Ruby on Rails

In our exploration of Ruby on Rails we’ve covered testing quite a few times. It’s important to write tests at various layers of abstraction. A good test suite tests the appropriate details at each abstraction layer to provide good coverage of business rules and functionality whilst not being brittle or superfluous. The final type of […]

Continue reading...

Understanding Comprehensions in Elixir

The first time I saw a comprehension in Elixir I was a bit confused as to what the point of it was. Initially I didn’t understand why you would write a comprehension when you could achieve the same result using the existing tools that Elixir provides. It was only after digging into some Elixir code […]

Continue reading...

Using Trailblazer Cells in Action Mailer

Over the past couple of weeks we’ve been looking at building out a registration process using Trailblazer and Ruby on Rails. First we looked at Building out a User Confirmation flow in Trailblazer, and last week we looked at Confirming Users with Trailblazer. One thing we didn’t look at was adding the confirmation email that […]

Continue reading...

What are Elixir Protocols?

An important concept in programming is “polymorphism”. You may have already come across the term if you have previous experience with another programming language as just about every programming language has this concept in one form or another. Polymorphism is defined in Elixir using Protocols. We’ve already touched upon this concept a couple of times […]

Continue reading...

Confirming Users with Trailblazer

Over the last couple of weeks we’ve started building a registration process using Ruby on Rails and Trailblazer. In Using Inheritance for Trailblazer Operations we created the functionality to create new users and import users from an existing application. When a new user signs up to the application they will need to click on a […]

Continue reading...

What are Elixir Structs?

A couple of weeks ago we looked at working with maps in Elixir. Something that we didn’t cover, but you will come across are Structs. Structs are an extension of Maps that provide a number of interesting benefits. In today’s tutorial we will be looking at Structs, how to use them, and what benefits they […]

Continue reading...

Building out a User Confirmation flow in Trailblazer

A couple of weeks ago I built out the action for creating new users in Culttt using a Trailblazer Operation (Using Inheritance for Trailblazer Operations). In this application I need 3 different ways of creating new users. Firstly, I need to import users from the old WordPress application. Secondly, I need to create confirmed users […]

Continue reading...

Working with Enumerables and Streams in Elixir

So far in this introduction to Elixir series we’ve touched upon the Enum module a couple of times. The Enum module is a collection of functions that act on enumerable data structures. The Enum module is extremely useful, and it will probably be something that you use a lot in your day-to-day Elixir work. Elixir […]

Continue reading...