Categories
Other

SQL vs NoSQL. A practical explanation like I am 5

SQL vs NoSQL. Yet another “fight” between technologies. We often find, or hear this stuff. Which one is better? Why? When should we use SQL, when NoSQL? How to scale each of those? And a lot more questions. Today, we are going to try to explain each of those questions we have, but in an […]

Categories
JavaScript

JavaScript find method

The JavaScript find method returns the value of the first element in the provided array that satisfies the provided testing function. If no values satisfy the testing function, undefined is returned, as per MDN. This basically means that we need to provide some criteria, in form of, callback, function. Then, an array is iterated and the callback […]

Categories
JavaScript

Validate files in JavaScript easily using these 2 methods

In our last article How to easily upload files using Fetch API? we discussed how we can upload files. In this article, we are going to learn how to validate files before we upload them. In order to be totally on board, we recommend reading the previous article. The first thing we are going to […]

Categories
JavaScript

How to easily upload files using Fetch API?

Every developer comes to a point in a career where he/she needs to upload files to the server. Before, we were using full page reload by providing method and action to our form element. After that AJAX came. We either used jQuery’s $.ajax() API, or Vanilla JS XMLHttpRequest. Today, we have another option and it […]

Categories
JavaScript

Array destructuring – everything we need to know

We already spoke about object destructuring in the article What is object destructuring in JavaScript? Today, we are going to speak about array destructuring. Array destructuring is useful when working with arrays and we want to extract some data. Even React frameworks use this type of array manipulation when working with hooks like useState. The […]

Categories
JavaScript

for of loop in JavaScript

We have already written about loops in JavaScript in the article JavaScript Arrays Loops. Now we will introduce a new one – for of loop. for of loop is similar to forEach loop, but with for of loop we can use break and continue. This is something that makes it even more appealing. The syntax […]

Categories
JavaScript

What is object destructuring in JavaScript?

Object destructuring means: extracting values, by key, from an existing object. Object destructuring was introduced in ES6. Prior to that, when we wanted to extract some values from an object it required a lot of typing. As a result, we had to do additional work, and often this lead to mistakes. One example of extracting […]

Categories
JavaScript

How to use localStorage API

Probably, one of the easiest, to understand, JavaScript APIs is the localStorage API. Also, it is not only simple, but it is pretty effective and straightforward. localStorage is property of window object that allows us to work with Storage. Unlike sessionStorage, localStorage is permanent storage. This means that data will remain intact until we delete […]

Categories
CSS

CSS Positions, the complete guide

If we ever used CSS, chances are that we have used CSS Positions. CSS Positions are one of the pillars for creating layouts, so it is of real importance for us to understand them. Among other things, we use positions for formatting and creating our layout. The position property specifies the type of positioning of […]

Categories
JavaScript

How to use the split method in JavaScript

We have already written about The power of JavaScript slice method which is often confused with the JavaScript split (.split()) method. .split() method is splits a string by certain criteria and returns an array of elements. Let’s start from the beginning. We have a string that we want to split/divide by certain criteria. .split() method […]