How JavaScript Imitates Concurrency and Makes Promises

several traffic lights hanging on a wire giving mixed signals
several traffic lights hanging on a wire giving mixed signals
Where do all of these functions go anyway?

Around mid-bootcamp, we were introduced to , our first asynchronous method. I knew it involved something called a , a chain of , which dealt with the return of promises, and it was all for the sake of allowing other JavaScript code to run in case the network request took a while. Without this feature, the stack could become “blocked” waiting for a longer process to complete and the user would be unable to interact with the website in the meantime. At the time, learning that general pattern to grab JSON data from…


Considerations for even the newest coders in HTML

Dog sitting in front of computer monitors, turned to look at the camera
Dog sitting in front of computer monitors, turned to look at the camera
Photo by on

The web is for everybody. (And maybe some smart pets?) The UN has even decreed that the internet is a . If you are reading this article, you most likely use the internet on a daily, if not hourly or continuous basis. There is very little that cannot be enhanced or improved in some way through the help of the internet. Perhaps it’s comparison shopping, or looking up the weather before an outdoor trip, or finding a job or apartment. …


A short JavaScript primer for the overwhelmed front-end newbie.

illustrated drawing of a person with their head in their hands in front of a laptop
illustrated drawing of a person with their head in their hands in front of a laptop
Image by from

The structure of my Bootcamp had us learning a back-end in Ruby on Rails first, and then we popped right into JavaScript. With Ruby, we had months of legwork in the basics, and with JavaScript, it was oh, about a weekend, followed by a firehose of a week.

We jumped into applying JavaScript to manipulation pretty quickly too, while my brain was still adjusting to the finer points of vs vs vs (Real quick, in the same order: creates a loop, creates a loop through object…


Untangling the polymorphic association, and a teeny tiny bit about Active Storage

Photo by on

One of the beautiful things about the Rails framework is the built-in relationships given to us by . Active Record is a gem that provides Rails’ Object-Relational-Mapping (ORM) functionality. This allows our different models to talk to each other via their relationships by setting them up with the appropriate foreign keys and adding associations like belongs_to and has_many in their class definitions. …


How “params” is generated, used, and is stronger than a plain hash

Image by from

So you’ve gotten started with Ruby and you’re ready to bring your code to life with Rails! You’ve gotten the basics of a (MVC) design down, your are set, and the server’s up and running. The index view was a breeze, but now you’re trying to render a view of a single instance of your model and you recall the standard syntax for that route (for a cat, because, why not):

get ‘cats/:id’, to: ‘cats#show’, as: ‘cat’

Huh, where’s that :id coming from and where…

Diana Liao

Software Engineering student at Flatiron School. I love cats, Star Trek, and social justice.

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