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
20082026
-
…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
comment by mparramon · 2021-02-16 · in Learning Ruby: Things I Like, Things I Miss from Python -
…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 -
…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...
comment by 22c · 2020-02-18 · in RuboCop 0.80: Ruby static code analyzer and code formatter -
…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 -
…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.
comment by isuke · 2019-06-24 · in Show HN: Get the list of TODO comments with verbose details -
…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 -
There's this: https://github.com/rubocop-hq/ruby-style-guide/pull/65
comment by korijn · 2018-07-03 · in PEP 572: Python assignment expressions has been accepted -
…= 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? -
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 -
…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
comment by ch4s3 · 2016-02-22 · in Don't use the greater than sign in programming -
…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 -
…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 -
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…
comment by bozhidar · 2014-07-23 · in I've never seen a language's style guide recommend avoiding comments before -
…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…
comment by JeremyMorgan · 2014-04-01 · in StackOverflow closed my question, that's why we exist -
▲ 2
The Ruby Style Guidestory by znowi · 2013-12-25 · 0 comments
-
…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
comment by Donito · 2013-02-14 · in Naming programming variables, classes and other things -
…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 -
…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…
comment by scanr · 2013-01-14 · in John Carmack's comment on Doom 3's code style -
▲ 1
Ruby Style Guidestory by danso · 2013-01-11 · 0 comments
-
▲ 1
Ruby Style Guidestory by the-come-ons · 2012-10-09 · 0 comments
-
…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 -
▲ 8
Unofficial Ruby coding style guidestory by clark-kent · 2011-09-16 · 3 comments
-
▲ 14
The Totally Unofficial Ruby coding style guidestory by bozhidar · 2011-09-12 · 26 comments