Web Assembly is a low-level language meant to be fast, secure and reliable. Today most Browser vendors can run Web Assembly at an incredible speed. C/C++ can compile to a WASM file then you can run the code on the browser near-native speed. We can take existing C/C++ code and run it on the web. For instance, OpenCV is a C++ library targeting real-time computer vision. It is available on the browser, and the speed at which it is running is affordable for web users. …
Today I want to show you how a Singly Linked List looks in Typescript. Of course, there are many ways of doing it. Sometimes it can vary in just a few lines of code, but others are a completely different thing that has the same functionality.
The advantage of creating a Singly Linked List is that we can create a generic data structure. With a generic data structure, we can narrow the kind of data that will be stored in the container. In other words, we have the option to parameterized types.
To begin with, Let’s create the…
A Single linked list is a way to store a list of values in the RAM of the computer. The internal structure of a Linked List consists of interconnected nodes, each node stores a single value and a link to reach the next value. Commonly, the last value of a Linked List is the null value to indicate the end of the list.
- The value store for each node could be anything: a number, string, boolean, symbol, another list…
Hi, this is Angel.
In this lecture, we will focus on the Query Type and how to pass extra information to queries, for example, to filter the data that is exposed by the server, limit the amount of data sent by the server, get or drop data if a condition is met, among other things. But, first, let’s learn how to create new types to the Schema.
Imagine that you have an array of objects, and every object looks like the following JSON string:
To load this data into the server we should:
Hi, this is Angel.
In this lecture, we will create a server using Graphql and Nodejs. To begin with, let’s respond to the following questions.
What is Graphql?
What is SDL?
What is ApolloServer?
A literal is a specific value stored in the computer in a specific format. We can store numbers, text, specific characters, a list of values like a shopping list, and many other things. Each one has its own format and size. Depending on the literal there is a set of operations we can perform on it. If you have numbers, you can add, subtract, and apply many mathematical operations on these number literals. If you have text, you can search for specific information, replace some sentences for some other text, count the number of words, etc. If you have booleans…
Let’s create a new function that will convert an integer number into a list of the binary digits that represents the number. Also, we will check alternative syntaxes for our code.
To start with, I am going to create a function called “tobinary” that will accept just one parameter which is going to be the number to be transformed to its binary representation. The data type of this number could be int or str if the number is a string we will transform it to the integer type. …
Let us start creating little bits of software.
In this episode, we are going to create a function to add two numbers. To perform this task we must take into account a few concepts: