Python Turtle Art: Create Beautiful Graphics

python art code

Recently, I was working on a project where I needed to create some visual elements for a Python workshop. The goal was to engage beginners with something creative and fun. That’s when I revisited the Turtle module, a simple yet useful graphics library built into Python. In this article, I’ll share some of my favorite … Read more >>

Python Turtle Write Function

python turtle write text position

Recently, I was working on a Python project where I needed to add text to my turtle graphics. The issue is, many beginners don’t realize how useful the turtle.write() function can be used for adding labels, scores, and instructions to their graphics. In this article, I’ll cover several simple ways you can use the write … Read more >>

Python Turtle Speed: Animation Speed

turtle speed python

Recently, I was working on a Python Turtle graphics project where I needed to control how fast the animations were running. The issue is, getting the right speed can make a huge difference in how your turtle graphics appear to users. In this article, I’ll cover everything you need to know about controlling the speed … Read more >>

Build Snake Game in Python Using Turtle Module

turtle snake

Recently, I was helping my nephew learn Python programming, and I wanted to create something that would keep him engaged and excited. What better way than creating a classic Snake game? Using Python’s Turtle module, we can easily build this nostalgic game that many of us played on our old Nokia phones. In this tutorial, … Read more >>

How to Iterate Over Objects in TypeScript?

Object Iteration in Typescript form data

Recently, while working on a TypeScript form, I needed to go through form fields that had different keys each time. The form wasn’t fixed, so I needed a flexible way to handle the data, but I still wanted to use TypeScript’s type safety. In this short tutorial, I’ll show you how to use Object.entries() to … Read more >>

TypeScript If-Else Conditional Logic

If else with multiple conditions in TypeScript

Recently, I was working on a project where I needed to implement complex conditional logic in TypeScript. After years of using JavaScript, I’ve found that TypeScript’s type system makes if-else statements much more powerful and reliable. In this blog, I’ll explain different ways to use TypeScript’s if-else conditional logic, along with practical examples that go … Read more >>

Initialize Maps in TypeScript

Initializing Maps in TypeScript

I was working on a TypeScript project where I had to store and retrieve user settings based on different keys. Using plain objects was not sufficient, especially when I needed keys that weren’t just strings. Then I used Map objects, and with this I was able to store data using different types of keys, keep … Read more >>

How to Compare Dates in TypeScript?

Custom Date Comparison Types in TypeScript

I was working on a TypeScript project where I had to compare two dates to check which one was earlier. First, I attempted to do it by comparing two numbers, but it didn’t work as expected. It has issues with time zones, different formats, and even errors with the time part of the date. Later, … Read more >>

Conditionally Add Property to Object in TypeScript

Add property to dynamic form in TypeScript

When working with TypeScript applications, especially in real-world scenarios like dynamic forms or conditional configurations, there are times when you need to build objects based on user input or business logic. For example, I encountered this while developing a property management app for a client, where not every listing had a garage, pool, or parking … Read more >>

Dynamically Access Object Properties by String in TypeScript

TypeScript Methods to Access Object Properties

Recently, I was working on a dynamic form in a TypeScript project, and the form fields were not fixed. In form, the field names were coming from user input. With this, it is difficult to update the form values because I didn’t know the exact property names in advance. As a solution, I used a … Read more >>