Posts

How to Write Quality Code: A Practical Guide for Developers

As a software developer with 4 years of experience and having reviewed countless codebases, I’ve observed a pattern of common mistakes that developers—both new and seasoned—tend to make. Through this blog, I’m sharing insights and best practices I’ve learned from real-world projects to help you write clean, maintainable, and scalable code. Whether you're just starting out or already deep in your career, these principles will help you write code that others (and your future self) will thank you for. Whether you’re a fresh developer just getting your hands dirty or a seasoned engineer juggling legacy systems, one principle stays true: Code is read more than it is written . Writing clean, quality code isn't just about impressing code reviewers—it's about building maintainable, scalable, and reliable software. Here's how and why you should care. Why Quality Code Matters Save Time & Sanity Ever had to explain your old code to teammates—or worse, yourself? Clean code mini...

Luxury Color Palettes

Image
Luxury Color Palettes Classic Elegance: Colors: #2E4053, #BFC9CA, #AAB7B8, #D5D8DC, #F1C40F   Rustic Radiance: Colors: #7E102C, #E1D4C1, #D7A9A8, #58423F, #E1D3CC   Azure Allure: Colors: #1A5276, #2980B9, #85C1E9, #F7DC6F, #D4AC0D Violet Velvet: Colors: #4A235A, #6C3483, #A569BD, #E8DAEF, #F4ECF7 Emerald Essence: Colors: #0D2B1D, #345635, #6B8F71, #AEC3B0, #E3EFD3   Blush Balance: Colors: #443737, #987284, #D5AA9F, #E8D5B7, #F4E1D2   Sunset Sophistication: Colors: #3E2723, #D4A373, #8D6E63, #FFE0B2, #FFF3E0   Champagne Chic: Colors: #2B1C10, #987284, #6E493A, #E1D4C1, #F4E1D2   Amber Ambiance: Colors: #804E27, #BF7D3A, #F7CA79, #383838, #F4E1D2   Neutral Nudes: Colors: #6E6658, #B2B0A1, #F5ECE6, #A9A7A0, #E6DDD7   Earthen Luxe: Colors: #0A0908, #22333B, #EAE0D5, #C6AC8E, #5E503F   Noir Chic: Colors: #1E1E1E, #595959, #A6A6A6, #D0D0D0, #F1EFEF   Mocha Medley: Colors: #332820, #5A4D40, #D5AA9F, #D0C6BD, #EFEDEA  

Setup & CRUD PostgreSQL, Nodejs as backend

What is PostgreSQL PostgreSQL, or Postgres, is a free, open-source relational database system that competes with MySQL, SQL Server, and MariaDB. Since 1997, it has been known for its reliability, flexibility, and compliance with standards, making it a popular choice for developers and companies. What is node-postgres? Node-postgres (pg) is a non-blocking PostgreSQL client for Node.js, providing a set of modules to interact with PostgreSQL databases. It supports features like callbacks, promises, async/await, connection pooling, prepared statements, cursors, advanced type parsing, and C/C++ bindings. Install PostgreSQL Installer Windows Installer   For Mac:  brew install postgresql To start services brew services start postgresql ==> Successfully started `postgresql@14` (label: homebrew.mxcl.postgresql@14) To stop services brew services stop postgresql ==> Successfully stopped `postgresql@14` (label: homebrew.mxcl.postgresql@14) Connect to Postgres’s  psql postg...