If you don’t know what functions are, they are blocks of code designed to perform a particular task.
For example, you may have one function that’s sole purpose is to add 2 numbers together. This function will take in parameters and may look like the following:
But what do we do if we want to add 2 or 3 or maybe even 100 numbers together?
Do we have to create a separate function for every single possibility?
Luckily, we don’t have to!
Because of the arguments object…
Using Dynamic UI in your Web and Mobile Apps
If you are building a web or mobile app, it is likely you have some degree of dynamic elements in your app.
What makes part of your app dynamic, you may ask?
If a part of your app changes based on some external factor, this means that part of the app is dynamic in nature.
For example, let’s say you have a counter app with three parts: An increment button, a decrement button, and text that displays the current count.
In this case, the dynamic part of the app is the…
The path I would take if I had to do it all over again.
when I first started learning computer science
Without a doubt. I believe CS50x is a great course for anybody who wishes to step into the magic that is computer science.
Taught by David. J Malan, a professor of computer science at Harvard, CS50x is a great course to introduce you to the basics of computer science.
In the course, you will learn about Arrays, Algothrims, Data structures. The most important part of the course isn’t even what’s taught by how it’s taught.
Professor Malan teaches the…
If you aspire to be a full-stack developer you will run into HTTP requests sooner or later. HTTP requests are critical in understanding how an application communicates with the server. In this article, I will go give a brief overview of HTTP requests and 4 common types of HTTP requests.
Before we get into the 4 different types of HTTP requests we must first understand what an HTTP request is.
An HTTP request is a way to structure requests and responses over a given URL. …
Understanding what middleware is and why you need it
If you wish to become a master in node.js and express it is critical that you understand the basics of middleware in the express. Without learning what middleware is, you are stunting your journey as a fluent Node.js and Express developer.
To understand middleware in express we must first understand how vanilla Node.js handles requests to the server.
In node.js requests to the server are handled by one function that handles all requests made to the server. Look at the code below taken from the node.js website:
Extensions that will make your life as a developer better.
Chrome extensions can be the key to making your life easier as a developer. In this article, I'm going to share 7 extensions I feel will add real value to your life as a developer.
This first Chrome extension is perfect if you like a font from a particular website but have no clue what it is.
This extension allows you to see all the fonts used on a website and provides some useful information in regards to font weight and font style.
There is also a built-in editor that…
When I was first starting to learn Node.js and express it was very intimidating as all the tutorials I saw had me building medium to large scale applications. In this tutorial, we're gonna keep it simple and build a basic server that sends “Hello World!” when the server is started.
Before we start our journey as a Node.js developer. We must first do some initial project setup
All we need to do for this is initialize npm in our project and install express into our app. The code for this is shown below:
npm init allows…
Everything you need to know about Stacks.
Understanding data structures is important for any developer, regardless of the stack. That is why in this article I'm going to go over one of these data structures. The Stack.
While I have gone over what a Stack is in my article 4 Data Structures every Developer should know. I’m gonna provide a quick refresher on the fundamental concepts.
A Stack is like a Queue but with one subtle difference. While a Queue follows the concept of first in first out (FIFO) the Stack follows the concept of last in first out( LIFO)!
How to make a Queue Data Structure using TypeScript
No matter what type of developer you are, frontend or backend, it is important to have basic knowledge of the different types of data structures out there and their use cases. Today was going to be going over one of these said data structures. The Queue.
While I have gone over what a Queue is in my article 4 Data Structures every Developer should know I'm gonna provide a quick refresher on the fundamental concepts.
A Queue is a data structure that follows the principle of first in first out (FIFO)…