Even if you’re strictly a Frontend Developer!

Image for post
Image for post

1. It’s Versatile

Python is great for Web Development offering amazing web frameworks like Django which make it extremely efficient to spin up web applications. However it’s real advantage is its versatility.

The most common use cases for python are data science, data analysis and software engineering, but other use cases for Python include:

2. It’s Popular

Python is the most popular programming language in the world and roughly 30% of all code is written in Python.

This popularity means there is tons of support for it in the form of Python Libraries, Tutorials, and Online Forums. It also means that there is an expectation that veteran programmers are at least familiar with the language. …

One of many rites of passage in the software engineer’s journey

Image for post
Image for post

So you just took your first coding challenge. It’s possible it was a take home type of test, or maybe a whiteboarding exercise, or maybe even a (::shudders::) live coding review. It doesn’t matter the format. Unless you are the most extreme of outliers, at some point in your career you will encounter a challenge that you aren’t able to solve as well as you wanted to. You will inevitably go through the phases of anguish and self-doubt that come with bombing a coding challenge. But fear not, we’ve all been there. In fact, I’m writing this now because about a week ago I bombed the hell out of one for a job I really really wanted. …

And why using OAuth for authentication is not best practice

Authentication vs Authorization

Both words look similar, sound similar, and even can both be abbreviated as “Auth”. However it is a common misunderstanding that these words can be used interchangeably. Heck, even I thought so when I was first learning about the two, and it took me so long to sort the differences out in my head that I decided to write this blog to help others in a similar situation.

So what the heck is the difference??

Authentication - the process of verifying an identity. …

Image for post
Image for post
Cosine Similarity is using the cosine of the angle between two vectors to measure how close they are

Continuing Where We Left Off

If you have not yet completed the steps in Part 1 of setting up a Rails environment and pulling down the data from the API, please go back and read my last article here. Assuming you’ve completed these steps, let's continue on to the next part.

Creating Custom Attribute Values for Each Game

As mentioned in the last article, in this example our four categories for comparison are a game’s:

Using Ruby’s Vector class, and some custom Rails methods

Image for post
Image for post

The Types of Recommendation Systems

There are 2 widely used systems to recommend products to customers, whether that product be physical goods like Amazon sells, television shows or movies like Netflix, or even other user’s profile pages like Facebook.

Collaborative Filtering

Collaborative filtering compares the likes, dislikes, and trends of user’s to match them with other similar users, and then recommend them products based on what the other similar user’s enjoy. For example, if User A watches a bunch of the same Rom-Coms on Netflix as User B, and both users rate them similarly, if User A finds a new show they like, it will then be recommended to User B. This approach has advantages as it allows the system to recommend things to the user that may be completely outside of their normal likes or behavior. …

Using react-dnd

Image for post
Image for post


The drag and drop is one the most basic and important actions a person learns when they are first introduced to a computer with a GUI (Graphical User Interface). The first time I remember performing the action is back on my PC running Windows 95 when I dragged a file over my Trash Bin Icon and dropped it in, effectively deleting the file.

The premise has not changed much since then. At its base simplicity, the steps are as follows:

How to chain methods in JS in order to write concise and readable code.

Image for post
Image for post
Photo by JJ Ying on Unsplash

The Dilemma

Very often when programming, you will have the need to transform a piece of data many times in a row in order to get it to your desired final state. Each of these transformations will be carried out by a specific function/method, and will need to be done in a certain order.

When reading code, generally you read top to bottom, left to right. So if you saw a bit of code that looks like this, your instinct would be to read it like so:

myObject.method1()          <-- read this first
myObject.method2() <-- read this next
myObject.method3() …

Image for post
Image for post
By the end of this you will be a table-searching wizard.

The idea to write this blog came out during my Mod2 Project at Flatiron School, during which my Partner Austin Buhler and I decided to create a Fantasy Football Lineup Optimizer. We built a large pool of NFL Players, and very quickly I realized we had a need to sort and filter this table by multiple attributes, as well as search the table for certain values. Unfortunately, I had no idea how to do this. So began my dive into the world of Tables, HTML, and Rails.

Creating Tables in HTML View Pages

We’ll start by defining our table of NFL Players. Each player has a name attributes, position attribute, and an aggregate ranking. …

Your comprehensive guide to Pry and how to use it .

Image for post
Image for post
Debugging: the process of identifying and removing errors from code

Every programmer has faced a situation where they go to execute their code and get an error message they’re confused by, or even worse, the code runs successfully but nothing is output. This was me, and before I learned about Pry I would do things like combing through my code, line by line, trying to guess where the error could be. I even had a phase of inserting puts statements (puts “The error is here!”) hoping to figure out where the error was originating from. Once I learned about Pry, I never looked back. …


Sean LaFlam

Student at Flatiron School’s Full Stack Development Program

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