Have you been wondering where in the world I went? Sometimes you just have to experience life while it is happening. That is exactly what I have been up to:)
I learned a lot of Ruby in a short amount of time and really needed to digest before blogging about it.
What I like the most about Ruby is that it is an Object Oriented Programming language (OOPL).
Here are a few small projects that I worked. Each project was scripted with Ruby and then ran using the terminal.
- Always_three
- puts“Give me a number.”
- first_number=gets.to_i
- def my_always_three_method(num1)
- (((num1+5)*2-4)/2-num1)
- end
- puts“Always” + my_always_three_method(first_number).to_
- Numerology app
- puts ‘What is your birthdate? Please enter month, day, and year.’
- birthdate = gets
- def get_birth_path(birthdate)
- number = birthdate[0].to_i + birthdate[1].to_i +
- birthdate[2].to_i + birthdate[3].to_i +
- birthdate[4].to_i + birthdate[5].to_i +
- birthdate[6].to_i + birthdate[7].to_i +
- birthdate[8].to_i + birthdate[9].to_i
- number = number.to_s
- number = number[0].to_i + number[1].to_i
- if number > 9
- number = number[0].to_i + number[1].to_i
- end
- return number
- end
- def get_user_birth_message(path_number)
- case path_number
- when 1
- number_message = “Your numberology number is #{path_number}. \n One is
- the leader. The number one indicicates the ability to
- stand alone, and is a strong vibration. Ruled by the
- Sun.“
- when 2
- number_message = “Your numberology number is #{path_number}. \n This is
- the meditor and peace-lover. The number Two indicates the
- desire for harmony. It is a gentle, considerate, and sensitive
- vibration. Ruled by the Moon.“
- when 3
- number_message = “Your numberology number is #{path_number}. Number Three is a sociable, friendly, and outgoing vibration.
- Kind, positive, and optimistic, Three‘s enjoy life and have a good
- sense of humor. Ruled by Jupiter.“
- when 4
- number_message = “Your numberology number is #{path_number}.This is the worker. Practical, with love of detail, Fours are
- trustworthy, hard-working, and helpful. Ruled by Uranus.“
- when 5
- number_message = “Your numberology number is #{path_number}.This is the freedom lover. The number Five is an intellectual
- vibration. These are ‘idea’ people with a love of variety and the
- ability to adapt to most situations. Ruled by Mercury.“
- when 6
- number_message = “Your numberology number is #{path_number}.This is the peace lover. The number Six is a loving,
- stable, and harmonious vibration. Ruled by Venus.“
- when 7
- number_message = “Your numberology number is #{path_number}.This is a deep thinker. The number Seven is a spiritual
- vibration. These people are not very attached to material things,
- are introspective, and generally quiet. Ruled by Neptune.“
- when 8
- number_message = “Your numberology number is #{path_number}.This is the manager. Number Eight is a strong, successful, and
- material vibration. Ruled by Saturn.“
- when 9
- number_message = “Your numberology number is #{path_number}.This is the teacher. Number Nine is a tolerant, somewhat impractical,
- and sympathetic vibration. Ruled by Mars.“
- else
- number_message = “I’v got nothing for you. You must be an alien!”
- end
- end
- path_number = get_birth_path (birthdate)
- number_message = get_user_birth_message(path_number)
- puts number_message
- Fizzbuzz
- i=0
- for i in (1..100).each do
- if i % 15 == 0
- print “FizzBuzz”
- elsif i % 3 == 0
- print “fizz”
- elsif i % 5 == 0
- print “Buzz”
- else
- puts i
- end
- i=1
- end
One of my last assignments for the Web-development course was to create an ‘advice web page’ with HTML and CSS for people who are learning to code. Here is my advice for all the code newbies out there!
After struggling to get this baby pushed to GitHub, I decided that the next step for me was to take a class on GitHub itself.
I understand the purpose of Git and GitHub, but haven’t mastered using the platform. I am now signed up for this free course by Udacity.
Although the Web-Developer course through Skillcrush officially ended on February 6th. I have access to all the material forever! Just another reason I highly recommend using Skillcrush.
A very special Thank YOU for all the Skillcrush instructors and classmates!