When it clicks, it clicks, it clicks, it clicks, it clicks….

Recursion can be a difficult topic for some early developers to pick-up on the fly. For me, that was definitely the case. It seems simple enough, but it takes most devs a couple of times learning the topic to have a strong grasp on it. Hopefully, this article can put recursion in the simplest of terms.

Recursion Defined

Recursion is a process (in our case a function) that calls on itself. Recursion functions continue to call on themselves over, and over, and over again until the conditional statement tells the original function to stop. …

Taking your JavaScript code to the professional level

While JavaScript comes with its flaws the dev community loves to harp on, I still think it is the most versatile language to learn how to code in. It’s your best tool to communicate with your browser, and power the brain of the internet.

TypeScript takes all the fun out of software development by removing all of your bugs before compilation, so there’s no bother learning it. You may as well just go learn Java or C++ instead. -A waste of a comment

The above quote is intended to be a little humor. TypeScript is an incredibly powerful subset of JavaScript. More and more companies are migrating their entire JavaScript code base to TypeScript, and soon, it is my prediction that people will learn TypeScript before even learning vanilla JS. It was first released by Microsoft in 2012, and has grown in popularity ever since. …

An introduction into React Hooks — the useState & useEffect hooks

When first learning React, I almost always kept my components as Classes. It was the easiest way to learn state, how to set state, and pass down props to different components throughout my applications. Now that I have spent several weeks using React and building multiple projects, I am making more and more attempts to keep all my components functional. To do this, and if you want to use state (which is the power of React), you need to become familiar with hooks.

useState Hook:

Below is the most simple representation of a counter component, which allows the user to increase or decrease a count with two…

D.R.E.A.M: Data Rules Everything Around Me. Get the data, analytics, analytics y’all

The more data an application successfully incorporates (and makes good use of) the better. Of course, someone could pile in terabytes of data to something and call it a day, but if it’s not used effectively, the data is almost useless. This writing intends to cover the first step of that process — incorporating data into your app. Many developers incorporate data using HTTP requests directly from their apps, but what if those requests aren’t readily available to the developer? Or you’re concerned the API may be deprecated one day. What if your data comes only in an Excel or CSV format and is not currently accessible over the web? What if the developer wants to internally structure the API in a different format than its original source? …

Everyone’s first step to landing that dev role: becoming decent(or awesome!) at code challenges

When I first started to do code challenges on Code Wars, I really struggled. I found it difficult to solve problems when I was still in the process of nailing down basic syntax structure of languages. Now that I have some more of the basic functionality of programming secured, code challenges can still be challenging when you see them at first but seem a little more manageable. Below are some of the problems I’ve worked on lately, with some commentary.

Sum a number

The first one I’ll discuss is a simple sum a number. The reason I’m choosing this problem first as I think it has great commentary on Big O. Big O if you aren’t familiar is a practice used to mathematically calculate how long and how much space your algorithm takes to return a value. Since so much of programming is about efficiency, calculating how much time it takes for your function to run should always be on-top-of-mind for any programmer. It may be okay if it only takes 1-second for your computer to sort an array with 100 values, but wouldn’t it be a problem for the end-user if all of sudden it started to take 10+ seconds because the array grew to 1 million values? …

React Leaflet paired with Mapbox API is a powerful package which may provide for a more robust alternative to Google Maps React

While not a seasoned pro at either, I have tried both React-Leaflet and Google-Maps-React for two React projects I have worked on.

Each of the packages come with their own pros and cons. Google Maps was pretty easy to get up and going, however, I did try a couple of tutorials and guides that didn’t really work great. My guess was that may be due to the fact that there is a Google-Maps-React package, and there is a React-Google-Maps package (and they are different packages).

Mostly all of the React-Leaflet guides were spot on. It’s also very light-weight (114kbs!). Google Maps React does have a basemap that mostly everyone on the planet knows and loves (Google Maps with Imagery and StreetView), but React-Leaflet is more customizable. …

Now that your environment is setup, time to write some code!

For part one of setting up a Django API, please head over here:

The first part of setting up your API is setting up your classes within the models.py file. One of the coolest parts about Django Restframework is using the built in Auth model (a User Model). To use this, first run the following command:

pip3 install djangorestframework_simplejwt

There is also a djangorestframework-jwt package that is pretty similar, but I have preferred using the simple auth package. To use this package, you will also need to add the following to the bottom of your settings.py …

Part I: Environment Setup

Starting any new language or framework can be intimidating. Breathe.

“I’m sure everything I learned in Ruby/Rails will immediately transfer over and apply directly to Django/Python.” — said no one ever

You never realize how much you get for free with Active Record and Rails until you start a new backend framework. After completing my capstone project, I learned:has_many and belongs_to are some of the most powerful code blocks on the planet. Those two lines in a Rails relationship model provide for so many connections throughout your database. …

My first full-stack web app.

For my second project at the Flatiron School, I was able to build my first full-stack web app. My partner Kelsey and I used FDA food recalls from api.data.gov. It was a powerful experience to see full communication between our front-end and back-end, as well as see the power of paired-programing.

Backend Library Setup

Kelsey and I decided to download the FDA’s data directly as opposed to using Rest-Client and creating an API-end point. We’ve used Rest-client before with success, but thought we would have more control of our data set going this route. The database is populated with over 20,000 records. The data is only ~3.5 …

Last week I developed first app — a CLI application using Ruby. While not much, I was proud I was able to develop my first project under such a short amount of time.

The Happy Trails app was built in my third week in Flatiron School’s software immersive program. The majority of the project was built with a partner, where we worked on our pair-coding techniques together. Pair-coding is a technique used which tries to combine both coder’s brain functions simultaneously (one partner is the driver while the other directs). …

Elliott Stein

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