What do you suggest as the better practice when coding a program?
1.Figure out absolutely every little detail about the functioning of structures, classes, and functions, that goes inside the program before starting to code. Write down all those things, and start to write the program as the paper says.
2.First only think of the basic functioning of the program and start to build structures and functions in a basic way. While the work in progress, decide all the small details that should be included in structures and functions. (I feel that this way is easier)