home.social

#standardrb — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #standardrb, aggregated by home.social.

  1. 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

  2. @here_for_code @evilmartians I like #standardrb because it uses #RuboCop but only implements basic and non-controversial rules that help with linting.

    I occasionally use #RubyMine for the (putatively) automated refactorings and to play around with #AI integrations, but I'm a #CLI guy and don't find IDE's very intuitive. I use heavily customized #vim, #ack or #thesilversearcher, and #ctags for day to day stuff. It just seems faster to me, but that could just be muscle memory and habit. 😄