Hacker GitHub

← All repos

rubocop/ruby-style-guide

View on GitHub ↗ ★ 16,544

A community-driven Ruby coding style guide

23 mentions on Hacker News by 22 people: 5 stories, 18 comments · first 2011-09-12 · latest 2021-02-16

Mentions per year 23 mentions · busiest year 2013 (5)
20082026
  1. …helps a lot with this, and it's quite easy to enforce using the rubocop gem + a GitHub action [1] - https://github.com/rubocop-hq/ruby-style-guide
  2. …variance. For example, most Ruby found in the wild follows some variation found in the style guide: https://github.com/rubocop-hq/ruby-style-guide (same with Scala: https://docs.scala-lang.org/style/ and Rust:…
    comment by kenhwang · 2020-05-15 · in How to Fix Slow Code in Ruby
  3. …style guide nearly 9 years ago with practically no reasoning. Prefer `%w` because why exactly? [1] https://github.com/rubocop-hq/ruby-style-guide/commit/b27eff...
  4. …as needed. Too bad it wasn't published initially on github in 1876. What were they thinking. (1) https://github.com/rubocop-hq/ruby-style-guide
    comment by hirundo · 2019-10-04 · in Rethinking Robert's Rules of Order
  5. …but, there may be too few annotation types. `'HACK', 'OPTIMIZE' is exist in ruby style guide ( https://github.com/rubocop-hq/ruby-style-guide ). Can't add they? or make to able to add they by user them self.
  6. …on this thread[1] in 2014, and it was closed two days ago. I wondered why... guess this is why! 1: https://github.com/rubocop-hq/ruby-style-guide/issues/273
    comment by steveklabnik · 2019-06-14 · in The Ruby Style Guide
  7. There's this: https://github.com/rubocop-hq/ruby-style-guide/pull/65
  8. …= array.grep(/foo/)) do_something(v) # some code end Caught a number of nasty bugs that way. [0]: https://github.com/bbatsov/ruby-style-guide#safe-assignment-...
    comment by lloeki · 2018-04-10 · in Why Does “=” Mean Assignment?
  9. Is this style guide official? https://github.com/bbatsov/ruby-style-guide/commit/592049745...
    comment by singularity2001 · 2016-10-17 · in So you think you know Ruby
  10. …submitted a PR to the Ruby style guide for this, and I can't express how strongly I disagree. https://github.com/bbatsov/ruby-style-guide/pull/546
  11. …just that it's regarded as fairly idiomatic Ruby. bbatsov's popular style guide, for example ( https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier ): The same applies to while/until loops, which can lead to quite succinct code.…
    comment by matthewmacleod · 2015-08-20 · in Imba – A new programming language for the web
  12. …be. It's pretty damn nice in a lot of ways. The community support is of course incredible as well ( https://github.com/bbatsov/ruby-style-guide is great, http://slim-lang.com/ has made markup a non-arduous task, etc). Maybe we can do…
    comment by nchelluri · 2015-07-08 · in Ruby Is Defined by Terrible Tools
  13. There's similar advice in the Ruby Style Guide - https://github.com/bbatsov/ruby-style-guide#no-comments Comments often go out-of-sync with the code, so I think it makes a lot of sense to prefer writing comprehensible code instead of…
  14. …editable like a wiki, and make the accounts something someone already has. For example, - https://github.com/bbatsov/ruby-style-guide - https://github.com/php-fig/fig-standards These are editable by anyone and people already on GitHub so…
  15. …that quote as I was reading some style guidelines for Ruby. In case it's of any interest to you: https://github.com/bbatsov/ruby-style-guide#naming
  16. …the bullet point about using assignment return value. [1] https://github.com/styleguide/ruby [2] https://github.com/bbatsov/ruby-style-guide
    comment by xentronium · 2013-01-16 · in Small Refactorings in Ruby
  17. …kicks in at 30 characters. Interestingly, it's referenced from the ruby style guide here: https://github.com/bbatsov/ruby-style-guide where I can't find a recommended maximum length. We're somewhat sidetracked from the main discussion. I'm…
  18. …their intended use, for control flow. Like explained by the style guide the Github one is based on. https://github.com/bbatsov/ruby-style-guide # boolean expression if some_condition && some_other_condition do_something end # control flow…
    comment by jeltz · 2012-04-05 · in The GitHub Styleguide