Mastering C++ Lifecycle: RAII, Destructors, Static Initialization, Rule of 5.
When does this die?
}.delete (or smart pointer drop) occurs.| Issue | Design Question |
| ------------------ | ------------------------------------------------------------------- |
| Resource Leak | Did you manually open() without a wrapper class? |
| Use After Free | Did you capture a reference to a local variable in a lambda/thread? |
| Static Fiasco | Do statics depend on each other? (Use Meyers Singleton). |
Does it have a destructor?
Does it copy?
FILE* cannot copy. Delete copy constructor.| Pattern | Use Case |
| ---------------- | ------------------------------------------ |
| RAII Wrapper | FileHandle, LockGuard. |
| Scope Guard | std::scope_exit (Cleanup callback). |
| Rule of 5 | Copy/Move/Destructor implementation logic. |
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer