Tag Info

New answers tagged

5

In the literature I have seen the word serdes (don't remember where exactly I saw it), which stood for serialization-deserialization. Wikipedia article for SerDes. p.s. I tend to agree with Robert Cooper's comment that there may be little benefit from shortening the namespace name, because it's not typed frequently (perhaps once on top of the code file). ...


4

You might use s11n and there is a serialization library named libs11n (the 11 is the number of letters between the first s and last n in serialization) But it is not very common, so please tell in one comment what s11n means to you. Some people speaks of marshaling (e.g. in Ocaml its Marshal module), or pickling (in Python, its pickle module), instead of ...


1

"Medium" may seem confusing because most people don't really care that it is the singular form of media. Media is becoming a singular form just like "data". Know many users of the word "datum?" Give it time and it will become proper. Since this is the first word that popped into your head, I would go with it. Anyone viewing the code will probably do the ...


2

Which of the two is more likely: Somebody is working with a jam jar, and while doing so, they want to look at a jam definition Somebody is working with a jam jar, and while doing so, they want to look at a honey jar? You're best placed to answer this, given your knowledge of the project, but in general I would say that the first of these two seems far ...


1

There are indeed some established conventions for this. In Ruby, whenever you have two methods which do the same thing, but one of them does it in a way that is more surprising or more dangerous than the other one, then they both get the same name, but the more surprising or more dangerous one is suffixed with a bang. For example: Process::exit exits the ...


0

If your method changes the state of the object, just make it return void. This expresses unambiguously "This method changes the existing object" (otherwise there would be no point in it at all), and you don't need the returned value, since the caller obviously already has a reference to the Vector. (The better alternative would be a convention like those in ...



Top 50 recent answers are included