Kang-Kyu Lee

November 19, 2024

install Ruby

For Ruby you should install at first, and it's not hard. First, install homebrew from the terminal. Second, install rbenv. And then install Ruby with rbenv command: "rbenv install 3.2.6" Now you installed Ruby version 3.2.6! See you next time!
Read more
November 3, 2024

Ruby itself

in Ruby, there's this "itself" method. If you say thing1.itself, it returns the value of thing1. Yes, it is used sometimes, for example group_by(&:itself) will group a list by element itself! That's it for today. See you next time!
Read more
October 31, 2024

Ruby shorts 2

in Ruby, everything has its "class" Even the numbers. 1.class will give you Integer. One more thing. You can make your own class with the "class" keyword. class YourClass end yours = YourClass.new # remember "new" here yours.class will return "YourClass" See you next time!
Read more
October 31, 2024

Ruby shorts

In Ruby coding, there's this "@" and it does passing something (a variable to another method). Let me show you what I mean. Here's an example in Ruby on Rails. When you have that "@" in the code, it shows the number on the screen, as you see. def show @post = Post.find(params[:id]) end <%= @post %> If I remove it from the same code, it...
Read more
August 30, 2024

Please learn Python

Let's learn Python! It will be an exciting journey from quick data visualization to artificial intelligence.
Read more