(no title)
leghifla | 3 years ago
Too many people cannot maintain attention for more than a few seconds while reading. Or they read "what they want to read" instead of the actual text. Like I write a "list of things" and they read it like "a set of things", loosing the meaningful ordering of a list.
I tend to write concise documentation, but people always loose some important details that way. So I am now purposefully adding more text than strictly required to be sure important points are really understood.
Like a good teacher repeats at least 3 times the same matter, with a slightly different angle
MaxBarraclough|3 years ago
ilyt|3 years ago
That's on you. A lot of code use list instead of set purely because set is rarely a basic primitive language offers.
If I see method returning list of users I'm just gonna assume it is unordered, and it usually is unordered.
If you return list that's ordered and that matters for some reason, the docs should say it is ordered and by which key.
If the method is called RunTasks(list) and documentation is "runs a list of tasks" it is perfectly fine to assume it means "runs list of tasks in order" but it is also perfectly fine to assume "runs all of the tasks in parallel".
baby|3 years ago