C++ Namespaces and Using Directives
Use C++ namespaces to organize code: nested namespaces, anonymous namespaces, using-declarations, and why using namespace std is dangerous in headers.
·3 min read · #cpp#namespaces#using
4 posts · page 1 of 1
Use C++ namespaces to organize code: nested namespaces, anonymous namespaces, using-declarations, and why using namespace std is dangerous in headers.
Clear rules for using checked and unchecked exceptions in Java, with patterns for wrapping, logging, and propagating errors in real production code.
Use Java's Optional type correctly: when to return it, when to avoid it, and how to chain operations safely without ever calling get().
A field guide to the most common prompt engineering anti-patterns, why they degrade LLM output quality, and concrete refactors that fix each one.