Junko Tahara. Most of the code snippets you mentioned are mentioned in ruby style guides(github.com/rubocop-hq/ruby-style-g...). And rubocop gem automatically points out these code smells and have the option to auto correct it safely(github.com/rubocop-hq/rubocop).
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thank you for your comment, Dharshan! Could you point which code snippets you are referring to?
Junko Tahara. Most of the code snippets you mentioned are mentioned in ruby style guides(github.com/rubocop-hq/ruby-style-g...). And rubocop gem automatically points out these code smells and have the option to auto correct it safely(github.com/rubocop-hq/rubocop).