Hello World! Today I’m about to share my notes and thoughts about
Node.js applications. I hope you will find it useful and create
Dockerfile, which will suit all your needs.
If you are here it means, that you have faced
Docker before, but to be sure that we are on the same page let’s remind what it is.
So, there are no secrets —
Dockerfile is an instruction of how our image will be built. Step by step, layer by layer this file describes how our image will look like.
Okay, so another question — what is an…
Today’s article will be useful for front-end developers who want their code to be type-safe and more readable. I would like to show you how you can wrap different browser APIs to have better control of the situation. For instance, I will use
LocalStorage is browser storage that is used to store data across browser sessions. It isn’t a big deal to work with
localStorage. It has a pretty simple interface:
OK, you may ask, “Why do we need any wrapper at all since it has such a simple interface?” …
Hello World! Today I’m gonna tell you about
singleton. As a basis, I’ll take my previous article on this topic. So, if you miss some part of the code, or something is unclear — please check the first part.
From the previous article or from your background you may know that
axios is one of the most popular libraries to make an HTTP request. It can be used both on a client and server side. It provides some tools to reduce the amount of code, make it clear and readable. One of such tools is
axios.create to create…
Hello World! Today I want to share with you my notes regarding React Hooks. I believe that since the 16.8 version of React, when Hooks were introduced, everyone has had a chance to get to know them. I also believe that this article will help you to get on really well with Hooks.
Each section will have:
Ok, let’s not waste any more time!
My suggestion is…
Unless you are hiding under the rock, I am sure you’ve heard about COVID-19 and how much it influences our lives. It changed everything, starting from the way we clean our hands to health insurance policies.
Health is our top priority and now, as never before, it is necessary to take care of yourself and all your closest people. That is why, please, stay home unless you have an emergency or your toilet paper supply goes to the end.
Fortunately, health insurance companies in the USA help people with that.
All major and small Health Insurance Providers responded to COVID-19…
Hello, world! Let me share some tips on how to boost your regular
axios-instance to something powerful.
For client-side, you can use old-school
XMLHttpRequest (please don’t do that), or modern the
fetch based on
For server-side, the Node.js module
https is always available for you.
Nevertheless, most of us use libraries and one of the most popular is
The first step for achieving cleaner code is an instance of…
Today I want to share some tips with you to improve your projects and make it much easier to maintain. I’m talking about aliases.
If you’ve never heard of aliases you’ll find this section useful.
According to the dictionary, an alias is a name that a person assumes for a particular purpose. We can give aliases to our files or even folders in our project. As usual, more information can be found in the documentation.
Assume we have a folder structure like this:
Hello, world! Today I want to share with you some cool stuff that may help you in your work or at least to show off knowledge during an interview.
Our example will be pretty simple, but it will help you change your paradigm regarding this topic.
For instance, you may face a problem when you have to separate each letter in a word and maybe put…
First of all, for your understanding and knowledge. To get the full picture of how something works, write it yourself.
Secondly, to write cleaner code. We’ll give you a real example.
Last but not least: you might be asked to write your own small and simple
EventEmitter in an interview — it would be nice to be prepared!
Let’s start with the documentation. The Node.js documentation answers all the questions you may have but, like much documentation, it’s a bit complicated. That’s why you may want a quick guide.
As I mentioned, we’re going to use ES6 Classes.
Full Stack Developer