DEV Community

Discussion on: Getting Started with Ruby - Beginner

Collapse
 
tomhockett profile image
Tom

Good start. I would say that it is not standard practice to use multiline comments the way you describe:

Rubocop Rule on Multiline Comments

Installing Rubocop is an excellent guide in your learning, as it will hook into Solargraph and correct these errors. In Ruby, there are a number of ways to do the same thing, but the community (and big style guides) have decided on best practices. It's good to learn those at the same time as you learn Ruby.

It's not necessary to learn every way to do something in Ruby - just learn the standard way of doing things.

Collapse
 
catevee profile image
Cate

Thank you for correcting me on that. I will definitely check the Rubocop rules on multi line comments.