In-built memoization in Python with @functools.lru_cache()Memoization, in computer programming, is essentially an optimization technique wherein return values from a function are memorized/stored in a cache so that they don’t have to be computed again when required. Memoization makes your code faster and he...9 min read·dev-diaries.hashnode.devJun 16, 2024
Angular @ViewChild with DOM Elements and Asynchronous DataAngular @ViewChild Error: Cannot read properties of undefined (reading 'nativeElement') how to solve? The Problem with @ViewChild and asynchronous data.4 min read·dev-diaries.hashnode.devJan 14, 2024
Useful git commands to keep in your toolbelt - Part 1Often when working on projects, it’s always a good idea to have feature branches for each repository. As priorities change while working and bugs are reported, there is a possibility that you might have to work on something while some work was alread...3 min read·dev-diaries.hashnode.devMar 26, 2023
Spring Data MongoDB: Configuring Secure Connection Between Spring Boot and MongoDB over TLS using CertificatesMongoDB is a widely used NoSQL database for building modern web applications. While the autoconfiguration provided by Spring Boot and Spring Data MongoDB Starters are generous enough to establish connectivity between your microservice and the databas...6 min read·dev-diaries.hashnode.devJun 28, 2022
How to use @RefreshScope with your Datasource for dynamic property updates at runtime?As directed by Spring Boot best practices, configuration properties for Spring Boot apps are externalized via Git, local file system, HashiCorp Vault, etc. However, when these properties are updated in the source itself, they must be delineated to th...3 min read·dev-diaries.hashnode.devJul 4, 2021