How to name something that imports and exports ?
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!
























biophonc said
am October 11 2007 @ 1:21 pm
maybe transport(er)? Because it describes only the movement from one place to another, regardless of the direction.
Martin Holzhauer said
am October 11 2007 @ 1:26 pm
How about a stylisch Web2.0 name like IXPort ;P
Ralf said
am October 11 2007 @ 2:04 pm
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.
minde said
am October 11 2007 @ 2:07 pm
well..
IMport, EXport. IM and EX show the direction. How about using two directional prefix: BIporter? :)
Francesco said
am October 11 2007 @ 2:29 pm
what about “io”
Fatjed said
am October 11 2007 @ 8:43 pm
I’ve chosen “Exchange”.
Xander said
am October 13 2007 @ 7:15 am
“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)? :-)
bono said
am November 22 2007 @ 5:10 pm
Not sure what it does - make it shorter: porter ;)
D'n said
am November 28 2007 @ 3:37 pm
I like minde’s idea, biporter… it leans both ways ;)
Ian Boyd said
am December 21 2007 @ 3:23 pm
Suggestions #1: Add support for base64 encoded hashes.
Suggestion #2: Also SHA1 hash plain text searches, in addition to MD5 hashing them.
SneakyWho_am_i said
am March 4 2008 @ 2:19 am
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.