Functional Turtle Exercise

by Maddy

24 May 2018

Making Programs Easier with Functions!

The original Trinket ‘Logical Turtles Exercise’

The new and improved Trinket ‘Functional Turtle Exercise’

Reflection

All in all, this program didn’t have many repetitive parts to it, but there were plenty of places where the code was cleaned up by having functions replace it. I can definitely see how functions make reading code much easier. If you understand how the code for a function works and can apply it, then doing more extensive coding takes less time and is easier to read.

Maddy is a Professional Science Master's student at UNC-Chapel Hill studying Biomedical & Health Informatics. Find Maddy on Twitter, Github, and on the web.