0

Functions, methods, figuring out how it works

There is probably a thread for this already, but this is where I struggle the most. I’ve read and tried and still can’t connect the dots in my head. That’s and how to structure a program, but let’s start with baby steps. Any advice?

10th Sep 2018, 1:27 PM
Jenice Jinx Edmonds
Jenice Jinx Edmonds - avatar
1 Resposta
+ 2
Imagine you do a set of statements many times at different places. Then you put those statements into a function, so you don't have to repeat the same code many times, instead you just put the function call. It also makes your code readable, because you give a name to a part of code.
10th Sep 2018, 2:12 PM
michal