
By Mehraj H.
The gap between where you are right now and what you want to wear isn’t about money, relationships, or success. It’s all attitude—1% attitude. The top 1% don’t have more hours in a day than you do. They just behave differently. They minimize distractions, concentrate on their desires, and show up every single day—even when they don’t feel irresistible. Success is not about being the most talented or the smartest person in the room. It's almost community. No one is watching, no one is clapping, and the results are not coming fast enough to take pictures. The 1% embody conflict because they recognize growth as outside the most effective comfort zone. Think of a bamboo tree. You water and feed it every day for years and don’t take advantage of any signs of growth you see. Then suddenly, it quickly explodes. All of that was building strong foundations. Your small daily efforts make paintings the same way—they combine to create explosives time and time again. Key Truths About the 1% Mindset: Failure is not always the end—notes and practice. The model is second to none. The right time is now. Take responsibility. No one is coming to save you. Train yourself, work, and keep moving forward. You have everything to create the lifestyle you need with the interior you want. Stop settling for “right enough." Choose to be a part of the 1%. Let's start today. Build a taller shelter. Press it a little more. Never give up. The journey will not be easy, but it will be worth it. You got this!

By Mehraj H.
Today I want to share a very simple but important topic – SOLID Design Principles.
If you work with OOP (in React, Node.js, or any other language), these 5 principles can really help you.
What is SOLID?
SOLID is a short name for 5 design principles.
They help us write code that is easier to understand, easier to change, and easier to maintain.
When did it come?
In the early 2000s, Robert C. Martin (Uncle Bob) talked about these principles. Later, they were grouped and named SOLID.
Why was it introduced?
Back then, code was often messy and fragile.
A small change in one place could break the whole system. Testing was hard, and working in teams was difficult.
These 5 principles were introduced to solve those problems.
Why is it important?
When building large applications (especially with MERN or PERN stack),
following SOLID helps:
Reduce bugs
Add new features easily
Keep code understandable even after a long time
Make teamwork smoother
From my own experience, following these principles makes refactoring much easier later.
Let’s quickly understand the 5 principles:
1. S – Single Responsibility Principle
A class should have only one responsibility.
Simple: One class = one job
Example: Don’t mix user registration and sending welcome emails in the same class.
2. O – Open-Closed Principle
Classes should be open for extension, but closed for modification.
That means you can add new features without changing existing code.
3. L – Liskov Substitution Principle
A child class should be able to replace its parent class without breaking the app.
Simple: Use inheritance properly.
4. I – Interface Segregation Principle
Don’t create large interfaces.
Instead, create smaller, specific ones so you don’t have unnecessary code.
5. D – Dependency Inversion Principle
High-level modules should not depend on low-level modules.
Both should depend on abstractions.
This is the main idea behind dependency injection, which we often use in React (Context) or Node (Service Layer).
Following these 5 rules helps you write cleaner code and makes your project easier to manage in the future.
How much do you follow SOLID in your projects?
Which principle helps you the most? Let me know in the comments 👇
By Mehraj H.
If you’ve worked with frontend development, you’ve probably heard that the real DOM is slow. But how slow is it really? And what’s happening behind the scenes when we manipulate it?
Let’s explore the truth behind the DOM and why modern frameworks talk so much about optimizing it.
The DOM (Document Object Model) is a tree-like structure that represents the entire web page. Every HTML element is a node in this tree—think of it like a map of everything visible in your browser.
When you use JavaScript to change something on a webpage (like adding a class, updating text, or removing an element), you’re manipulating the DOM.
It’s not that the DOM is poorly designed—it’s just not built for rapid, large-scale updates. Here's why performance can suffer:
Reflow and Repaint Costs
When you make changes (like modifying styles or layout), the browser often has to:
Recalculate layout (Reflow)
Redraw pixels (Repaint) These are expensive operations, especially when done frequently or in large batches.
Synchronous Updates
DOM manipulations are often synchronous. That means updating multiple elements one by one can block the main thread, making the UI feel sluggish.
Direct Interaction with UI
You're changing what's actually rendered on the screen. Every little change can potentially trigger layout recalculations and affect the entire tree.
Here’s what typically happens when you manipulate the real DOM:
You run some JS code
For example: element.style.color = 'red'.
DOM Tree is updated
The browser updates the internal representation of that element.
Layout is recalculated
The browser figures out how this change affects the page layout.
Paint and Composite
The browser repaints the changed pixels and composites the layers to render the updated view.
Each of these steps takes time—and they can add up fast if you're making lots of changes.
Frameworks like React introduced the Virtual DOM to work around these issues. Instead of touching the real DOM directly:
Changes are made in a virtual copy of the DOM.
Then React calculates the minimal set of changes needed.
Finally, it updates the real DOM in a batch, avoiding unnecessary work.
It’s not slow by default, but it can become a bottleneck when overused or misused. The key takeaway:
Small, infrequent updates? Real DOM is fine.
Large, dynamic UIs? Consider tools that help optimize DOM interactions.
Understanding how the DOM works under the hood helps you write smarter, faster front-end code—even without a framework.