+ 1

I know how to program but I have difficulty creating my programs. What is wrong?

I know how to program but I have difficulty creating my programs. What is wrong?

18th Jul 2019, 11:34 PM
zDev GameDev
zDev GameDev - avatar
5 odpowiedzi
+ 2
I find creating a program difficult when I dont plan it. If I jump straight into a project with a brute force approach I end up confusing myself and needing to constantly re-write portions of it which ultimately leads to disorganization and messy code. If I plan and write it out, as in determine exactly what it is my program is going to do and how it is going to do it by generating a skeleton and formulating my algorithms through pseudocode and flowcharts, I have a much easier time keeping things relevant and organized.
19th Jul 2019, 12:55 AM
Jake
Jake - avatar
+ 2
Do you lack ideas?
19th Jul 2019, 2:29 AM
Sonic
Sonic - avatar
+ 1
you may be trying stuffs of too much complexity for your current knowledge, try easy challenges. e.g 1 - print ASCII values of some text the user entered 2 - the stuff you learn in math you can write programs for it. e.g - program to get hypotenuse of a triangle if user enters size a and b. - program to get volume of a sphere given the radius (V = 3/4*PI*r^3), this is the formula for getting volume of a sphere. - program to get a certain percentage of an amount etc.
18th Jul 2019, 11:58 PM
Mind To Machine 💻🕆
Mind To Machine 💻🕆 - avatar
0
Depends, what problem are you having?
18th Jul 2019, 11:47 PM
Austin