Difference Between Let vs Const in TypeScript

When to Use let and const Variable in TypeScript

When declaring variables in TypeScript, you have three variables: let, const, and var. Understanding these variables is crucial for writing clean, maintainable, and error-free TypeScript code. In this tutorial, we’ll focus on the difference between let vs const in TypeScript, and when to use each one. Understand the let Variable in TypeScript The let the … Read more >>

Difference Between Record vs Object in TypeScript

Difference Between Record vs Object in TypeScript

TypeScript is a powerful language that builds on JavaScript by adding static type definitions. This feature helps developers catch errors early and ensures that their code is more predictable and maintainable. Among the many types available in TypeScript, understanding the difference between Record and Object is essential for every TypeScript developer. This tutorial will learn … Read more >>

How to Get Tomorrow’s Date in TypeScript

calculate tomorrow's date in typescript

While building a minor feature in our internal HR tool, I had to show the date for the next day based on user actions. Since we’re using TypeScript for the frontend, I looked into a few clean and reliable ways to calculate tomorrow’s date. In this tutorial, I’ll explain how to get tomorrow’s date in … Read more >>

Difference Between Enums vs String Literal Unions in TypeScript

TypeScript Enums vs Types Explained with Examples

When working with TypeScript, developers often need to reuse the methods or variables in many places or need clear labels. In TypeScript, String literal unions are simple and best for one-time use cases, and Enums give more structure and are useful when the options are reused in many places or need clear labels. Use string … Read more >>

How to Compare Dates Without Time in TypeScript

compare Dates Without Time in TypeScript

Recently, while working on a TypeScript feature for an internal tool, I needed to compare two dates, but only the date part, not the time. At first, I thought it would be straightforward, but I realised there are multiple ways to do it, and the results can vary depending on the method used. I tried … Read more >>

Read CSV to Dictionary Using Pandas in Python

pandas csv to dict

Working with CSV files is a common task in data analysis and manipulation. While Pandas DataFrames are great for most operations, sometimes you need to convert your CSV data into a Python dictionary for specific use cases. In my decade-plus experience as a Python developer, I’ve found that knowing how to transform CSV data into … Read more >>

Convert DataFrame To NumPy Array Without Index in Python

DataFrame To NumPy Array

While I was working on a machine learning project, I needed to feed my pandas DataFrame into a model that required NumPy arrays. The challenge was that I needed to convert the DataFrame to a NumPy array without including the index values, as they would skew my model’s predictions. While pandas DataFrames are great for … Read more >>

How to Drop Header Row of Pandas DataFrame?

pandas remove header

When working with data in Pandas, I often encounter situations where the CSV or Excel file I import already has a header row that I don’t want to include in my DataFrame. Other times, I need to remove the column names entirely for specific data processing requirements. In this article, I’ll show you several easy … Read more >>

Create Plots Using Pandas Crosstab() in Python

pandas crosstab

When I was working on a data analysis project, I needed to visualize the relationship between two categorical variables in my dataset. The challenge was finding an efficient way to both tabulate and visualize this relationship in one go. That’s when pandas’ crosstab() function came to my rescue. In this article, I’ll show you how … Read more >>

51 Python Programs

51 PYTHON PROGRAMS PDF FREE

Download a FREE PDF (112 Pages) Containing 51 Useful Python Programs.

pyython developer roadmap

Aspiring to be a Python developer?

Download a FREE PDF on how to become a Python developer.

Let’s be friends

Be the first to know about sales and special discounts.