Skip to content

Instantly share code, notes, and snippets.

@hubertshon
hubertshon / TIL.md
Last active November 24, 2020 21:16

2020.05.19 - Today I learned how initalize directories and push files to Github.
2020.05.20 - Today I learned how to condense the code in a Class instance with attribute readers, attribute writers, and attribute accessors.
2020.05.20 - Today I learned to simplify hash notation with JSON style.
2020.05.21 - Today I learned how to setup default values in the initialize method with the or operand.
2020.05.21 - I also learned that a block variable can be used in place to iterate through an array.
2020.05.21 - TIL that to pass methods results to other methods, the proper syntax is method_a(argument_for_result)
2020.05.22 - TIL how to parse data from APIs with Ruby
2020.05.25 - TIL how to setup a simple web response with Rails. Web Request, API Route, API Controller, API View, Web Response
2020.05.26 - TIL how to set up a model in Rails
2020.05.26 - TIL that the && operator will not move on if the first statement is false