For a long time I used std::map and std::unorderedmap interchangeably, and honestly I couldn't tell you why I picked one over the other. When I finally sat down and learned how they work under the hood — a red-black tree vs a hash table — choosing be...
When you first learn std::uniqueptr, three things confuse almost everyone: release, reset, and std::move. They all look like they "give something up", but they do very different things. This post explains what each one really does, with short example...
These days, I've been learning C++ and have posted some articles about it. Since I started to learn C++ with raw pointers, I naturally hit some common questions: new/delete, manual memory manage, and so on.C++ Traps That Caught Me Off Guard — A Begin...
> Learning C++ has been a journey full of traps. Here are three I hit — hope they save you some debugging time.
🎣 Trap 1: new + deleteinstead of delete
Wrong Code
int a = new int3;
// delete a; ❌ --> undefined
class MyClass{
public:
~MyClass...
> I had heard about backpropagation many times, but I never really understood how it actually worked. When someone asked me what backpropagation was, all I could say was, "It's how neural networks learn… I guess?"
> I'd seen the formulas, I knew the...
!Image descriptionhttps://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/1t3vukgnuk2r4754axw6.png
What's Docker
> Docker is a containerization platform that packages applications with all dependencies into portable utils called containe...
I build a blog API with FastAPI + Redis + MySQL.
Three cache problems almost killed my app.
If you also face these problems!
Here's how I fixed each one.
1. Cache Penetration
What's Cache Penetration?
Cache Penetration refers to a scenario where t...