Taking my own advice

Plugging away!

Plugging away!

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
  1. puts“Give me a number.”
  2. first_number=gets.to_i
  3.  
  4. def my_always_three_method(num1)
  5. (((num1+5)*2-4)/2-num1)
  6. end
  7. puts“Always” + my_always_three_method(first_number).to_
  • Numerology app
  1. puts ‘What is your birthdate? Please enter month, day, and year.’
  2. birthdate = gets
  3. def get_birth_path(birthdate)
  4. number = birthdate[0].to_i + birthdate[1].to_i +
  5. birthdate[2].to_i + birthdate[3].to_i +
  6. birthdate[4].to_i + birthdate[5].to_i +
  7. birthdate[6].to_i + birthdate[7].to_i +
  8. birthdate[8].to_i + birthdate[9].to_i
  9. number = number.to_s
  10. number = number[0].to_i + number[1].to_i
  11. if number > 9
  12. number = number[0].to_i + number[1].to_i
  13. end
  14. return number
  15. end
  16. def get_user_birth_message(path_number)
  17. case path_number
  18. when 1
  19. number_message = “Your numberology number is #{path_number}. \n One is
  20. the leader. The number one indicicates the ability to
  21. stand alone, and is a strong vibration. Ruled by the
  22. Sun.
  23. when 2
  24. number_message = “Your numberology number is #{path_number}. \n This is
  25. the meditor and peace-lover. The number Two indicates the
  26. desire for harmony. It is a gentle, considerate, and sensitive
  27. vibration. Ruled by the Moon.
  28. when 3
  29. number_message = “Your numberology number is #{path_number}. Number Three is a sociable, friendly, and outgoing vibration.
  30. Kind, positive, and optimistic, Three‘s enjoy life and have a good
  31. sense of humor. Ruled by Jupiter.
  32.    when 4
  33.    number_message = “Your numberology number is #{path_number}.This is the worker. Practical, with love of detail, Fours are
  34.    trustworthy, hard-working, and helpful. Ruled by Uranus.
  35.    when 5
  36.    number_message = “Your numberology number is #{path_number}.This is the freedom lover. The number Five is an intellectual
  37.    vibration. These are ‘idea’ people with a love of variety and the
  38.    ability to adapt to most situations. Ruled by Mercury.
  39.    when 6
  40.    number_message = “Your numberology number is #{path_number}.This is the peace lover. The number Six is a loving,
  41.    stable, and harmonious vibration. Ruled by Venus.
  42. when 7
  43. number_message = “Your numberology number is #{path_number}.This is a deep thinker. The number Seven is a spiritual
  44. vibration. These people are not very attached to material things,
  45. are introspective, and generally quiet. Ruled by Neptune.
  46. when 8
  47. number_message = “Your numberology number is #{path_number}.This is the manager. Number Eight is a strong, successful, and
  48. material vibration. Ruled by Saturn.
  49. when 9
  50. number_message = “Your numberology number is #{path_number}.This is the teacher. Number Nine is a tolerant, somewhat impractical,
  51. and sympathetic vibration. Ruled by Mars.
  52. else
  53. number_message = “I’v got nothing for you. You must be an alien!”
  54. end
  55. end
  56. path_number = get_birth_path (birthdate)
  57. number_message = get_user_birth_message(path_number)
  58. puts number_message
  • Fizzbuzz
  1. i=0
  2. for i in (1..100).each do
  3. if  i % 15 == 0
  4. print “FizzBuzz”
  5. elsif i % 3 == 0
  6. print “fizz”
  7. elsif i % 5 == 0
  8. print “Buzz”
  9. else
  10. puts i
  11. end
  12. i=1
  13. 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!

Erin's Advice

Erin’s Advice

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!

Enjoying my Life!

Enjoying my Life!

Advertisements

Ruby my dear,

For starters, I ingested a lot of history on Ruby. Thank you Skillcrush! It is a fascinating language and I can see why there is such demand for it. Here is another article stating so.

 

I was first taught how to access the terminal. I started out using my Chromebook in which case I had to download Codio and ‘fire up’ the terminal. When the iMac arrived I was able to access the terminal via spotlight, searching for ‘terminal’. I then practiced using the most common terminal commands. The screen capture below represents the coolest terminal command!

Coolest Command EVER!

Coolest Command EVER!

YES! That is Star Wars, and yes you can sit and watch the entire result if you wish. #Geek

 

Mid-week it was time to install Ruby. I was feeling pretty lucky since my iMac came with the updated Ruby already on it. But then I found out that all UNIX products come with Ruby installed. Thank you Apple!

 

Installing “Ruby is the hardest step in learning it.” At least, according to the programming community.

 

Since I took the Codeschool Ruby course last week, learning Objects, Strings, Methods, Arrays, Hashes was familiar.  That being said, I needed to practice, practice, practice!

 

Below is another screen capture, this time of my work with IRB (Ruby) in the terminal.

Screenshot 2015-01-17 at 9.49.10 PM

I also was introduced to NIL, or nothing.

 

Last but not least I am reading my very first programming book. It is called _Why’s poignant guide to Ruby and it’s written by a “mystery guy” or x-mystery guy. His name is _Why. It is really funny and hard to put down.

 

Ruby and I are off to a great start!


P.S.  I seem to be finding my balance:)

I am officially a new iMac user.

 Labyrinth  .. A path for the right brain.

Labyrinth .. A path for the right brain.

I had a small break in my Skillcrush Developer Blueprint before starting the Ruby lesson.  I thought it would be good for me to keep coding. Practice makes perfect! I found a free course on Ruby through Codeschool.  

 

It has 7 levels and teaches objects, methods, arrays, etc.  The course required a blog entry using Ruby, which I enjoyed.  As you know, I enjoy blogging!

 

The Codeschool course gave me enough insight into the Ruby language and inspired me to learn more. I found the initial tasks fairly easy.

Ruby badge #1

Ruby badge #1

 

After completing Codeschool I feel confident that I will be successful in attempting more difficult concepts within the Ruby programming language.  I suggest you try as it builds not only knowledge of the language, but also confidence.

 

I recently read  ‘A whole new mind why right brainers will rule the future.’ I found the topic of the Labyrinth to be particularly interesting.  While I was visually familiar, I had not really understood its background. What does walking a labyrinth do for people? Hospitals have begun to add them within their construct. A lot of people claim to pray, find peace, or solve difficult problems by walking them. I find that fascinating.

 

David Tolzman (he design the Labyrinth at Johns Hopkins) stated:

As the left brain engages in the logical progression in walking the path, the right brain is free to think creatively.”

 

You can find a labyrinth near you by going to this site http://labyrinthlocator.com/

 

Last but not least, my awesome mentor @sorriv and handsome hubby purchased a Mac for me to use for #hackingmyeducation. I am very thankful for his constant support.

Ruby is a gem right?

Perfect weather for coding.

Perfect weather for coding.

So it is a cold.. ahem …FREEZING snow day! After playing in the snow with my kids. I decided it was time to read up on the famous Ruby.

 

After all, this is the perfect weather condition for a programmer/blogger/learner/stay at home mom/right?

 

First off.. The intent of Ruby was to make programming (more) simple.

The person who came up with this programming language was Yukihiro Matsumoto aka Matz in 1993.

Fun fact: Twitter was created using Ruby. Who doesn’t love Twitter?

I am really excited about learning Ruby above all the other languages. It is one of the most demanded languages.

http://www.sitepoint.com/best-programming-language-learn-2014/

IMG_3279

Ruby on rails is what I plan to focus on.

There is a community call Rails Girls that I follow on twitter.

 

NO! Ruby is not just a gem.

Finding balance

IMG_2983

WOW! December was an awkward month for me.  It was so difficult to balance home life with Hacking my Education.  Every time I sat down to learn the material I was interrupted by a snotty nosed little boy or girl:)

 

Of course trying to prepare for Christmas day took a huge chunk of my time as well.  I finally finished my lesson on JavaScript, JQuery, and API’s.

 

During ‘the most wonderful time of the year’  I successfully created a ‘text to Pig Latin’ converter.  I did this by using Arrays.

 

An array is a data type that store a group of things.  I found learning arrays to be very easy and useful.

 

I also learned how to loop through an array using FizzBuzz.  This is a test that software companies use to evaluate the potential developer.

 

Here is a screenshot of the project where I used different color shades.  When you hover, click, or double-click the object, it will change according to the code, and the text will change prompting the user with a new message.

Looking through the shades.

Looking through the shades.

 

Below I posted ‘The Magic 8 Ball’ project.  This was one of my favorite toys as a kid.  I never thought I would be creating a virtual one, but I successfully did.

Screenshot 2014-12-30 at 7.21.02 AM

My Magic 8 Ball

A List of #geek terms for ya!

 

DOM, JSON, API, AJAX

 

Hope every one had a Merry Christmas.  I am still trying to sort through all the goodies Santa dropped off.  This may take me months!

 

I am looking forward to starting 2015.  I plan to complete more reading and begin a new programming language called Ruby.

 

Wish me luck with finding balance!

Working on JS or is it working me?

First off I want to announce that I am currently one day behind in my Skillcrush course. BOO!

This is how it goes when you have sickness running rampid in house full of kids. (NOT FUN)

 

Creating a modal window with JavaScript was a bit challenging, though I am not the only one who feels this way. It was a challenge for most of my classmates as well. I did however figure out the modal on my own.  YAY me!

After creating my modal I moved on to working with the console.

Since I am programming from a Chromebook, I focused on working with the Chrome console.

I like that I am able to debug and makes changes using the console.

The Great Logo Hijack was an assignment that I really enjoyed.

I was able to go to the Google search page, find the Javascript and edit it from my console. Below is a screenshot of what I did.

I hijacked Google's logo!

I hijacked Google’s logo!

Do you see how it reads “The New York Times” and “search NY times”? That’s my hijack;)

Object, functions, variables, and properties of Javascript is what I am currently learning.

This is the most difficult part of programming that I have encountered.

I have worked through some of the problems with my classmates on Mightybell. I really do have a great group of skillcrushers to lean on.

I honestly don’t think that I will be comfortable using JavaScript by the end of next week. For now, am I working on JS or is it working on me? That is the question.

On a happy note I am ten days into a Yoga challenge and finding it to center me in the middle of this struggle.

Me trying to stay calm..#justbepresent Yogo challenge.

Me trying to stay calm..#justbepresent Yogo challenge.

Hello JavaScript

                                                Screenshot 2014-12-05 at 12.38.28 PM

JavaScript is a programming language and one that I am currently learning.

 

JavaScript is the client-side language that allows the user to interact with the website. For example, pop-ups, scroll bars, and automated updates all are created using JavaScript.

 

This week I dusted off my Algebra skills (thanks Khan academy) to build a fahrenheit to celsius converter.

Another task I tackled was creating a prompt and alert that tells the user how many days are in a million seconds.

 

Of course, I had to figure out the math problems before writing the code.

 

To do the math I used a JavaScript tool called repl.it It stands for read, evaluate, print, and loop. Then I used my new found coding skills in JS Bin.

Screenshot 2014-12-01 at 7.08.54 PM

Screenshot 2014-12-01 at 7.09.14 PM

I programmed that;)

Learning JavaScript is challenging, but I always love a good challenge! Hello JavaScript and, we meet again Algebra.

To learn more about JavaScript I signed up for their newsletter. http://javascriptweekly.com/

P.S.

 

Don’t forget to do your “Hour Of Code