Look at the title picture, I bet your const variables are as bendy as this red pipe. Learn all the actions to seal your const declared objects and properties in JavaScript to make it immutable!
To create real constants, the use of the const keyword is not sufficient. Instead, you need to define objects and arrays as immutable using the right functions. When you want to use nested objects and prototypes, consider this as a special case. We can achieve the desired effects with JavaScript’s on-board tools, even if they are sometimes complex and tedious to use.
Looking at…
The release of ES2020 wasn’t long ago, but additional features are already in the pipeline, just waiting to get released. The TC39 working group handles the adoption of these features into the new version of the ECMAScript standard. This article brings you features that are already in Stage4 of TC39. TC39 provides the following stages:
Stage 0: Strawperson:
TC39 members may propose any idea, change, or addition that has not been previously proposed (or previously rejected in its entirety).
Stage 1: Proposal:
A proposal is created by a TC39 member. It describes a concrete problem and an associated solution.
Stage…
Picking the right game engine can be confusing. Even therefore, it is essential to inform yourself about the options beforehand. Developing a game takes time. If you waste your time with the wrong game engine, you probably won’t even start the game or in the long run, won’t be able to finish it. I made this mistake myself. I didn’t inform myself, and when I decided to develop a game, I couldn’t even code. Luckily, I picked the right engine and released some projects later on. …
JavaScript has changed over the years, that is a fact. And it has changed enormously during the last decade. A significant change brought ECMAScript2015, also known as ECMAScript6 (ES6). Since then, once a year a new ECMAScript has been released. But when most of you know the big changes, do you also know about the little things? The things that are also worthy to be looked at? In this article, I will introduce you to them.
This wasn’t a game changer, but it has its right to exist, because of its high practicability.
ECMA2016 made you able to use the…
There is a simple way of profiting from TypeScript, especially in project-based operations. When migrating isn’t an option or has already questioned but didn’t get any Yes or No as an answer. Migrating from JavaScript to TypeScript means also problems can occur such as code incompatibility on some occasions or not experienced enough coders to migrate the project or the fact that your project depends on Microsoft then.
However, TypeScript is a superset of JavaScript, which makes it easy to migrate JavaScript to TypeScript. This means all written TypeScript code is valid JavaScript (JS) code. It is a false belief…
In today’s world, we as developers have to work at a high level of abstraction and make important decisions at every step in our daily work. Deciding repeatedly can be exhausting. Being a coder means also dealing with various aspects and processes of software development continuously. Sometimes simultaneously. Whether it’s integrating DevOps approaches to orchestrate a CI/CD pipeline or programming in different languages depending on the client and server technologies being used.
Every step lets developers face new fundamental questions. Is it wise to start with the frontend development? Or do we better start with the backend? Could we also…
You are familiar with the following scenario, I am sure. There is a list of plenty of tasks, just waiting for you to accomplish. You’ve written them all down and chose a date to get the goddamn list done.
On that specific day — You are happy to have accomplished at least a few tasks. But how could that happen? You ask yourself. Then you remember the phone was ringing and a few emails popped up. The pop-up made you curious. Did you work in an office? …
A closer look at the mRNA patent reveals an incredible technology safe for human use
Introduction
In this article, we are going to have a closer look at the mRNA technology used for Moderna’s SARS-CoV-2 vaccine. We are going to decode the sequence disclosed by Moderna’s patent and go through it bit by bit. We are going to learn the basics of our genetic code and why an mRNA vaccine is effective and safe for human use.
Wait — I said we are going to decode a sequence — why so? Overall the vaccine is a liquid that gets injected…
If you are going to develop your software with an object-oriented programming language like C# or Java. The moment will come when you have to think about decoupling components. Hitting up the google search engine and eventually, you are going to find a term called Dependency Injection or in short terms DI. [1] [2]
One typical example would be a logger or a database component that has to be changed in an existing coding project. …
You know the DOM (Document Object Model) but do you also know the BOM (Browser Object Model)? It is related to the DOM but is less well known. Using the Browser Object Model means accessing the properties of the web browser.
In general, the BOM has a root object called window-object with several subordinate objects, with which various functions of a web browser, such as the navigation, are accessible. Giving the full list of objects: navigator-object, location-object, document-object, screen-object, and the history-object. Also, information about the browser itself can be queried. …
Software development and spreading adventurous knowledge is my passion! https://bit.ly/3hpJOFG