Working with functions

As I’m going into more intermediate coding with my class, we’ve talked a bit about best practices and how to “think” or “interpret” the different tools provided with coding.

Something that helped me a lot with understanding how to properly use functio…


This content originally appeared on DEV Community and was authored by Theo Selin

As I'm going into more intermediate coding with my class, we've talked a bit about best practices and how to "think" or "interpret" the different tools provided with coding.

Something that helped me a lot with understanding how to properly use functions is when our teacher @hassanmian told us to see them as different persons.

This got me thinking; so I found a good analogy for it in a relay race. The work that needs to be done has to be devided between the different runners evenly. It'd simply be unfair if one person had to to the whole race and the rest still gets cred for it.

So if it's a lot that needs to be done, the first function needs to hand the baton to the next function and so on.

I've got a feeling that my future DEV posts are going to involve more analogies, but it helps me anchor what I learn to something I understand and who knows; it might help somebody else out there.


This content originally appeared on DEV Community and was authored by Theo Selin


Print Share Comment Cite Upload Translate Updates
APA

Theo Selin | Sciencx (2021-10-08T11:08:16+00:00) Working with functions. Retrieved from https://www.scien.cx/2021/10/08/working-with-functions/

MLA
" » Working with functions." Theo Selin | Sciencx - Friday October 8, 2021, https://www.scien.cx/2021/10/08/working-with-functions/
HARVARD
Theo Selin | Sciencx Friday October 8, 2021 » Working with functions., viewed ,<https://www.scien.cx/2021/10/08/working-with-functions/>
VANCOUVER
Theo Selin | Sciencx - » Working with functions. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/10/08/working-with-functions/
CHICAGO
" » Working with functions." Theo Selin | Sciencx - Accessed . https://www.scien.cx/2021/10/08/working-with-functions/
IEEE
" » Working with functions." Theo Selin | Sciencx [Online]. Available: https://www.scien.cx/2021/10/08/working-with-functions/. [Accessed: ]
rf:citation
» Working with functions | Theo Selin | Sciencx | https://www.scien.cx/2021/10/08/working-with-functions/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.