DEV Community

AB
AB

Posted on

TIL - My First Dive into Ruby!

puts "hello world"
Enter fullscreen mode Exit fullscreen mode

Today marks the beginning of my journey into the world of Ruby! My first discovery was the straightforward way to print output using puts.

One of the most interesting things I've learned already is about Ruby's indentation. Unlike Python, where indentation is syntactically enforced and crucial for code execution, Ruby uses it primarily for readability. The interpreter doesn't rely on it; instead, Ruby uses keywords like end to explicitly close code blocks. This is a neat difference!

What I truly love about coding is how diverse it is. The choice of programming language often depends on the ecosystem you're working in and the product you're building. While core programming concepts remain consistent across languages, each one offers unique approaches and philosophies. It's fascinating to see how individual developers adapt and express their ideas within these different frameworks. I'm really excited about this learning journey!

Top comments (0)