What email address or phone number would you like to use to sign in to Docs.com?
If you already have an account that you use with Office or other Microsoft services, enter it here.
Or sign in with:
Signing in allows you to download and like content, and it provides the authors analytical data about your interactions with their content.
Embed code for: Adrift with Ruby
Select a size
This is the introductory lesson to my complete guide of working with the basics of Ruby language.
Adrift with Ruby Learning Ruby Coding Basics in Space! by Wake Up Sunshine (c) 2016 Why Coding for My Students? Research has demonstrated that the human brain does much better in the long term if it is exposed to activities such as brain teasers, logical puzzles and thinking. In fact, research has shown some of the beneﬁts regarding such activities: • Boosts brain activity • Provides emotional satisfaction and sense of accomplishment • Enhances memory and processing speed • Helps slow the decline and reduce the risk for dementia • Improves concentration The human brain is no different than any other muscle in the human body. If an individual wants developed bicep muscles, they need to do arm curls with weights (i.e. an arm workout). Henceforth, if one wants to develop and maintain a healthy brain, it too must be allowed to exercise, which is the foundation of this guide. The videos for these activities are from the phenomenal video game, Adrift, by 505 Games. So, have fun and get ready for some head scratching! Note: The goal is not necessarily to get every coding challenge correct . . . you may not. Regardless, the students are exercising their brains, and thereby reaping the beneﬁts. As a general purposed coding language, Ruby is still very popular and needed, in the marketplace. With a straight and to the point format, Ruby can be a great starting point for learning a coding language. Adrift with Ruby deals with the fundamentals of Ruby programming including: loops, variables, control ﬂow, and object-oriented programming.. The students will learn a few concepts that can be applied on their own later on, if they seem interested in the coding universe (pun intended). Ruby Language Activity 1 - Data Types: numbers, booleans, and strings numbers = can be true or false booleans = can be true or false; also never utilize quotation marks with booleans, otherwise the Ruby language will think you are referring to a string strings = words or phrases Example my_num = 4 my_boolean = true my_string = “cargo bay” Note: The above data shows that the cargo bay number in Adrift is the number 4, which is true. Wake Up Sunshine (c) 20164 Activity 1: Data Types With the provided clip, complete the following: -Make your number equate to the chemical element number of oxygen. -Make your boolean equal to true -Make your string equal to the glowing color of the oxygen canisters. my_num = my_boolean = my_string = When done hit the linked “RUN” button to see the if you were right!RUN Wake Up Sunshine (c) 20165 my_num = 2 my_boolean = true my_string = “green” Wake Up Sunshine (c) 20166 Console Printout “green” Console Input