Changes for page Functions

Last modified by chrisby on 2024/01/13 18:39

From version 1.14
edited by chrisby
on 2023/12/06 09:24
Change comment: There is no comment for this version
To version 1.16
edited by chrisby
on 2023/12/06 09:29
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -27,4 +27,4 @@
27 27  * **Avoid flag arguments.** It shows that the function performs two tasks, depending on whether the flag is true or false.
28 28  * **Dyads should be converted to monads if possible**, but cannot always be avoided. Sometimes they are useful, e.g. when passing 2D coordinates, because the arguments are connected by a cohesion.
29 29  * **Argument objects:** When many arguments are to be passed to a function, it often makes sense to combine them as a separate concept in a new class/data structure.
30 -* **Verbs and keywords**: Function names can form a logical combination with the arguments, such as "write(name)", or you can include the arguments in the function name, e.g. to avoid confusion.
30 +* **Verbs and keywords**: Function names can form a logical combination with the arguments, such as `write(name)`, or you can include the arguments in the function name, such as `writeName(name)`, to make it more readable.