r/softwareengineer • • 8h ago

Lesson learned: Putting AI in the driver's seat

45 Upvotes

I'm a software engineer, and I was experimenting with AI while building a side project.

Initially, I chose the tech stack and reviewed almost every piece of code generated by AI. Over time, I became more confident in AI's capabilities and gradually stopped reviewing the code myself. Instead, I focused on whether the actual requirements were being implemented and relied on AI code reviews.

After almost two months without proper manual code reviews, I casually decided to look at the codebase.

I was shocked by what I found.

Unnecessary complexity everywhere.

Too many comments explaining things that shouldn't have been complicated in the first place.

Multiple database tables created for relatively simple requirements.

Token consumption going through the roof.

Increasingly difficult to work with smaller-tier models.

Endless AI review comments followed by expensive remediation cycles.

AI subscription costs going up significantly.

Application performance degrading over time.

Even the test cases were a problem. I asked AI to generate proper test coverage, but eventually, the test code became larger than the actual implementation.

I was primarily using Claude. To regain control of the repository, I also subscribed to Codex and Gemini and used them to review and simplify the codebase.

I started removing features that I never actually needed. Many of those features existed simply because AI suggested them and could implement them easily.

Thankfully, I didn't have any paying customers yet. Otherwise, this could have been a much bigger problem.

Lessons learned

Never blindly trust an AI agent. Its confidence doesn't guarantee the quality of its implementation.

The developer must always be in control. AI can write the code, but architectural and technical decisions should remain with the developer.

Don't add features just because AI can implement them. Every feature comes with maintenance and operational costs.

Question AI recommendations. Some of the recommendations that sound like improvements can introduce unnecessary complexity.

Keep reviewing the code. AI code reviews are useful, but they are not a replacement for understanding your own codebase.

Set a strict AI budget. If subscription and token costs keep increasing, question the return brutally. Be your own CFO.

My biggest takeaway: AI has made implementation incredibly easy, but maintaining control over the software has become even more important.

Have others experienced something similar? How do you ensure AI-assisted development doesn't turn into AI-managed technical debt?


r/softwareengineer • • 15h ago

Me siento vacío

4 Upvotes

Hace unos años, me encantaba crear proyectos para la comunidad; ahora me siento bastante mal porque, desde enero de este año, no he podido se me ocurra ninguna idea. ¿A alguien más le ha pasado una situación así? ¿Cómo la resolviste?

Además, he intentado aprender nuevos lenguajes de programación, pero pierdo el interés después de como una semana. También he estado trabajando ejercicios en plataformas como Codewars o LeetCode, y me siento súper vacío e idiota cuando no puedo resolverlos.


r/softwareengineer • • 1h ago

Salary Expectations

1 Upvotes

I am a full stack developer with 5 years of experience. I work for a small company in Leeds, UK.

What sort of salary can I reasonably ask for from my employers? I've looked into the average salary for engineers in my position, but I'm not sure how that has been affected by the current state of the industry.

Thanks in advance!


r/softwareengineer • • 2h ago

Uber trip validation

1 Upvotes

Guys we are having this uber for business and facing issue for validating the trips used by employees, and I am supposed to come with an idea to get over this , currently I'm thinking of making a web app, any suggestions???


r/softwareengineer • • 7h ago

You added caching to improve performance. But what happens when the cache expires?

0 Upvotes

Caching is one of the most common ways to improve performance. But implementing a cache doesn't automatically mean your system is protected from performance issues.

One of the common problems is Cache Thundering Herd (Cache Stampede).

Imagine a frequently accessed cache entry expires. Hundreds or thousands of concurrent requests suddenly try to retrieve the same data from the backend, potentially overwhelming it and causing a spike in latency, CPU, and resource consumption.

There are several mechanisms to mitigate this:

  1. Cache Locking (Single-Flight)

Allow only one request to refresh an expired cache entry while other requests wait for the result.

2. Stale-While-Revalidate

Continue serving the stale cached value while refreshing it in the background.

3. TTL Jitter

Randomize cache expiration times to prevent large numbers of entries from expiring simultaneously.

4. Probabilistic Early Expiration

Refresh cache entries probabilistically before they expire, spreading refresh operations over time.

5. Background Refresh / Prewarming

Refresh frequently accessed entries proactively before they expire.

6. Stale Fallback

If the backend is unavailable or the refresh fails, serve an expired value for a limited period instead of failing the request, when the data allows it.

Caching can significantly improve performance, but it can also introduce a new bottleneck if it isn't designed to handle concurrency, expiration, and backend failures properly.

Caching scenarios should be part of your performance test strategy. Test not only with a warm cache, but also cache expiration, cache misses, and concurrent refresh scenarios to understand how your application behaves under pressure.

The takeaway for performance engineers: Don't just load test your application with a warm cache. Test what happens when your cache expires under load.