Gui Ferreira
banner
guiferreira.me
Gui Ferreira
@guiferreira.me
Minimalist Software Craftsman
▶️ YouTube: http://youtube.com/@gui.ferreira
Ⓜ️ Microsoft MVP
TL;DR: Complexity often comes from blind persistence. Step back, rethink, leverage your tools, and simplify.
November 12, 2025 at 9:05 AM
Moment of frustration = opportunity to learn. Don't get trapped by sunk time or "just finish it" thinking.
November 12, 2025 at 9:05 AM
Sometimes the solution is already in the tools you have but haven't considered. Start fresh, explore your options, simplify.
November 12, 2025 at 9:05 AM
The key lesson: when you feel the task getting too complex, stop. Step back. Ask yourself: "Is there a simpler way?"
November 12, 2025 at 9:05 AM
Index checks, conditional logic, string concatenation… suddenly you're deep in edge cases like "extra comma at the end".
November 12, 2025 at 9:05 AM
Example: printing names of length 4, uppercase, comma-separated. Sounds trivial, right? But step-by-step, small decisions pile up.
November 12, 2025 at 9:05 AM

Lesson: Before adding complexity, check if the platform has already solved your problem for you.

#developer #coding #programming
November 10, 2025 at 9:05 AM

The browser does the hard work:

- Supports AVIF? → loads AVIF
- Doesn't? → falls back to WebP
- Still in the past? → falls back to JPEG

✨ Result: 40% smaller payloads, higher Lighthouse scores, with no infrastructure complexity.
November 10, 2025 at 9:05 AM
I haven't found a definitive answer, but it looks definitive to me.

Honestly, I would prefer a standard upgrade to the old package.
November 7, 2025 at 10:18 AM
Next time you start a new project or refactor an existing one, check your tests, global usings can save you hours of repetitive work. Most IDEs can even automate this for you: highlight a 'using' → convert to global using. ⚡
November 7, 2025 at 9:05 AM
The result? Your test files are smaller, easier to read, and you reduce the risk of typos or missing references. All in minutes, zero risk. ✅
November 7, 2025 at 9:05 AM
With global usings, you declare those common namespaces ONCE, and they're available in all files. No more clutter at the top of every file.
November 7, 2025 at 9:05 AM
Typically, test files repeat references to your domain, core, or testing frameworks (`Xunit`, `Moq`, etc.). It's tedious and adds boilerplate.
November 7, 2025 at 9:05 AM
Lesson?

Don't let your developer's tunnel vision push you towards complex solutions.

Step outside your comfort zone → sometimes the most straightforward fix is the best.
November 5, 2025 at 9:05 AM
Switching formats cut my payload by 40%.

No infra changes.

No new tools.

No complexity.
November 5, 2025 at 9:05 AM
👉 Enter WebP & AVIF

- WebP: ~30% smaller than JPEG
- AVIF: up to 50% smaller (with no visible quality loss)
November 5, 2025 at 9:05 AM
I was still serving JPEGs and PNGs like it was 2015.

Even compressed, they’re no longer optimal.
November 5, 2025 at 9:05 AM
When I rebuilt my site, Lighthouse flagged performance issues.

My instinct? "I need a CDN or smarter caching."

But the root cause wasn't infra. It was… images.
November 5, 2025 at 9:05 AM