Saturday, December 11, 2010
Holy Crap, I Learned Recursion!
After an extensive (about a week) amount of time I decided to go forth into the unknown and learn: recursion. It was VERY confusing to me at first. VERY! But... I finally got it. I may need to review what I have learned, but I think I have it down. It was a scary adventure and I may eventually write about recursion down the road as I get comfortable using it so that those who do not understand it can possibly learn it from me. Recursion seriously had to be pounded into my head several times before I got it. At one point I was pretty sure I would never figure it out and wanted to give up learning to program. But, I have to remember that no matter how hard a problem is... I will likely always make it to the other side. So, we'll see what other things programming throws at me. Hopefully nothing too scary, but we'll see. I am very excited to create some programs and already have some programs in mind that I could write given a little more persistence and knowledge. I can't wait until I actually have a cool web app up and running that I can show the world!
Labels:
Recursion
Sunday, December 5, 2010
The Hangman Program
I wrote the hangman program as outlined in this post.
While this program was difficult for me to write, I learned a lot of new things while writing it such as a do while loop. There was a way to avoid creating a do while loop, but it was good to learn something new so I'm glad I used it. Creating this program has really shown me that there are a large number of things you can do to arrays. This is also the first time where I've really experience the fact that in programming there are more than one ways of doing something.
The hangman program can be found here:
https://gist.github.com/728851
While this program was difficult for me to write, I learned a lot of new things while writing it such as a do while loop. There was a way to avoid creating a do while loop, but it was good to learn something new so I'm glad I used it. Creating this program has really shown me that there are a large number of things you can do to arrays. This is also the first time where I've really experience the fact that in programming there are more than one ways of doing something.
The hangman program can be found here:
https://gist.github.com/728851
Saturday, December 4, 2010
War Game Program
I completed the "war" game as outlined in this post (problem #5.)
It was actually fairly easy for me to write, but with the help of a friend who writes awesomely in Ruby on Rails, I was able to learn a better way to write this program. The program can be found here:
https://gist.github.com/724880
It was actually fairly easy for me to write, but with the help of a friend who writes awesomely in Ruby on Rails, I was able to learn a better way to write this program. The program can be found here:
https://gist.github.com/724880
Labels:
Programming
Subscribe to:
Posts (Atom)
