Self Reflection for April 26

Throughout these past weeks, I believe I did great, but I was discussing conversations with my peers which could make it seem like I wasn’t working, but I actually got to 42% which was way past my 35% goal.

Throughout these percents on Ruby, I’ve been learning the basics of Ruby (similar to Python) and how they work. One major thing I learned is that Python only uses print while Ruby uses both print and puts which is different to Python. The difference between print and puts is that puts prints the text then puts the equivalence to pressing enter. For example:

puts "There will be a space between me and the next line"
print "See "

Will turn into:

There will be a space between me and the next line
See nil

The other thing I noticed as I was working through Ruby is that after all code it says “nil” which basically means the end of the code or it represents nothingness according to this website: https://goo.gl/LikSSP .

Another thing I learned is how to loop through arrays which is different from Python:

a = [1, 2, 3, 4 , 5]

for number in a:
     print number

returns with:
1
2
3
4
5

It’s like this in Ruby:

numbers = [1, 2, 3, 4, 5]

numbers.each { |number| puts number}

returns with:

1
2
3
4
5

which is quite different from Python but gives the same results. Although it doesn’t look hard it’s still confusing to memorize and remember to do array_name.each { |element| puts/print element }.

Overall I learned quite a bit over these weeks even though we had the spring break.

My old goal was too easy than what I expected but that may be because Ruby has fewer lessons that Python did, so my next goal is to get from 42% to around 65%.

 

 

Self-Reflection April 6

Throughout these past few weeks, I believe I gave it my all as not only have I completed my goal but exceeded and did more than my goal requested me to do. My old goal was to finish the python code (which I did) and start thinking about what program I would like to learn next. I’ve decided to work on Ruby as the program is relatively similar to Python and I also worked a bit on Ruby itself and got to 26% already:

Similar to Python, we learned the basics of “And”, “Or” and “Not” but one difference from Python is how it is formatted.

Below is how Ruby formats And:

Below is how Ruby formats Or:

Below is how Ruby formats Not, which is similar to Python:

Since my last goal seemed a bit too easy and I easily got up to 26%, my next goal for the next two weeks is to get up to 35% and next week I’ll see whether ≈10% is a good goal or not.