“Code is like humor. When you have to explain it, it’s bad.”
by Cory House

We’re all different — from different cultures and backgrounds. One can describe a thing completely different for others. If every developer follows the practices he/she feels convenient with then you may even identify the code written by a particular developer (known as the DNA of the code).

But as as we all know, software development is not a single person’s job, there is always a Team effort involved. Thus keeping a defined naming convention is a MUST. Selecting the proper name for a function or…

My goal with this blog post is to leave you with NO excuse for not defining a commit message convention for your team. I’m going to explain the reasons why you should define a git commit message convention, and share detailed instructions to help you move this task from your “to-do” list to “done” in a few simple steps!

Why use a commit message convention?

A well-organized commit message history leads to more readable messages that are easy to follow when looking through the project history.

Better collaboration

  • Foster transparency by communicate the nature of changes in your codebase to a variety of audience: existing teammates, future contributors…

Source code is for developers, not for computers. The computer only cares about 1s and 0s. And there’s nearly an infinite number of programs that could produce the same sequence of 1s and 0s. We write source code so that we can understand and reason about our code and our tasks in a meaningful and accurate way

Until ES5, variables were function scoped, i.e. a variable declared inside a function with a var keyword is visible throughout the scope of the function.
Also this enabled variables to be visible inside functions defined in the same scope.

ES6 specification added two…

JSX is a very popular choice nowadays for templating in various frameworks, not just in React. However, what if you don’t like it, or have a project where you want to avoid* using it, or just curious how you can write your React code without it? The simplest answer is — Yes, there are various alternatives to JSX. Let's explore them one by one in this article.

*Disclaimer: Personally, I like JSX and use it in all my projects with React. However, I researched this topic for a bit and would like to share my findings.

JSX — What & How?

Before we jump into…

The way you have overridden styles is great, may be just add a tip on doing the same while using styled components. Useful blog :)

Easy guide to understand and remember closures in JavaScript

Closures in JavaScript are one of those concepts that many struggle to get their heads around and more importantly to recall it in the future. In the following post, I will explain in clear terms what closure is, and relate it to a real world example making it easier to remember.

How I remember closures in my head is fairly simple — Legacy! I will explain why and how in detail further in this article and by the time you are done reading with this post — you will remember it forever 😄

What is a closure?

A closure is a feature in JavaScript…

Change the behaviour and appearance of your app without publishing an app update, at no cost, for unlimited daily active users. This technique is called as Remote Configuration and Firebase with a lot of features also provide Remote Config.

If you’re not familiar with Firebase Remote Config use-cases and how it can help you save weeks/months effort — you may consider reading Exploring Firebase Remote Config.

In this article we will be exploring the most simple yet sophisticated use-case of Firebase Remote Config: Switch for a crisis time — As we all know crisis break out at the least expected…

Awesome piece on React Navigation 5! Especially now that React Navigation 5 doesn't support saving nav state in redux - A better understanding and clean usage is important! Thanks!! I am going to extend this piece using Firebase Remote Config!

How do you communicate with your team about proposed code changes?

Chore, Spikes, Features & Bugs
Chore, Spikes, Features & Bugs
Chore, Spikes, Features & Bugs

One of the most critical roles we play as developers is to clearly communicate with our team. When a change or addition is proposed to a codebase as a developer, I want the team members who review the code to understand what I was trying to achieve with that work. As a code reviewer, I want those who propose code changes to explain their changes and let me know me how to test the code.

Both GitHub or GitLab offer the ability to enable “templates” for proposed code changes

There are many ways available to do the same task, all we are looking for is — How to do it the right way?

Lodash makes JavaScript easier by taking the hassle out of working with arrays, numbers, objects, strings, etc. It provides many functional utilities that can keep your yard green and clean. There are sometimes multiple options available to do the same thing — _.get and _.result functions at core gets the value at path of object.

Do we really understand the difference between the two? Let’s explore them in detail! 👀

get( object, path, [defaultValue] )

Gets the value at path of…

Apurva Jain

Full stack developer with expertise in JavaScript and React. On my radar: #travel #technology #sports #health

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