Image for post
Image for post

React Native recently released a new core component called Pressable in version 0.63. As the name suggests, this component can detect the different stages of press or touch interactions. Pressable could potentially be an alternative to older components like TouchableOpacity and TouchableWithoutFeedback.

Disclaimer: I have only played with this new component on sample projects, but haven’t yet integrated it into any of my production applications.

In this article, let’s look at what this new core component can do!

Why this new component?

We have been used to the touchable components in React Native, before the Pressable component was introduced.

Components like TouchableOpacity, TouchableWithoutFeedback, Button, and so on are touchable components that we have used since React Native was released. But these components lack a high precision response to native touch events. …


Image for post
Image for post

ECMAScript is the specification upon which JavaScript is based. And since 2015, it has been evolving year after year, with the addition of features like classes, modules, async/await and many others. And what makes things even better is that today’s browsers add support for new features quickly, with a short time between releases. In this article, you’ll find out what is new in ECMAScript 2020. Have a good read!

GlobalThis

In modern applications, it’s normal to have the same JavaScript code running in multiple environments. It’s also very common to need to access the global object, which, depending on the context, is represented by a different variable. In browsers, you need to use window. Node.js calls it global. In a web worker, it is self. …


Image for post
Image for post

There are times when your app may need to detect the user’s internet connectivity. You may work on an alternate path if the user is offline or has no access to good internet connection. A real world example to this could be one where, your app streams remote videos and needs good internet connection. In case the user doesn’t have internet or a reachable connection you can work on seamlessly letting the user know that the video is unable to stream. This is better than throwing an error, leaving the user confused.

The React Native Network Info API which is part of the react native community repo provides us details on both the connection type and quality of the network. …


Image for post
Image for post

I have been developing React Native apps for the last three years and in this article I am going to describe why developers like React Native and why it is relevant in 2020. You have to take this article with a grain of salt, because it is my personal opinion and comes from my experience using React Native. Of course there are other frameworks and alternatives, but that is out of scope for this article.

Back in 2016, when I started developing React Native apps, it was a whole different world than what it is today. Everything was new, things were not stable and there were lots of problems. …


Image for post
Image for post

Dealing with data types is a common task in basically any programming language, be it dynamic or static, weakly typed or strongly typed. JavaScript is no exception. Have you ever needed to check the type of a variable in JavaScript? If so, you probably found out that some checks can be trickier than what you expect. In this article, we are going to see how to check for several data types in JS. Just keep reading!

Data types and JavaScript

First, let’s briefly discuss the concept of data type, or at least what we mean by data type in this article, in the context of JavaScript. While this concept is historically one of the most debated topics in computer science, our interpretation of data type here is extremely practical and non-academic. In this article, things like objects, arrays (which are objects), functions (also objects), numbers, NaN (which are numbers) and others will be treated as distinct types. So, if you have an academic background or are really strict when it comes to typing systems, relax and don’t take this concept too seriously for now. …


Image for post
Image for post

Do you have an innovative idea that’s going to turn your web app into the next big thing? That’s great — but remember that software development is a process that has to be well-thought-out, and the most critical decision of what backend environment are you going to choose has to be made at the early beginning.

If the project is going to be complex, several aspects will influence it — including many different data sources that are dynamically delivered to server applications and numerous sources of data consumption. So we’re not talking about the classic legacy web applications that have been often built a few years ago anymore. Clients often need apps that use a web application (and often two or three, because there are also admin panels, landing pages, etc.) …


Image for post
Image for post

Every project has its specifications and demands. And when you’re building an application, it’s most important to choose the right technology to code it. We’ll take a look at Python vs. Node.js to learn about their benefits, downsides, and use cases so you can make an educated decision about which one is best suited to your project.

Why Your Tech Stack Choice Matters

You can ask your peers for advice about what technology to choose, Google the answer, or ask developers which technology they prefer. …


Image for post
Image for post

While you’re here to learn C# better, I strongly recommend you to watch my Complete Python Course. Python is super-hot these days. It’s the number one language employers are looking for and gives you 4x more job opportunities than C#.

Finding the right collection in .NET is like finding the right camera in a camera shop! There are so many options to choose from, and each is strong in certain scenarios and weak in others. If looking for a collection in .NET has left you confused, you’re not alone.

In this post, which is the first in the series on .NET collections, I’m going to cover 5 essential collection types that every C# developer must know. These are the collections that you’ll use 80–90% of the time, if not more. In the future posts in this series, I’ll be covering other collection types that are used in special cases, where performance and concurrency are critical. …


Image for post
Image for post

JavaScript has ranked as the most popular language in the world by the StackOverflow survey for the seventh year in a row. With the rising popularity of JavaScript, it is clear that it is the most used language for coding frontend applications. It is interesting to note that visitors to websites, lose interest or leave your website if the content doesn’t load within two seconds. The two seconds benchmark is hard to keep up with and that means you need to optimize your JavaScript code for better performance. In this blog post, we will learn some quick tips that you can follow to keep you JavaScript code concise and improve the overall performance of your application. …


Image for post
Image for post

Have you ever seen three dots (…) in any modern JavaScript code? Do you know that this syntax is used for spread and rest, two different features of JavaScript? In this article, you’ll learn the multiple usages of both features and discover how they can make your code more succinct, readable and elegant.

One syntax, two features

Spread and rest are two different features that were included in EcmaScript 2015.

As we’re gonna see below, we could say that these features behave in opposite ways and, often, can be used as a complement to each other.

Now, let’s check what each one does.

Spread

Before explaining the spread operator, let’s check out an example where it could come in…

About

Mosh Hamedani

Hi! My name is Mosh Hamedani! I am a passionate and pragmatic software engineer with 18 years of professional experience, specializing in full-stack development

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store