Simple Question:
When a script/function/class exports something, I name it “exporter”.
When it imports something, I name it “importer”.
How do I name it when it does both?
What do you think? Write your thoughts into the comments please. Thanks!
Popularity: 33% [?]
14 Users Responded in " How to name something that imports and exports ? "
maybe transport(er)? Because it describes only the movement from one place to another, regardless of the direction.
How about a stylisch Web2.0 name like IXPort ;P
I once named a class and the corresponding file “impex” which was stupid. It was always hard to find that file when looking for it in the file tree.
My advice: Make two classes and files. One for import and one for export.
well..
IMport, EXport. IM and EX show the direction. How about using two directional prefix: BIporter? :)
what about “io”
I’ve chosen “Exchange”.
“Gateway” springs to mind first, or for something maybe a little more – um, creative… how about “Customs” (as in airport security, allowing things in/out)? :-)
Not sure what it does – make it shorter: porter ;)
I like minde’s idea, biporter… it leans both ways ;)
Suggestions #1: Add support for base64 encoded hashes.
Suggestion #2: Also SHA1 hash plain text searches, in addition to MD5 hashing them.
Ian Boyd, I don’t think I would call it either of those things.
Transporter was my first and natural choice.
I say make it natural. Who knows, you could forget what you called it.
Or better, what are the transport methods? Is it a database thing? filesystem, network?? Maybe that could swing the name a bit.
Pingback & Trackback