Object-Oriented Programming is a design philosophy also known as OOP. Object-Oriented Programming(OOP) uses different sets of programming languages than old procedural programming languages(C, Pascal, etc.)Everything in OOP is grouped as self-sustainable “objects”. Hence you gain reusability by means of OOP concepts.
OOP allows the decomposition of a problem into a number of entities called objects and then builds data and functions around these objects. Data cannot be accessed directly, they are only accessible through the member function. There might be a number of objects in a program written in OOP language. Those objects can communicate with each other by calling…
Storing data in the various storage options is very useful. But it is very difficult to know which storage option is best for a particular use case. So let’s discuss what are the differences between each option.
They all are used to store information on the user’s browser which can be accessed even after navigating to new pages on your site. This data is also saved to the user’s exact browser they are using so if they have your site open in any browser, it will only save the data to that browser on the device they are currently on…
What makes Javascript suitable for functional programming is that it accepts Higher-Order Functions. Higher-Order Functions are extensively used in Javascript.
A higher-order function is a function that receives a function as an argument or returns the function as an output.
Taking other functions as arguments is often referred to as a callback
function because it is called back by the higher-order function. This is a concept that Javascript uses a lot.
For example, .map()
, .filter()
, .reduce()
etc. are the some built-in higher order functions.
So let’s discuss some of the useful built-in higher-order functions in the Javascript.
Let’s look…
Javascript
is one of the popular languages in the market. It is used both in the front-end and back-end development. So part of the reason for this proliferation across the web is for its apparent simplicity — getting started in Javascript can feel quick and easy and starting with basics is a great way to go. However, once you start looking deeper there are a lot of subtleties to Javascript that are easy to overlook.
Everyone makes mistakes, so here are the six most common mistakes that help you to polished your code.
Javascript rules of coercion
can be incredibly…
Git is a distributed version control system (DVCS), also known as decentralized. Git was initially designed and developed by Linus Torvalds for Linus Kernel development. Git is free software distributed under the terms of the GNU General Public License version 2.
Every developer has a full copy of the repository which is hosted in the cloud.
sudo apt-get update
sudo apt-get install git
Download from the official page.
git init [project_name]
git clone [url]
git…
Keep your code readable, changeable, extensible, and maintainable. 😊
The code is clean if it can be understood easily by everyone. Clean Code can be read and enhanced by a developer other than its original author.
The benefits of writing clean code are:
Here are some of my tips for coding standards.
Always use let instead of var because of scoping issues in javascript.
Always use const which stops developers trying to change that shouldn’t and really helps with readability.
Tech Enthusiast | Student