Quantcast
Channel: What should I call the process of converting an object to a string? - Software Engineering Stack Exchange
Browsing latest articles
Browse All 12 View Live

Answer by user17022 for What should I call the process of converting an...

In Common Lisp this is called the printer and the reader.Quoting the Hyperspec :"write, prin1, princ, print, and pprint write the printed representation of object to output-stream. ""read parses the...

View Article



Answer by JustinC for What should I call the process of converting an object...

Encode or decode would be a a more general terminology for a bidirectional process. You may also consider transform for a one way process.

View Article

Answer by bitsoflogic for What should I call the process of converting an...

It seems to me that you are looking to output not just a string, per se, but rather a blueprint of the object. Something that encapsulates how it behaves and all of its attributes. You stated that this...

View Article

Answer by CanSpice for What should I call the process of converting an object...

If you were writing Perl, you'd essentially be duplicating Data::Dumper's functionality. It takes a Perl object and turns it into a string representation that can then be used to recreate that object...

View Article

Answer by wildpeaks for What should I call the process of converting an...

Even if I see your point about serialize hinting at deserializing (or is it "unserializing" ?) being the opposite, that would still be my preferred wording because it naturally implies that the process...

View Article


Answer by Alb for What should I call the process of converting an object to a...

The method name should say what it does, not why it does it, therefore:toString() because it's how you phrased it in the title. What's done with the string afterwards (i.e whether the object can be...

View Article

Answer by TheZenker for What should I call the process of converting an...

Aren't you basically looking for a Hash() function? Where you would create a string representation of an object state that is reversible (unlike a normal hash).Edit:I repeal the Hash() idea.How about...

View Article

Answer by Edward Strange for What should I call the process of converting an...

I like the pickle idea. It quite nicely says nothing at all, leaving people seeing it asking themselves WTF and having to search for documentation and/or the implementation to figure out what client...

View Article


Answer by chaos for What should I call the process of converting an object to...

I nominate sourcification. I agree that "quine" isn't quite right, but the part where you're producing valid source code for the object seems key.

View Article


Answer by S.Lott for What should I call the process of converting an object...

In Python that is the "repr()" function. A string representation of the object.

View Article

Answer by Michael K for What should I call the process of converting an...

I'd pick something along these lines:toStringRep()createStringRepresention()strRep()toSource()toSourceString()

View Article

What should I call the process of converting an object to a string?

We are having a game of 'semantic football' in the office over this matter: I am writing a method for an object which will represent the object as a string. That string should be such that when typed...

View Article
Browsing latest articles
Browse All 12 View Live




Latest Images