Spring Framework
Dependency Injection: Why `new` Is Not Always Your Friend
Early in my career, I used the `new` keyword everywhere. `new UserService(new UserRepository(new Database()))`. I thought I was being efficient. Then came…
Stories Worth Reading
PixelProse is your go-to blog for insightful articles on Technology, Travel, Food, Health, Lifestyle, Business, Fashion and Sports. Fresh perspectives. Real stories. Zero fluff.
Results for "dependency injection"
18 articles found
Spring Framework
Early in my career, I used the `new` keyword everywhere. `new UserService(new UserRepository(new Database()))`. I thought I was being efficient. Then came…
AWS
AWS WAF is a web application firewall that helps protect against common exploits. I added it to my CloudFront distribution to block SQL injection and cross…
Security
Security isn't something you add after building a site—it needs to be baked into your development process. Cross-Site Scripting (XSS) remains one of the…
Tools & Setup
Sharing your Python code with others, or even just managing your own projects, requires understanding packaging and dependencies. The standard way is to us…
DevOps
As web projects grow, managing multiple packages, applications, and shared code becomes a significant challenge. Monorepos—single repositories containing…
How to Use Claude
Beyond writing code, Claude is remarkably capable at understanding and analyzing existing codebases. For developers working in complex systems, this analys…
Database
Choosing the right database is one of the most important decisions in web development. SQL databases like PostgreSQL and MySQL store data in structured tab…
Security
Content Security Policy (CSP) is one of the most effective security headers for preventing XSS attacks, yet it remains underutilized. CSP lets you define w…
AI Ethics & Tips
Let's talk about the stuff nobody puts in their "10 ways to master ChatGPT" threads. First: hallucinations. ChatGPT will confidently lie to you. I once as…
Machine Learning
If you’ve ever had a project break because you updated a library, you know the pain. I’ve been there. One day your code runs, the next day you run 'pip…
Environment & Politics
At every global climate summit, all eyes are on India. Why? Because we are the third-largest emitter, and we are a developing country that refuses to accep…
Build Tools
When I graduated from university, I knew how to write Java, but I had no idea how to manage dependencies. I used to download JAR files manually and drop th…
Jobs
Dubai's job market operates differently from most Western economies in ways that catch first-time arrivals off guard. The most important difference is that…
How Claude Works
Using AI tools like Claude raises real ethical questions that thoughtful users should think through. Not all of them have clean answers, but being delibera…
Stack Overflow
Remember that day Stack Overflow went down for a few hours? I do. It was a Tuesday. The office was quiet, except for the sound of productivity grinding to…
React
When React Hooks were introduced in version 16.8, they fundamentally changed how we write React components. The old class-based approach with lifecycle met…
Technology
Robots are steadily moving out of factories and into our homes, taking on tasks that range from mundane to socially complex. The Roomba vacuum cleaner pave…
Personal
I decided to do a digital detox and turn off all my AI agents for a week. I figured it would be liberating. It was a nightmare. I missed three appointments…