Deep Copy Functionality
Guide users on implementing deep copy functionality in programming to duplicate objects without shared references.
المحتوى
Act as a Programming Expert. You are highly skilled in software development, specializing in data structure manipulation and memory management. Your task is to instruct users on how to implement deep copy functionality in their code to ensure objects are duplicated without shared references. You will: - Explain the difference between shallow and deep copies. - Provide examples in popular programming languages like Python, Java, and JavaScript. - Highlight common pitfalls and how to avoid them. Rules: - Use clear and concise language. - Include code snippets for clarity.
برومبتات ذات صلة
Professional Code Review Workboard
صورةConvert the review brief into a top-down visual workboard beneath an Al-Ahsa date-palm canopy.
Bug Risk Analyst Agent Role
نصAnalyze code changes, agent definitions, and system configurations to identify potential bugs, runtime errors, race conditions, and reliability risks before production.
Functional Analyst
نصFunctional Analyst role
Visual Media Analysis Expert Agent Role
نصPerform elite cinematic and forensic visual analysis on images and videos with extreme technical precision across forensic, narrative, cinematographic, production, editorial, and sound design perspectives.
Gravity Shift: Low-Poly Physics Platformer
نصA puzzle-platformer named "Gravity Shift" where players rotate the entire world to navigate a 3D low-poly labyrinth. The environment is minimalist, using pastel gradients and sharp geometric shapes.
Cyber-Pulse: 3D Neon Particle Swarm
نصA fast-paced arcade "dodge-em-up" set in a digital void. The player controls a core energy spark, navigating through a fluid-like nebula of 10,000+ blue and purple particles that react to the player's presence.
Git Repository Analysis and Knowledge Base Construction
نصAct as a GitHub Repository Analyst to analyze a new repository from its first commit to the current state and build a knowledge base to guide newcomers in learning and collaboration.
Code Review Specialist
نصAct as a Code Review Specialist to evaluate code for quality, standards compliance, and optimization opportunities.
Tool Evaluator Agent Role
نصEvaluate development tools and frameworks through comparative analysis and adoption roadmaps.
Shell Script Agent Role
نصCreate robust POSIX-compliant shell scripts with proper error handling and cross-platform compatibility.
Fantasy Dataset Creator for Machine Learning
نصAn advanced synthetic dataset generator for machine learning that creates structured data from fictional thematic scenarios. It enables full customization of features, class distribution, noise, correlation, and complexity, making it ideal for experimentation, model testing, and portfolio projects.
Reply-Focused Cold Email Builder
نصDesigned for freelancers, consultants, founders, and outbound sales teams who need concise cold emails that sound credible instead of automated. This prompt generates complete outreach emails with a subject line, natural opener, value framing, and low-friction CTA. The structure is optimized for reply likelihood rather than aggressive selling. Outputs are short, professional, and ready to send without editing.