Regular Expressions or sometimes abbreviated as regex, are well … complicated at best. Just looking at them can make seasoned engineers want to run and hide. However, they are incredibly useful for use in building applications as well as a good tool to have for coding interviews and challenges. This post is going to break down the basics of Regular Expressions.

Regular Expressions are essentially ways to search through a string of text. It allows us to search through that text to do things like validation, get certain pieces, advanced find-and-replace, and more. But at its core, it it used…

These two terms can cause a lot of uneasy feelings when seeing them for the first time. Actually they provide a lot of assistance to Python functions, using *args and **kwargs make it easier for functions to accept multiple arguments which in turn can prevent projects from breaking if the user does something unpredictable.

In order to understand these two terms, we need to understand the basic outline of a function. When writing a function, we expect it to take in arguments that will be passed through as parameters in order to complete the function. A very basic example:

def…

In any application or project that you work on, having route paths or urls adds an extra level of functionality to improve the user experience. Being able to guide the user from place to place with navigation makes it easier for the creator to have the user see what they want the user to see. In React, there is React Router, in Rails there is the ‘routes.rb’ file. Today, I’m diving into how to configure urls in Django.

Before getting into it, I do use the terms ‘route’, ‘path’, and ‘url’ pretty interchangeably. They are pretty much the same thing…

Getting asked what recursive functions are when you have no idea can be a bit terrifying.

To put it plain and simple: Recursion is a function that calls itself until a condition is met. Each language has its own syntax for setting it up, but in this post I’ll be using JavaScript as an example and from there it can be easily translated into the language of your choice.

Because reading a basic definition and seeing recursion work are two different things. …

I definitely think one of the great things about programming is that there is always something new to learn. No matter your experience level something can always come along that either is brand new, or better, can make something you know how to do easier. In studying data structures and algorithms I came across the .every() method for JavaScript. It is a method that will test every element in an array to see if it fulfills a certain condition, and it’s a useful tool to know about.

The .every() method returns a boolean, which means it will either return true…

In a previous post, I wrote about a basic overview of the Django framework. Generating a project which encompasses apps. Needless to say, there is much more detail to go in to which brings us to this post. Views or view functions are take in a web request and return a response. Now that response can be a wide variety of things, generally it will show something to the user. View function, or simply shortened to views, are defined in the views.py file of the app directory of your project.

Django also has something called modules which can be imported…

Django is a framework built with the Python programming languages. It’s used to build full scare applications using Python both on the back end and front end. What’s really nice about Django and other frameworks like Rails is that they take care of a lot of the logic for you. Making easier for the programmer to focus on the functionality of the project. However there can be a but of a learning curve when learning a new framework as you need to understand how all the pieces fit together. That’s what will be discussed in this post.

A quick note…

As noted in a previous post, hooks are a great part of the React library. They give extra functionality to functional components and can make life easier for the programmer and therefore the user. Hooks like useState and useEffect are some of the most common ones, but hooks don’t stop there. React lets you create your very own custom hooks to fit whatever needs your application has. Custom hooks are great because they take full advantage of the component based blocks of React and the ability to pass information and logic back and forth. …

If you’re coding, there’s gonna be errors…

Errors aren’t necessarily a bad thing, solving errors means that progress is being made as an application comes together. That doesn’t make errors fun to deal with, and even after the application is finished who knows what some user could do to make the application break in ways never thought of before? This is where the practice of error handling comes into play; creating a plan of action to take care of any unforeseen errors that may happen when users start using a project in the real world. …

If you don’t already know, the basic building blocks of React are known as components. They are chunks of code that can be reused and compiled to make user interfaces or UIs. React is a great language and React Native, a language used for mobile applications, is just as great. However, one complication that comes with any React application as how to pass data from one component to another. This is known as props in React, but what if the component kept getting larger? …

Jas Spencer

Software Engineer in NYC with expertise in Ruby on Rails, JavaScript, and React

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