Wednesday 6 August 2014

CSSI Day 10: App Engine Developments

Standing outside the office doors!
One of the two buildings on the Seattle campus.
Google Seattle sign; how fitting!
We continued our progress in App Engine today by learning about templates, which made coding much easier through allowing for the integration of separate HTML files into the main Python code file. This made the code for our applications look a lot cleaner, and consequently easier to read.

We began with creating a quiz for users to take, in order to learn how to connect HTML input boxes with Python actions. To make the quiz more bug-proof, we learned to use conditionals and for-loops in the HTML code to prevent users from submitting the quiz with blank answers. To make our quizzes look more aesthetically pleasing, we added pictures to our program through served static files using App Engine.

After lunch, we had a "Laying the Groundwork for a Technical Career" presentation, where we learned about Google's mission, recommended courses to take in university, additional resources for practicing computer science, as well as different internships that are available throughout the university years. This talk was fantastic and very informative, including the Q&A session at the end. I think that the advice we received through the presentation will definitely aid in being better prepared for work opportunities (especially at Google itself!) in the future. 

Our second project for the day was to make a collection of profiles of all the CSSI students this year. Through this exercise, we learned how to import Python files into our main file and use the data stored in the file in our program. During this time was when I began to find things quite tricky, for there were many variables that looked very similar and thus were easily confused with one another. But after sorting out what variable belonged to what, I was able to finish the application quite quickly. After the project, I decided to modify the quiz exercise that we made today into a "capital cities" quiz! The app interface isn't very attractive yet as I haven't had the time to write up CSS for the file. Also, only the "Canadian Capital Cities Quiz" works so far; I hope to have a USA version up soon! Test out your knowledge of Canadian capital cities:

In other news, back at the dorms I got to play the ukulele for the first time! It was really fun to learn how to play "I'm Yours" by Jason Mraz; the song is the perfect summer song and also sounds amazing on ukulele. Because I have experience playing the guitar, it was quite easy to remember the chords and learn how to strum the rhythm, but there was a chord that was quite difficult to switch to so I practiced for a bit. Still, learning to play was a great break from a day of coding. Today felt like it went by so fast, with lots of studying, creating, and debugging going on. It's now time to sleep... see you tomorrow! 

No comments:

Post a Comment