Creating a Computer Program Can’t Be That Hard, Can It?

For the past few weeks I’ve been working on coding my summary of learning project so I thought I’d share a little bit about the process of setting up your own program.  I decided to use Kahn Academy programming interface to set up the program which in my head would run like an interactive story of sorts.  The idea was to have characters in the story and include some animations and basic functions.  I chose to start with Javascript because so far it’s the language I’ve used the most and it allows for simple animations and basic functions like mouse clicks.  I have to admit that initially I had bitten off more than I could chew.  Mouse click functions turned out to be fairly straightforward.  The key is to make sure that the correct page is called up when the button is clicked.  Going through the process reminded me again of the connections between editing skills in writing and combing through your code to see where the problem is.  It takes a keen eye.  Sometimes it’s as simple as a missing semi-colon or an un-closed bracket.

animation

Photo Credit

The second new trick I learned was how to make things move on the screen.  This was a bit more difficult because there are more parameters to keep in mind with the movements.  You have to basically tell the computer where you want the image to move, for how long, where to start, where to end, etc.  This took quite a bit longer than expected because I was reading and watching tutorials but I eventually had to take a look at some sample code to get me started.  This is where a open education course may have helped to give some further direction for my learning.  It becomes difficult to self motivate when you get stuck.  The beauty of online learning is that you do have access to a wealth of network options to ask questions.  It was great to go on some of the coding forums and ask questions to get clarification for how to set this up.  Twitter was also a huge help in finding great little nuggets and tidbits of information such as the one below.  This was a good article to read because it helped me realize how my program was being slowed done by clunky pieces of code.  For a smooth running program it is so important that the code is as succinct as possible.

The experience has been meaningful in many ways.  It has taught me patience, persistence, and has given me pride in learning a new skill.  It has also given me an appreciation for online learning and the importance of networks.  They give insights that would otherwise take years to uncover.  It’s a wealth of interactive knowledge that we have access to at any time of day or night.  In the end I will hopefully have the program finished in the next few days and will post the link when it is finished.  Although it has been a long and sometimes frustrating process, I feel as though I have definitely learned a lot and hope to continue with coding in the future.

coding-super-power

Photo Credit

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s