: Re: How can I express this more clearly or concisely? I'm documenting a block of computer code and would like to make it clear and concise. I'm describing a function that populates a field on
Edited based on comments:
Given the following function declaration:
f_get_vend_code(v_nut_id varchar2) return varchar2;
I would write the description as follows:
This function takes a nut ID (NUT_ID) and returns the vendor's seller code (WINGNUT_SELLER_CODE) for this form. If NUT_ID is not set (blah blah blah). If the function cannot find a valid seller ID it (does something).
Note: I'm using Java idioms because those are the ones I'm familiar with. I'm assuming that "takes (a parameter)" and "returns" are meaningful for your audience too; you should verify that by reading other API documentation for this language. I am also assuming that the values you originally used, e.g. NUT_ID, are meaningful even though they don't appear in the signature; if that's not the case then I would omit them in the description.
Also note that I went beyond your original question to cover invalid parameters and error conditions. Good API documentation goes beyond what they can get from just reading the signature and tells them what they wouldn't be able to figure out otherwise.
More posts by @Hamaas631
: Improving Ad Script I am looking for some advice on how to improve a short script that I have for an advertisement/introduction video. I have been revising this for two months now. I have
: How to create space Recently, a few snippets of my fiction have received critiques along the lines of 'Does not give a sense of space'. Or 'needs more description, sights and sounds'. I think
Terms of Use Privacy policy Contact About Cancellation policy © selfpublishingguru.com2024 All Rights reserved.