Nullish Coalescing (??) vs Logical OR (||) Operator in TypeScript

TypeScript Null Coalese operator

In TypeScript, there are two operators that can be used for handling default values: the nullish coalescing operator (??) and the logical OR operator (||). While they may seem similar at first glance, they have key differences in their behavior. In this tutorial, we’ll learn about the nullish coalescing operator and the logical OR operator … Read more >>

TypeScript Record vs Object Explained with Real Examples

TypeScript Record vs Object

While working on a TypeScript project, you want to store some data, like a list of user roles and their permissions. Now you are not sure whether to use a Record or a normal Object. This can be confusing for many developers. Knowing the difference between Record and Object will help you choose the right … 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 >>

Attributeerror: Module ‘tensorflow’ has no attribute ‘logging’

module 'tensorflow' has no attribute 'logging'

Recently, I was working on a machine learning project using TensorFlow when I encountered an error that stopped me in my tracks: “AttributeError: Module ‘tensorflow’ has no attribute ‘logging’“. This error usually occurs when attempting to access TensorFlow’s logging functionality that may not exist in your current version or has been relocated. In this article, … Read more >>

How to Fix Module ‘TensorFlow’ has no attribute ‘session’

module 'tensorflow' has no attribute 'session'

Recently, I worked on a deep learning project for a client in New York who needed an image classification model. After setting up my environment and installing TensorFlow 2.x, I ran into an error that many Python developers face: AttributeError: Module ‘tensorflow’ has no attribute ‘session’. This error can be very frustrating, especially when following … Read more >>

How to Fix Attributeerror: Module ‘keras.backend’ has no attribute ‘get_session’

attributeerror module 'keras._tf_keras.keras.backend' has no attribute 'set_session'

Recently, while working on a deep learning project using TensorFlow and Keras, I encountered an error that’s quite common among developers transitioning from TensorFlow 1.x to 2.x: AttributeError: module ‘keras.backend’ has no attribute ‘get_session’. This error occurs when your code is trying to access the get_session() method that existed in TensorFlow 1.x but has been … 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.