Re:YAML: Probably not so great after all
by sk5t on Sunday August 18, 2019 @11:45PM
(#20734722)
YMMV, I believe most folks would call that "serialization," reserving "encoding" for turning a notionally written-down-ish representation into bytes; e.g. string -> utf8 bytes, or float -> IEEE-754 bytes.
[ Parent
| on HN ]
Right, for some reason in Go (which Helm is written in), the standard library calls them encoders/decoders with marshal/unmarshal as the operations. Serialize is definitely the more common term generally.
Re:YAML: Probably not so great after all
by matt_kantor on Monday August 19, 2019 @10:20AM
(#20737954)
I've seen it used even more generally for any `A -> B` (or `A -> Option<B>`) where B could be faithfully decoded back to A.
In my head, serialization is a special case of encoding when B is some type of string. In this case it's YAML.
I could probably have worded my previous comment more precisely.