10,000 foot view of programming
Programming is about controlling a machine. It's not a secret art or magic.
To control a machine, you need to understand how that machine takes instructions and how it returns the answer to you.
So, naturally, we are going to need to focus on a language. There are many languages out there that a person could use to "speak" to a machine. I don't believe that there is a single "best" language to use. So, whatever language you choose, it should do the trick. I'll address languages when we finish preliminary points on programming.
Algorithms
College courses, in my opinion, do not spend enough time on teaching algorithms. An algorithm is basically the "flow" of your program. So, the first step in a proper algorithm is to establish what your program wants to do. After you decide the solution your program will give the user, you should be breaking down the "problem" into manageable pieces. It's good practice to break down your "problem" as small as you logically can.
I will use a cake as an example to explain:
Gather: eggs, flour, milk, sugar, shortening, spice, extracts, mixing bowl, spoon, oil, baking pan, stove, electricity and a timer.
Think of the things that you just gathered as "objects". Objects are the actual data that you will use in your program. You will hear that term quite often.
Trust me this is going somewhere.
Break down your objects further:
Gather: Chicken eggs, wheat flour, cow's milk, cane sugar, canola oil, etc.
As you can see, in programming, you need to be precise as possible.
Continuing, you have all the ingredients to make a cake but you need to do something with the ingredients. In programming, actions are called functions or subroutines. You can use those phrases interchangeably. So your actions (functions) should tell the computer what to do and in what order:
1: mix in a bowl
2: crack eggs throw away shell
3: add spice
...
It's up to you to create the flow of your program so others using your program can be successful.
Review:
Algorithms are the flow of your program. You need to create one before you even write a single line of code. Objects are the data that you will use in your program. Functions are the actions that the computer must perform in order to solve a problem. Please practice algorithms because they are very useful for design and upgrading your code to extend it if you should want to in the future.
Next: Language Types
Programming is about controlling a machine. It's not a secret art or magic.
To control a machine, you need to understand how that machine takes instructions and how it returns the answer to you.
So, naturally, we are going to need to focus on a language. There are many languages out there that a person could use to "speak" to a machine. I don't believe that there is a single "best" language to use. So, whatever language you choose, it should do the trick. I'll address languages when we finish preliminary points on programming.
Algorithms
College courses, in my opinion, do not spend enough time on teaching algorithms. An algorithm is basically the "flow" of your program. So, the first step in a proper algorithm is to establish what your program wants to do. After you decide the solution your program will give the user, you should be breaking down the "problem" into manageable pieces. It's good practice to break down your "problem" as small as you logically can.
I will use a cake as an example to explain:
Gather: eggs, flour, milk, sugar, shortening, spice, extracts, mixing bowl, spoon, oil, baking pan, stove, electricity and a timer.
Think of the things that you just gathered as "objects". Objects are the actual data that you will use in your program. You will hear that term quite often.
Trust me this is going somewhere.
Break down your objects further:
Gather: Chicken eggs, wheat flour, cow's milk, cane sugar, canola oil, etc.
As you can see, in programming, you need to be precise as possible.
Continuing, you have all the ingredients to make a cake but you need to do something with the ingredients. In programming, actions are called functions or subroutines. You can use those phrases interchangeably. So your actions (functions) should tell the computer what to do and in what order:
1: mix in a bowl
2: crack eggs throw away shell
3: add spice
...
It's up to you to create the flow of your program so others using your program can be successful.
Review:
Algorithms are the flow of your program. You need to create one before you even write a single line of code. Objects are the data that you will use in your program. Functions are the actions that the computer must perform in order to solve a problem. Please practice algorithms because they are very useful for design and upgrading your code to extend it if you should want to in the future.
Next: Language Types
Comment