Lovepreet S (Java Experts) ☁️ Profile picture
★ Sr Backend Developer | 9+ years Experience ★ Sharing my experience via tweets & threads ★ Explains complex concepts
Kolusu_Trinadh Profile picture 1 subscribed
Aug 3, 2023 9 tweets 2 min read
6 Effective error handling in Java:

Discover the best practices and strategies to ensure smooth sailing in our Java applications! 🚀🔍 Image TL;DR

-Functional Approach
-Defensive programming
-Graceful Degradation
-Avoid Swallowing Exceptions
-Fail with Reasonable Messages
-Handle Resource Cleanup with try-with-resources
Aug 1, 2023 9 tweets 2 min read
10 Important Clean Code Principles in Java

Because messy code is bad for both your application and your career.

Benefits of Clear and concise code
- improve code quality
- reduce technical debt
- enhance collaboration
- easy to read, maintain, and understand TL;DR

-Dependency Inversion Principle (DIP)
-KISS
- Meaningful Names
-DRY (Don't Repeat Yourself)
-Liskov Substitution Principle (LSP)
-Avoid Magic Numbers and Strings
-Keep Methods Short and Focused
-Interface Segregation Principle (ISP)
-Use Enums and Constants
-OCP Principle
Jul 19, 2023 8 tweets 3 min read
5 Important Multithreading design patters that I have learned to become more confident when working with multithreaded applications.

I felt working with multithreading extremely difficult before learning these multithreading design patterns. TL;DR

- Shared-exclusive lock
- Thread Pool
- Observer Pattern
- Thread-Safe Singleton
- Producer-Consumer
Jul 17, 2023 8 tweets 1 min read
Multithreading is popular : But what is multithreading Lets understand what is it? 🚀🧵 #Multithreading #BackendDevelopment What is Multithreading? 🤔

At its core, multithreading enables a program to execute multiple tasks concurrently, making the most of modern processors' power. 🚀🔥

It empowers the programmer to write parallel Java programs, which makes their applications faster and more scalable
May 30, 2023 10 tweets 2 min read
It is always critical to select the appropriate NOSQL database for the job.

Choosing a NoSQL database can be challenging at first. Let's figure out where to put which.. 🎯📚

Cassandra, MongoDB, or Redis? The determining factor of NOSQL databases.

CAP: CAP is a theorem that we must first comprehend before proceeding.
Availability (A)
Consistency (C)
Partition Tolerance (P)

We cannot get all cap attributes in the same nosql database; we must settle for two out of three.
May 11, 2023 9 tweets 2 min read
Are you still using REST for all your API needs? It might be time to consider gRPC. Check out this thread to see why.

Rest Vs gRPC REST and gRPC are two well-liked methods for creating APIs. But what are the key differences between them? Here are some points to help you understand

REST is a more established and commonly used protocol, whereas gRPC is a modern, high-performance framework created by Google.
May 9, 2023 5 tweets 2 min read
If you're a developer looking to level up your skills and land your dream job, these three GitHub repos are a must-see

3 Github repos will aid in your interview preparation and logic learning. 1. The Algorithms

You need to see these implementations of algorithms in various languages.

When implementing any code, algorithms are a need. Learning algorithms will broaden your perspective and help you come up with better solutions.

github.com/TheAlgorithms
Mar 30, 2023 9 tweets 3 min read
Have you ever heard of Java creating & compiling code on the fly (while running) ?

Lets learn proxy pattern with example code

Important and powerful tool to learn. Most of the framework use this concept including SPRING What is proxy object?

It is design pattern that provide an proxy object which act as real object.
It receives the request, acts upon it, and then passes the request's to actual object for further action.
Mar 27, 2023 14 tweets 4 min read
Lets learn Kafka and its internals :

Ever wonder how online videos streaming app manages this load of receiving numerous likes and comments at once? What is Kafka?

Kafka is a distributed messaging system used to send large amounts of data quickly. A publish-subscribe messaging mechanism is involved.

If you don't comprehend much of it, don't worry. Let's first understand the idea of a messaging system.
Mar 9, 2023 9 tweets 2 min read
Exploring serverless architecture: the key to building more efficient backend systems.

All you need to know about #serverless You may have heard the phrase "server less" more than once.

Lets learn
- What it is?
- Why it is called Servers?
- How does it works?
- Example?
- why it is important to learn serverless?
Mar 8, 2023 4 tweets 2 min read
Lets learn about cherry-pick

Even if you think you understand Git well, there are still a few unknown or hidden commands that could be useful

A Thread 🧵: Context:

Let's suppose you accidentally commit changes to the incorrect branch while working on a commit

You must either make the changes to the right branch again or soft reset and stash the changes to ship it to other branch

However, to solve this cherry-pick is solution
Feb 17, 2023 6 tweets 2 min read
5 Github repos that will help you learn backend development in 2023:

Practice projects 1/ Java Spring project

Concept to learn
+ Java restfull microservice
+ Practice project to learn how to develop service

github.com/mariazevedo88/…
Feb 11, 2023 12 tweets 2 min read
Become a backend development master: the key skills you need to know: 1/ Backend Programming language:

A must know thing to be backend development
+ Java
+ Python
+ Javascript
+ GO

Hacker rank report 2023
Feb 6, 2023 7 tweets 2 min read
2023's must-read book list for backend development: 1/ Clean Code by Robert C. Martin (Uncle Bob) - Beginner

Writing code is not only the job of the backend engineer; writing the best code is.

This book will show you how to make tiny adjustments to a system to prevent major problems.
Feb 1, 2023 11 tweets 2 min read
Choosing right Database: An important decision for Backend Engineer:

Here is all you need to know: 1/ Why to learn to choose database for application?

For Software engineer its very important to know which tool to use where according to use case
+ which language to use
+ which infra to use
+ what db to use

Every database is having its own pros and cons
Lets understand:
Jan 17, 2023 7 tweets 2 min read
Everything you need to know about Server side caching and its usage: What is caching?
Caching is a mechanism for saving most queried data into a temporary storage system; enabling speedy and simple data queries.

Due to large sized disks; Simple storage systems take time to access the queried data
Aug 20, 2022 8 tweets 2 min read
A Roadmap to become JAVA backend developer.

🧵👇 1. Core Java

Core Java is Java's building blocks and learning the core concepts are crucial to construct complex software applications.
a. Java basics
b. Oops Concept
c. Collections
d. Thread in Java
and more basic concepts.