Be efficient at work.

Image for post
Image for post
Photo by Andrew Neel on Unsplash

As a programmer, I need to become efficient with my workflow to increase my productivity. For that, I use a variety of tools. Today I’ll be talking about my five most used chrome extensions. These extensions helped me to get the job done with less effort.

In this post, I’m going to list and cover some basic operations of five Chrome Extensions. These tools will help you save valuable time and ship code faster.

Did you ever wonder about the tech stack of any website? Well, Wappalyzer is here to save the day! You can use it to analyze the tech stack of any website. …


Using Heroku and Vercel

Image for post
Image for post
Photo by Daria Obymaha from Pexels

Unlike traditional systems, serverless computing can scale down to zero. That means you only have to pay for the computing resources you use. Vercel is one of many platforms that offer serverless runtimes, also known as function as a service (FaaS). You can use these functions to build a serverless backend for your entire application.

Often we need data to power our applications, and a database can solve that problem. PostgreSQL is an open-source object-relational database and popular for its reliability and performance. …


Let the infrastructure do the heavy lifting.

Image for post
Image for post
Photo by Christina Morillo from Pexels

Vercel is a platform that provides serverless runtimes, also known as function as a service (FaaS). But why do I need to go serverless? Well, there are no straight forward answers if you need to go serverless or not. Generally, serverless functions are scalable with no maintenance. Moreover, you’re only running the function when you need them.

I’ve been using serverless functions as API endpoints. I’m intrigued by the characteristics of serverless functions. For example, I don’t have to worry about the infrastructure; instead, I can focus on the problem. From this post, you’ll learn how to deploy a python serverless function to Vercel. …


Learn about the world’s most advanced open-source relational database

Image for post
Image for post
Photo by Marco Pregnolato on Unsplash

Heroku is a cloud platform to build, deploy, monitor, and scale applications. It supports a wide range of programming languages, including Ruby, Java, Python, and many more. On top of that, you can add many add-ons to your app. Heroku Postgres is one of them that supports PostgreSQL.

You can connect to PostgreSQL database using the command line or a graphical interface. For the latter purpose, we can use pgadmin4. It’s an open-source administration and development tool for PostgreSQL.

From this post, you’ll learn how to create a Heroku app with a Heroku Postgres add-on. After that, we will run pgadmin4 in our local machine using Docker. …


Run PostgreSQL with ease

Image for post
Image for post
Photo by ELEVATE from Pexels

PostgreSQL has been around for over 30 years. It was first developed in 1986 as part of the POSTGRES project at the University of California at Berkeley. Now it is the world’s most advanced open-source relational database. Running PostgreSQL on different machines can be challenging, but Docker makes it easier. From this post, you’ll learn how to run PostgreSQL inside a Docker container.

As a programmer or data scientist, you have to work with databases at some point in your career. Since Docker has become a popular DevOps tool in recent years, you may have to use PostgreSQL with Docker. …


Learn about one of the most powerful data structures

Image for post
Image for post
Photo by cottonbro from Pexels

Ruby offers built-in data structures like Array and Hash. In this post, I’ll explore the basics of Ruby hash and its related methods. So what is a hash, anyway? A hash is a collection of key-value pairs. It is very similar to an array, but the value of the key (index) is not limited to an integer value; it can be of any object type: a string, a symbol, etc.

The underlying mechanisms of the hash data structure are fascinating. It allows us to read, write, and find value in constant times. In other words, the time complexity of these operations is O(1). Time-efficient data structures are critical to solving problems, and you must know how to use them properly to maximize their potential. From this post, you’ll learn how to add, remove, and find values. …


Efficiently manage your data by saving valuable time

Image for post
Image for post
Photo by cottonbro from Pexels

A system that allows us to store and organize data is called a data structure. There are many data structures in computer science, such as an array, hash, stack, etc. Depending on the problem, an optimal data structure and algorithm is selected to maximize performance. For example, we can choose an array as the data structure and Quicksort as the algorithm to sort numbers efficiently.

Generally, arrays are used to store a list of values, like to store 10 temperature readings from 10 sensors, and the values are accessed via their index value. The dimension of the previous example is 1D. If we want to store the sensor’s id along with the temperature readings, we can use a 2D array. In ruby, arrays are used to store collections of any object, and these objects are integer-indexed. …


Focus on your code, not infrastructure

Image for post
Image for post
Photo by Joshua Fuller on Unsplash

I came to know about Vercel while researching serverless functions. As you have already guessed, it supports serverless functions along with static sites. You can deploy your project from GitHub, GitLab, or Bitbucket, and Vercel will deploy that to production for every push.

Serverless functions are fun to use because, as a developer, you don’t have to worry about the infrastructure, such as provisioning, scaling, and maintaining the server. All you have to care about is the code itself! A platform like Vercel gives the power to the developers to write code for serverless functions by doing all the hard work. Currently, Vercel supports Node.js, Go, Python, and Ruby. …


MySQL administration made easy with Docker

Image for post
Image for post
Photo by bongkarn thanyakij from Pexels and Guillaume Bolduc on Unsplash

Managing a MySQL server using the command-line interface can be difficult for many people. It becomes a lot easier when we can work with a graphical interface. The database administration tool phpMyAdmin solves that problem. We can use this tool over a web interface. It supports MySQL and MariaDB with a wide variety of operations, such as import data, export data, execution of SQL statements, and many more.

We will use Docker for our setup because running and managing phpMyAdmin on a different machine can be nerve-wracking for environment management. Docker solves this problem by using its containerization technology, which uses Docker images. Previously, I’ve discussed how to run MySQL using Docker. …


Every line of code you don’t write is a line of code you don’t have to maintain

Image for post
Image for post
Photo by Kevin Ku from Pexels

I first learned about the str.downcase method when I started to use Ruby around two years back, and I’ve used it to compare two Strings every day since I discovered it. Ever since then, I’ve come across several other methods. I wanted to compile my favorites here — these are the best for streamlining code.

String manipulation is a task programmers do every day. It varies from cleaning to formatting the data to analyzing Strings. You may end up adopting one, many, or all of the following methods depending on your needs.

In this post, I’ll discuss 17 effective String methods provided by Ruby String class, which will make your life easier by saving valuable time. …

About

Mahbub Zaman

Computer Engineer. One day I’ll write a book. github.com/lifeparticle

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