Latest
Modern C++ Development
Cpp Modern This document provides comprehensive guidelines for cpp modern development and best practices. Memory Management RAII RAII (Resource Acquisition Is Initialization) Implement proper raii (resource acquisition is initialization) Follow best practices for optimal results std::unique_ptr std::unique_ptr for exclusive ownership Implement proper std::unique_ptr for exclusive ownership Follow best practices for optimal results std::shared_ptr std::shared_ptr for shared ownership Implement proper std::shared_ptr for shared ownership Follow best practices for optimal results std::weak_ptr std::weak_ptr to break circular references Implement proper std::weak_ptr to break circular references Follow best practices for optimal results Custom Custom deleters and allocators Implement proper custom deleters and allocators Follow best practices for optimal results Template Programming Class Class and function templates Implement proper class and function templates Follow best practices for optimal results Template Template specialization Implement proper template specialization Follow best practices for optimal results SFINAE SFINAE (Substitution Failure Is Not An Error) Implement proper sfinae (substitution failure is not an error) Follow best practices for optimal results Concepts Concepts for template constraints (C++20) Implement proper concepts for template constraints (c++20) Follow best practices for optimal results Variadic Variadic templates Implement proper variadic templates Follow best practices for optimal results Exception Handling Exception Exception safety guarantees Implement proper exception safety guarantees Follow best practices for optimal results RAII RAII for exception safety Implement proper raii for exception safety Follow best practices for optimal results Custom Custom exception types Implement proper custom exception types Follow best practices for optimal results noexcept noexcept specification Implement proper noexcept specification Follow best practices for optimal results Error Error handling strategies Implement proper error handling strategies Follow best practices for optimal results Build Systems CMake CMake for cross-platform builds Implement proper cmake for cross-platform builds Follow best practices for optimal results Package Package management with Conan/vcpkg Implement proper package management with conan/vcpkg Follow best practices for optimal results Static Static analysis integration Implement proper static analysis integration Follow best practices for optimal results Unit Unit testing frameworks (Google Test, Catch2) Implement proper unit testing frameworks (google test, catch2) Follow best practices for optimal results Continuous Continuous integration setup Implement proper continuous integration setup Follow best practices for optimal results Design Patterns RAII RAII wrapper classes Implement proper raii wrapper classes Follow best practices for optimal results Pimpl Pimpl idiom for compilation firewall Implement proper pimpl idiom for compilation firewall Follow best practices for optimal results Factory Factory patterns with smart pointers Implement proper factory patterns with smart pointers Follow best practices for optimal results Observer Observer pattern with std::function Implement proper observer pattern with std::function Follow best practices for optimal results Template Template metaprogramming patterns Implement proper template metaprogramming patterns Follow best practices for optimal results Cross-Platform Development Platform Platform abstraction techniques Implement proper platform abstraction techniques Follow best practices for optimal results Compiler-specific Compiler-specific feature detection Implement proper compiler-specific feature detection Follow best practices for optimal results Cross-compilation Cross-compilation strategies Implement proper cross-compilation strategies Follow best practices for optimal results Library Library portability considerations Implement proper library portability considerations Follow best practices for optimal results Testing Testing on multiple platforms Implement proper testing on multiple platforms Follow best practices for optimal results Testing and Debugging Unit Unit testing best practices Implement proper unit testing best practices Follow best practices for optimal results Mock Mock objects and dependency injection Implement proper mock objects and dependency injection Follow best practices for optimal results Debugging Debugging techniques Implement proper debugging techniques Follow best practices for optimal results Profiling Profiling and performance analysis Implement proper profiling and performance analysis Follow best practices for optimal results Static Static analysis tools Implement proper static analysis tools Follow best practices for optimal results Follow these comprehensive guidelines for successful cpp modern implementation.
Application Performance Optimization
Performance Optimization This document provides comprehensive guidelines for performance optimization development and best practices. JavaScript Optimization Bundle Bundle size reduction techniques Implement proper bundle size reduction techniques Follow best practices for optimal results Tree Tree shaking for unused code elimination Implement proper tree shaking for unused code elimination Follow best practices for optimal results Memory Memory leak prevention Implement proper memory leak prevention Follow best practices for optimal results Event Event delegation patterns Implement proper event delegation patterns Follow best practices for optimal results Debouncing Debouncing and throttling Implement proper debouncing and throttling Follow best practices for optimal results Caching Strategies Browser Browser caching with appropriate headers Implement proper browser caching with appropriate headers Follow best practices for optimal results Service Service worker caching strategies Implement proper service worker caching strategies Follow best practices for optimal results CDN CDN configuration and optimization Implement proper cdn configuration and optimization Follow best practices for optimal results Application-level Application-level caching Implement proper application-level caching Follow best practices for optimal results Database Database query result caching Implement proper database query result caching Follow best practices for optimal results Database Performance Query Query optimization and indexing Implement proper query optimization and indexing Follow best practices for optimal results Connection Connection pooling strategies Implement proper connection pooling strategies Follow best practices for optimal results Database Database schema optimization Implement proper database schema optimization Follow best practices for optimal results Read Read replica configuration Implement proper read replica configuration Follow best practices for optimal results Query Query result caching Implement proper query result caching Follow best practices for optimal results Memory Management Memory Memory leak detection and prevention Implement proper memory leak detection and prevention Follow best practices for optimal results Garbage Garbage collection optimization Implement proper garbage collection optimization Follow best practices for optimal results Object Object pooling patterns Implement proper object pooling patterns Follow best practices for optimal results Memory Memory profiling techniques Implement proper memory profiling techniques Follow best practices for optimal results Resource Resource cleanup strategies Implement proper resource cleanup strategies Follow best practices for optimal results Monitoring & Profiling Application Application performance monitoring (APM) Implement proper application performance monitoring (apm) Follow best practices for optimal results Real Real user monitoring (RUM) Implement proper real user monitoring (rum) Follow best practices for optimal results Synthetic Synthetic monitoring setup Implement proper synthetic monitoring setup Follow best practices for optimal results Performance Performance metrics collection Implement proper performance metrics collection Follow best practices for optimal results Alerting Alerting and incident response Implement proper alerting and incident response Follow best practices for optimal results Cloud Performance Auto-scaling Auto-scaling configuration Implement proper auto-scaling configuration Follow best practices for optimal results Load Load balancer optimization Implement proper load balancer optimization Follow best practices for optimal results CDN CDN edge location optimization Implement proper cdn edge location optimization Follow best practices for optimal results Serverless Serverless cold start optimization Implement proper serverless cold start optimization Follow best practices for optimal results Multi-region Multi-region deployment strategies Implement proper multi-region deployment strategies Follow best practices for optimal results Performance Budgets Setting Setting performance budgets Implement proper setting performance budgets Follow best practices for optimal results Performance Performance budget enforcement Implement proper performance budget enforcement Follow best practices for optimal results Continuous Continuous performance monitoring Implement proper continuous performance monitoring Follow best practices for optimal results Performance Performance regression prevention Implement proper performance regression prevention Follow best practices for optimal results Team Team performance culture Implement proper team performance culture Follow best practices for optimal results Follow these comprehensive guidelines for successful performance optimization implementation.
Redis Caching & Data Store
Redis Caching This document provides comprehensive guidelines for redis caching development and best practices. Data Types & Operations Strings Strings for simple key-value storage Implement proper strings for simple key-value storage Follow best practices for optimal results Lists Lists for queues and stacks Implement proper lists for queues and stacks Follow best practices for optimal results Sets Sets for unique collections Implement proper sets for unique collections Follow best practices for optimal results Sorted Sorted sets for leaderboards Implement proper sorted sets for leaderboards Follow best practices for optimal results Hashes Hashes for object storage Implement proper hashes for object storage Follow best practices for optimal results Session Management User User session storage Implement proper user session storage Follow best practices for optimal results Shopping Shopping cart persistence Implement proper shopping cart persistence Follow best practices for optimal results Authentication Authentication token storage Implement proper authentication token storage Follow best practices for optimal results Session Session clustering across servers Implement proper session clustering across servers Follow best practices for optimal results Session Session security considerations Implement proper session security considerations Follow best practices for optimal results Performance Optimization Connection Connection pooling strategies Implement proper connection pooling strategies Follow best practices for optimal results Pipeline Pipeline operations for bulk commands Implement proper pipeline operations for bulk commands Follow best practices for optimal results Memory Memory optimization techniques Implement proper memory optimization techniques Follow best practices for optimal results Lua Lua scripting for complex operations Implement proper lua scripting for complex operations Follow best practices for optimal results Redis Redis cluster for scalability Implement proper redis cluster for scalability Follow best practices for optimal results High Availability Master-slave Master-slave replication Implement proper master-slave replication Follow best practices for optimal results Redis Redis Sentinel for failover Implement proper redis sentinel for failover Follow best practices for optimal results Redis Redis Cluster for partitioning Implement proper redis cluster for partitioning Follow best practices for optimal results Backup Backup and recovery strategies Implement proper backup and recovery strategies Follow best practices for optimal results Monitoring Monitoring and alerting Implement proper monitoring and alerting Follow best practices for optimal results Application Integration Node.js Node.js Redis clients (ioredis, redis) Implement proper node.js redis clients (ioredis, redis) Follow best practices for optimal results Python Python integration with redis-py Implement proper python integration with redis-py Follow best practices for optimal results Java Java integration with Jedis/Lettuce Implement proper java integration with jedis/lettuce Follow best practices for optimal results Connection Connection management best practices Implement proper connection management best practices Follow best practices for optimal results Error Error handling and retry logic Implement proper error handling and retry logic Follow best practices for optimal results Deployment Patterns Docker Docker containerization Implement proper docker containerization Follow best practices for optimal results Kubernetes Kubernetes deployment Implement proper kubernetes deployment Follow best practices for optimal results Cloud Cloud provider integrations (AWS ElastiCache) Implement proper cloud provider integrations (aws elasticache) Follow best practices for optimal results Configuration Configuration management Implement proper configuration management Follow best practices for optimal results Scaling Scaling strategies Implement proper scaling strategies Follow best practices for optimal results Summary Checklist [ ] Core principles implemented [ ] Best practices followed [ ] Performance optimized [ ] Security measures in place [ ] Testing strategy implemented [ ] Documentation completed [ ] Monitoring configured [ ] Production deployment ready Follow these comprehensive guidelines for successful redis caching implementation.
Rust Systems Programming
Rust Systems This document provides comprehensive guidelines for rust systems development and best practices. Memory Management Stack Stack vs heap allocation Implement proper stack vs heap allocation Follow best practices for optimal results RAII RAII (Resource Acquisition Is Initialization) Implement proper raii (resource acquisition is initialization) Follow best practices for optimal results Smart Smart pointers: Box, Rc, Arc Implement proper smart pointers: box, rc, arc Follow best practices for optimal results Interior Interior mutability with RefCell and Mutex Implement proper interior mutability with refcell and mutex Follow best practices for optimal results Unsafe Unsafe Rust when necessary Implement proper unsafe rust when necessary Follow best practices for optimal results Error Handling Result<T, Result<T, E> for recoverable errors Implement proper result<t, e> for recoverable errors Follow best practices for optimal results Option<T> Option<T> for optional values Implement proper option<t> for optional values Follow best practices for optimal results Custom Custom error types with thiserror Implement proper custom error types with thiserror Follow best practices for optimal results Error Error propagation with ? operator Implement proper error propagation with ? operator Follow best practices for optimal results Panic Panic handling for unrecoverable errors Implement proper panic handling for unrecoverable errors Follow best practices for optimal results Testing & Documentation Unit Unit tests with #[test] Implement proper unit tests with #[test] Follow best practices for optimal results Integration Integration tests in tests/ directory Implement proper integration tests in tests/ directory Follow best practices for optimal results Documentation Documentation tests with /// Implement proper documentation tests with /// Follow best practices for optimal results Benchmarking Benchmarking with criterion Implement proper benchmarking with criterion Follow best practices for optimal results Property-based Property-based testing with proptest Implement proper property-based testing with proptest Follow best practices for optimal results Popular Crates serde serde for serialization Implement proper serde for serialization Follow best practices for optimal results clap clap for command-line parsing Implement proper clap for command-line parsing Follow best practices for optimal results reqwest reqwest for HTTP clients Implement proper reqwest for http clients Follow best practices for optimal results diesel diesel for database ORM Implement proper diesel for database orm Follow best practices for optimal results actix-web actix-web for web frameworks Implement proper actix-web for web frameworks Follow best practices for optimal results Systems Programming Low-level Low-level system calls Implement proper low-level system calls Follow best practices for optimal results File File system operations Implement proper file system operations Follow best practices for optimal results Network Network programming Implement proper network programming Follow best practices for optimal results Cross-platform Cross-platform compatibility Implement proper cross-platform compatibility Follow best practices for optimal results Embedded Embedded systems development Implement proper embedded systems development Follow best practices for optimal results Summary Checklist [ ] Core principles implemented [ ] Best practices followed [ ] Performance optimized [ ] Security measures in place [ ] Testing strategy implemented [ ] Documentation completed [ ] Monitoring configured [ ] Production deployment ready Follow these comprehensive guidelines for successful rust systems implementation.
Browse Cursor Rules - Cursor IDE Community Prompts & Configurations