Programming is an art. You have to write precise steps to the computer. How preicse? If a computer was a person, and you told them to make a sandwich, they wouldn't know what to do. You would have to tell them step by step.
Open the cabinet.
Extend your arm.
Grab a plate.
Move plate to counter.
Grab bag of bread.
Open bag of bread.
.
.
.
You get the picture. But then you may ask, is there a simpler way? Yes and no. What I mean is you only need to write the instructions once. After that, you could tell them to make a sandwich and they would do it. Almost like teaching a young child. So you write a function to make a sandwich.
void MakeSandwich()
{
Open the cabinet.
Extend your arm.
Grab a plate.
Move plate to counter.
Grab bag of bread.
Open bag of bread.
.
.
.
}
After that, you can make many sandwiches! All you have to do is call the function.
MakeSandwich();
MakeSandwich();
MakeSandwich();
Wow, we just made three sandwiches!
Programming is the art of problem solving, step by step.
If you forget a step, you can ruin the whole program. What if I forgot to open the bag of bread? Where would I get the bread? That could result in a program crash. Your program doesn't work. You failed.
Why would you like something that is so easy to screw up?
Accomplishment. Even if I don't get the job done, I still learn from it. I can take the parts that work, and reuse them. I could fix what doesn't and learn from my mistakes. That what you do.
I've failed many times. Ask around the forum. I've tried countless times to make a game. Yes, my hard drive has crashed and I lost everything, but that was only one project. I have scrapped numerous projects. Never finished a single one. Each one is a learning experience, and each one brings me closer to my goal.
Where am I now? Back at work again, learning from each mistake, using what I learned. I love it.
The best part is, when you're doing something right, you see a moving, lively, work of art. Something you made using your own time and energy. It's the greatest feeling of achievment.
Would you like to program? I recommend using C++ as a language. There are many useful tutorials on line. I use Code::Blocks as a compiler.
Open the cabinet.
Extend your arm.
Grab a plate.
Move plate to counter.
Grab bag of bread.
Open bag of bread.
.
.
.
You get the picture. But then you may ask, is there a simpler way? Yes and no. What I mean is you only need to write the instructions once. After that, you could tell them to make a sandwich and they would do it. Almost like teaching a young child. So you write a function to make a sandwich.
void MakeSandwich()
{
Open the cabinet.
Extend your arm.
Grab a plate.
Move plate to counter.
Grab bag of bread.
Open bag of bread.
.
.
.
}
After that, you can make many sandwiches! All you have to do is call the function.
MakeSandwich();
MakeSandwich();
MakeSandwich();
Wow, we just made three sandwiches!
Programming is the art of problem solving, step by step.
If you forget a step, you can ruin the whole program. What if I forgot to open the bag of bread? Where would I get the bread? That could result in a program crash. Your program doesn't work. You failed.
Why would you like something that is so easy to screw up?
Accomplishment. Even if I don't get the job done, I still learn from it. I can take the parts that work, and reuse them. I could fix what doesn't and learn from my mistakes. That what you do.
I've failed many times. Ask around the forum. I've tried countless times to make a game. Yes, my hard drive has crashed and I lost everything, but that was only one project. I have scrapped numerous projects. Never finished a single one. Each one is a learning experience, and each one brings me closer to my goal.
Where am I now? Back at work again, learning from each mistake, using what I learned. I love it.
The best part is, when you're doing something right, you see a moving, lively, work of art. Something you made using your own time and energy. It's the greatest feeling of achievment.
Would you like to program? I recommend using C++ as a language. There are many useful tutorials on line. I use Code::Blocks as a compiler.