Bradley Schaefer
@soulcutter@ruby.social
He/him. Ruby developer, sometimes engineering manager, and recovering cynic. Outside of tech: dad, reader of fantasy/sci-fi, player of videogames, haver of tattoos, and fan of baseball and stand-up comedy.
ruby.social
Bradley Schaefer
@soulcutter@ruby.social
He/him. Ruby developer, sometimes engineering manager, and recovering cynic. Outside of tech: dad, reader of fantasy/sci-fi, player of videogames, haver of tattoos, and fan of baseball and stand-up comedy.
ruby.social
@soulcutter@ruby.social
·
5d ago
Another rubocop/standardrb gripe:
Style/EmptyLiteral: Use hash literal {} instead of Hash.new
Nah, I have my own heuristics for when to use which one. If it's inside a block with braces, I assert that:
# the "approved" butthole syntax
let(:params) { {} }
looks worse than
# ain't nothing wrong with this
let(:params) { Hash.new }
#rubocop #standardrb #ruby
3
3
0
You've seen all posts