Photo by Edgar Chaparro on Unsplash

In this article, I will share 22 JavaScript snippets that solve practical problems — problems that you will probably encounter in your daily life coding.

This snippet is very useful when you want to sort an array quickly without writing a long sorting function, by using JavaScipt built-in sort method.

const months = ['March', 'Jan', 'Feb', 'Dec'];
const numbers = [5, 7, 1, 0, 13, 10]
console.log(months); //["Dec", "Feb", "Jan", "March"]
console.log(numbers); //[0, 1, 10, 13, 5, 7]

This useful code snippet will count the occurrences of each element of the array. …

Learn how to write Bubble, Insertion, Merge, and Quick Sort Algorithms in Python

sorting algorithm in python
sorting algorithm in python

Sorting is considered to be an important algorithm in programming that helps us to locate the data faster and in an easy manner.

In this article, we will use a sorting algorithm to sort our array and learn how they are working. To make this article short and full of knowledge we will go through the top 5 sorting algorithms. Following are the sorting algorithms I’m going to focus on in this article.

  • Bubble Sort
  • Insertion Sort.
  • Merge Sort.
  • Quick Sort

Bubble Sort

Bubble Sort is a simple sorting algorithm that compares two adjacent elements and swaps them if they are not…

Extract Text, Tables, Images from PDF Files, and much more to learn in this article

In this article, I will show you how you can extract text, tables and images, and other types of data from PDF documents using Python PDF Libraries.

PDF documents are the file formats that we need daily and sometimes we need to edit and extract some useful data from them. We choose Python for extraction, editing, and writing PDF because it has a large community and a lot of modules to deal with that format. Below is the context of this article.

Context of the Article:

  • Extracting Text Data
  • Extracting Tables
  • Extracting Images
  • Writing to PDF

Extracting Text:

Python had many libraries that will help us…

15 things you can do to earn money as a programmer

In this article, we are going to see 15 ways to make money through coding. Coding is fun and we can make money with it. But we don’t know how or where to start, what are the ways, the resources involved, etc.

In today's article, we will look at the ways to make money online through coding.

Everything you need to learn to go from zero to hero in Python.

Photo by Hitesh Choudhary on Unsplash

Python Programming language is one of the top-most programming languages in the world and famous among new developers because of its simplicity and ease of understanding. I know you are interested in learning Python but confused about where to start and how to get your hands on it.

Well, in this article, you will learn everything about Python from scratch. We will learn its syntax, features, and statements. We will see multiple examples to understand each concept and syntax.

Visit the Python Site to download the latest version of Python. …

If you are a programmer and not making any money online then you missing a big opportunity

In this article, I will show you 20 ways to make money. You can earn a decent income while learning to code.

I will explain each of the ways and guide you on how you can start earning from that source. Everything depends on you how much effort you put into it. But your dream of earning with your favorite programming language is going to true today.

“Always Cash Your Skills”

Do you know many new beginners around the world who need your help in the programming language you know? You can earn 15$ to 50$ per hour by helping…

A simple tips and guide to making your python code run 10x faster

tips to increase python speed
tips to increase python speed

Python is a powerful and versatile programming language, whether you are working with web app development or data science, this language has covered you. In today's world where Python is becoming the top programming language and can build anything with it. We need speed excretion in running the big codes and programs. As python is an interpreted language and its speed is lower than the other programming languages like C++, Java and etc.

But we can optimize our Code to speed up Python excretion, In this article, I will guide you on how you can optimize your python code and…

tips for javascript
tips for javascript

JavaScript is one of the top programming languages and a favorite language of many developers. You can build a web or mobile hybrid app and it even has the capability to control robots. The language is easy to learn for beginners. But you have some real-life problems to solve in JavaScript. Some of them you can solve and some of them are tricky.

Today, in this article, we will look at 20 tips for better coding to solve problems in a better and easier way in JavaScript. …

Python is no doubt a cool and famous language and every new developer wants to learn it. But to help you learn faster and code like a pro, I made some helpful tips and tricks for beginner programmers. That will help you to code faster, cleaner, and at a pro-level.

There are two types of developers — smart ones and good ones. These tips will make you a smart developer and a quick problem solver. This is more like a Python Tricks Course that you can get benefit from at various levels of difficulty and creativity. …

text to speech in python
text to speech in python

Text to speech converter is a technology used to convert text into human voice generated from the computer. Speech recognition also makes use of artificial intelligence (AI). In this article, I will briefly guide you on the ways to convert text to speech using the Python programming language.

In today's world, Python is the topmost programming language. It can be easily understood and debugged by beginner programmers. And due to its large community, it has a lot of modules that make it popular among programmers.

Getting Started

In this article, we will learn 2 ways to convert text to speech in Python…

Haider Imtiaz

Top Writer, Programmer, UI Designer, Thinker, and Fitness and Health expert ✌️ | Love to write articles on different Programming languages

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