Full-duplex communication over a single TCP connection.

Artist’s rendition.

If you’ve spent much time in the field of web development, you have likely heard the term ‘web socket’ before. In this article, I will be diving into exactly what a web socket is, why it’s important and how to implement some simple uses of a web socket inside an application.

My first experience using web sockets was in an app I built during a web development boot camp. The app was our introduction to the JavaScript framework React, and simulated a scheduler for making interview appointments. At first, the app handled updates…


What is the stack and how is it used in JavaScript? And how does it relate to Magic: the Gathering?

The stack in computer science is like the stack in Magic the Gathering, whoa!
The stack in computer science is like the stack in Magic the Gathering, whoa!
Whoa.

As an avid player of the massively popular card game Magic: the Gathering, I was already familiar with a concept known as “the stack” in a context outside of computer programming. When I heard the stack mentioned by a lecturer one day during my web development boot camp at Lighthouse Labs, I thought “oh hey, I’ve heard of that before.” Little did I know how similar the concepts were in both Magic and computing.

So, what is “the stack”? In Magic, it is the process by which spells (summoning magical creatures, casting fireballs, manipulating time, raising the dead, invoking nature…

Pascal van Leeuwen

Full Stack Web Dev Student @ Lighthouse Labs — Vancouver, BC

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