Select Page

Update database with Fluent API approach

  public Book book(Long bookId, Book book) { return bookRepository.findById(bookId). map(foundBook -> { foundBook.setName(book.getName()); foundBook.setDescription(book.getDescription()); foundBook.setImageUrl(book.getImageUrl()); return...

Thread Communication in Java

Interthread communication in Java package org.example; public class ThreadCommunication { private static final int DATA_SIZE = 1000; public static void main(String[] args) { //common channel for producing and consuming data Channel channel = new Channel(); Producer...

Dependency Injection Summary

Summary of dependency injection in Spring Boot. All the necessary dependencies are handed over to the object by spring. It frees the object from resolving the dependencies. It greatly simplifies the code and improves code reusability. It promotes programming to...

Spring Annotations and Component Scanning

Best practices for defining components and scanning them Annotate the class by including the exact place where to scan for components with @ComponentScan({"com.app.service"," com.app.repo"}) rather than providing a path like @ComponentScan("com") or...

Various description of Big O – Time complexity algorithms

Understanding the time complexity of Big O and log. O(log N) means time goes up linearly while the n goes up exponentially. So if it takes 1 second to compute 10 elements, it will take 2 seconds to compute 100 elements, 3 seconds to compute 1000 elements, and so on....

Update database with Fluent API approach

  public Book book(Long bookId, Book book) { return bookRepository.findById(bookId). map(foundBook -> { foundBook.setName(book.getName()); foundBook.setDescription(book.getDescription()); foundBook.setImageUrl(book.getImageUrl()); return...

Thread Communication in Java

Interthread communication in Java package org.example; public class ThreadCommunication { private static final int DATA_SIZE = 1000; public static void main(String[] args) { //common channel for producing and consuming data Channel channel = new Channel(); Producer...

Dependency Injection Summary

Summary of dependency injection in Spring Boot. All the necessary dependencies are handed over to the object by spring. It frees the object from resolving the dependencies. It greatly simplifies the code and improves code reusability. It promotes programming to...

Spring Annotations and Component Scanning

Best practices for defining components and scanning them Annotate the class by including the exact place where to scan for components with @ComponentScan({"com.app.service"," com.app.repo"}) rather than providing a path like @ComponentScan("com") or...

Various description of Big O – Time complexity algorithms

Understanding the time complexity of Big O and log. O(log N) means time goes up linearly while the n goes up exponentially. So if it takes 1 second to compute 10 elements, it will take 2 seconds to compute 100 elements, 3 seconds to compute 1000 elements, and so on....

Let’s Build Something

Have an Idea? Send me a message.


Buddhi Bal Thapa

Professional software developer with the ability to work on both the front-end and back-end.

Domain Name Registration

Email Services

DigitalOcean Referral Badge