Timeline for When should a function be given an argument vs getting the data itself?
Current License: CC BY-SA 4.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 23, 2024 at 15:50 | comment | added | Nova | Thanks, I think the overall sentiment is the functions will be more reusable and testable when passed arguments, and the data may want to live outside of the function for other purposes, and the function should only be at a single level of abstraction. | |
| Jun 23, 2024 at 11:53 | comment | added | Christophe | @Basilevs I understand that I need to clarify. Thanks for the feedback. | |
| Jun 23, 2024 at 11:53 | history | edited | Christophe | CC BY-SA 4.0 |
added 271 characters in body
|
| Jun 23, 2024 at 10:56 | comment | added | Basilevs | Dreaded cohesion and coupling - smart and sensible, but have a requirement of known future. | |
| Jun 23, 2024 at 10:27 | history | answered | Christophe | CC BY-SA 4.0 |