Image for post
Image for post
photo by @estudiobloom

Testing is a vital stage in the development of any application and is a way to ensure that everything works as expected. One aspect that you’ll probably want to test in your Ruby on Rails applications is whether your CRUD (Create, Read, Update, and Destroy) actions have been successful. This post will examine how we can use RSpec to do this.

What is RSpec?

RSpec is the most common testing tool for Ruby. It was created for behaviour-driven development (BDD), meaning that tests should be specified in terms of the desired behaviour of the program. …


Image for post
Image for post
photo by @edgarraw

For my last blog post, I examined recursion and looked at some basic examples of how we could implement it. While I was learning about recursion, I kept coming across this word — memoization. I wasn’t sure what it meant or why it was relevant, so I decided to investigate further. In this post, I’ll be talking about why memoization can be an important factor when implementing recursion and giving an example of how it might be used.

What is Memoization?

Memoization is a way to potentially make functions that use recursion run faster. As I’ll show in an example below, a recursive…


Image for post
Image for post
photo by @pinamessina

Enumerables in Ruby can be extremely powerful, and can turn a messy loop into a few lines of clean and efficient code. However, given the vast number of methods available, it can be difficult to determine which one will work best for you. In this post, we’ll examine ten useful enumerable methods with which you should be able to overcome many of your coding challenges.

Setting Up Your Enumerables Using do .. end or { … }

When coding in Ruby, you have the option to set up your enumerables using either do … end, or using curly brackets. Using the do … end method is considered a little easier to read…


Image for post
Image for post
photo by @pkmfaris

As a recent software engineering graduate, I’ve been spending a lot of time readying myself for technical interviews. Part of this process has been learning more about data structures and algorithms. In this post, I’ll be discussing why recursion is useful and how we can implement it. I’ll also examine two common recursion examples, how to sum numbers from 1 to n and how to reverse a string using recursion.

What is Recursion?

We can say that a function is recursive if it calls itself as a subroutine. Personally, I’ve found that, while this makes sense in theory, it can take a while…


Image for post
Image for post
photo by @sincerelymedia

Part 1 on why I chose GitHub Pages and React is available here.
Part 2 on how to get started with your GitHub Pages and React app is available here.

As a recent software engineering graduate, I decided to create a portfolio website as a way to showcase what I can do as well as to improve my coding skills. In previous posts, I’ve discussed why GitHub Pages and React are good tools for a portfolio site and how to get started with your app. In this post, I’ll be looking at how I set up my custom domain and…


Image for post
Image for post
photo by @lum3n

Part 1 on why I chose GitHub Pages and React is available here.
Part 3 on how to use a custom domain name is available here.

As a budding software engineer, I decided to create a portfolio website so that I had more opportunity to share my experience and projects and because it was a great way to keep developing my coding skills. In this series of blog posts, I’ll be talking about why I created my portfolio website using GitHub Pages and React.js and what steps I took to achieve this.


Image for post
Image for post
photo by @joannakosinska

Part 2 on how to get started with your GitHub Pages and React app is available here.
Part 3 on how to use a custom domain name is available here.

As a recent graduate from the Flatiron School Software Engineering program, I’ve just begun my job search and have been trying to grow my online presence. One important aspect of this has been creating my own portfolio website. In this post, I’ll be discussing why a portfolio is essential for any new software developer and why GitHub Pages and React are great tools for creating it.

In future posts, I’ll…


Image for post
Image for post
photo by @georgie_cobbs

Experimenting with creating your first Rails app can be an exciting experience, but one aspect that can be confusing for beginning developers is the idea of params, and how to ensure we have access to the data we need, whether it be information given to us by users, or items that we want to pass behind the scenes. In this post we’ll take a look at some different ways in which this can be achieved.

What Are Params?

Params are the parameters which are passed to the controller via a GET or POST request, and come from the ActionController::Base. Your application is able…


Image for post
Image for post
photo by @karishea

Hashmaps are a type of data structure used in computer science to format, organise, and manage data. In this blog post, we’ll take a look at why we use them, how they work, and what the advantages and disadvantages can be. Additionally, we’ll also quickly examine the introduction of Map to JavaScript with ES6.

What is a hashmap?

Hashmaps allow us to organise data in a way that later enables us to retrieve values based on their keys. In a hashmap, a key is assigned to a single value. In the table below, we’ve included some characters from Avatar: The Last Airbender. In this…


Image for post
Image for post
photo by @bjorns

ES6 formally introduced classes to JavaScript, along with a range of other long-awaited features. While classes are not strictly necessary and can be described as syntactical sugar, they are incredibly useful in allowing users to create clean and efficient code. In this post, we’ll take a look at some of the key features of JavaScript classes, and how we can use them effectively.

Introduction of Classes in JavaScript

While classes are considered to be one of the key components of object-oriented programming (OOP), they did not officially appear in JavaScript until 2015. Until then, users were able to achieve the same functionality using functions and…

iona-brabender

Full-Stack Software Engineer | Ruby on Rails, JavaScript, React, Redux

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