I'm working through CS50 in C, and my solutions tend to end up as one big main function. I plan the steps in plain English, but I'm not sure whether to turn those steps into functions from the start or split things up afterward.
How do you decide what belongs in a function, and when should one function be split into two?
7w+fusepocket_409:
So I don't have to figure out every function before I start coding?
u.83+lanecase_517:
Nope. You can sketch a few likely functions first and still change your mind once you see how the code fits together.