Blog Post #5

Hello everyone, week of October 18-22 was ups and downs. Tears, tears, and more tears because I was still having trouble with the coding language in Ruby(Codecademy) and how it applies in real life. As a former CPS teacher I had tools to use in class…


This content originally appeared on DEV Community and was authored by Edouble79

Hello everyone, week of October 18-22 was ups and downs. Tears, tears, and more tears because I was still having trouble with the coding language in Ruby(Codecademy) and how it applies in real life. As a former CPS teacher I had tools to use in class whether it was classroom management, how to speak, how to facilitate and how to execute the curriculum to my students. In this IT world I am having a difficult time learning what first_prisms, Blocks, Procs, Lambdas mean. Interpolation was another one!

Towards the end of the week I began another lesson called "Object-Oriented Programming" which was interesting and fun. Here's a syntax I learned in Ruby that describes @ symbol before a variable to signify that it is an instance variable.

class Person
  def initialize(name)
    @name = name
  end
end
matz = Person.new("Yukihiro")

Another syntax I learned was that the attributes in a parameter correspond to what makes up a vehicle, see example below.

class Car  
  def initialize(make, model)
    @make = make
    @model = model
  end
end
Kitt = Car.new("Pontiac", "Trans Am")


This content originally appeared on DEV Community and was authored by Edouble79


Print Share Comment Cite Upload Translate Updates
APA

Edouble79 | Sciencx (2021-10-22T17:12:32+00:00) Blog Post #5. Retrieved from https://www.scien.cx/2021/10/22/blog-post-5/

MLA
" » Blog Post #5." Edouble79 | Sciencx - Friday October 22, 2021, https://www.scien.cx/2021/10/22/blog-post-5/
HARVARD
Edouble79 | Sciencx Friday October 22, 2021 » Blog Post #5., viewed ,<https://www.scien.cx/2021/10/22/blog-post-5/>
VANCOUVER
Edouble79 | Sciencx - » Blog Post #5. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/10/22/blog-post-5/
CHICAGO
" » Blog Post #5." Edouble79 | Sciencx - Accessed . https://www.scien.cx/2021/10/22/blog-post-5/
IEEE
" » Blog Post #5." Edouble79 | Sciencx [Online]. Available: https://www.scien.cx/2021/10/22/blog-post-5/. [Accessed: ]
rf:citation
» Blog Post #5 | Edouble79 | Sciencx | https://www.scien.cx/2021/10/22/blog-post-5/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.