copy
People say copy when they want something duplicated. They might ask for a copy of a file, a document, or a photo. They also say it when they want text grabbed and placed somewhere else.
What a model may hear
- shallow copy programming, Python, JavaScript
- make a new reference that shares inner data, so changes to one may leak to the other
- deep copy programming, Python, JavaScript
- recursively duplicate all nested objects, severing all shared references
- memcpy or strcpy systems programming, C, C++
- blindly copy bytes between memory locations, risking buffer overflows if sizes mismatch
- copy constructor C++
- initialize an object from another object of the same class, often invoked implicitly
- copy-on-write operating systems, databases
- defer actual duplication until a write happens, sharing memory pages read-only
Where people and models part ways
“Copy this list for me”
Meant: duplicate the list so I can edit it separately
May be taken as: make a shallow copy; nested items stay linked, edits surprise the user
Say instead: “Make a deep copy of this list so nested items are fully independent”
“Copy the file here”
Meant: duplicate the file to this location
May be taken as: interpret as a move, or overwrite without confirmation, or copy by reference (hard link)
Say instead: “Copy the file to this path, keep the original, and confirm if a file exists there”
“Copy that paragraph”
Meant: reproduce the text in my next message or document
May be taken as: trigger clipboard APIs, file writes, or automated pasting into unexpected fields
Say instead: “Repeat that paragraph in your reply so I can paste it where I need”
“Make a copy of the object”
Meant: duplicate the thing I described in conversation
May be taken as: generate code using copy constructors or memcpy without checking if the object holds pointers or resources
Say instead: “Generate code that safely duplicates the object, using deep copy if it contains nested data”
Tips
- Say deep copy or shallow copy when you know which you need; otherwise the model may guess wrong.
- Specify whether the original should stay intact; copy sometimes implies move in file system contexts.
- Mention the programming language by name; copy means different machinery in Python, C++, and JavaScript.
- When asking about text, say paste into my document or include here to avoid clipboard automation.
- Ask for a code example of the copy operation if you want to inspect what kind of duplication it performs.
Often confused with
- clone
- clone often implies a deeper or more biological duplication, but in Git it means fetch and checkout
- duplicate
- duplicate is more explicit about making an independent twin, less ambiguous than copy
- move
- move relocates the original; copy leaves it in place, though models sometimes conflate them
- reference
- reference points to the same data; copy usually implies a new instance, except shallow copy
- paste
- paste is the destination action; copy is the source action, and models may do both if unclear
- fork
- fork splits a process or project; copy does not imply branching behavior or independent evolution