| ๐ | https://github.com/judofyr |

How does everyone order their methods in a class?
# Alphabetical
def a; end
def b; end
# Importance
def business_logic; end
def utility_method; end
# Invocation sequence
def call
called_first
called_second
end
def called_first; end
def called_second; end
Hey, folks! My company is looking for devs and QAs :D
We use Ruby!
๐๐ผ We're hiring! We're currently looking for a full-stack dev and a QA engineer ๐ค Check out our open positions here!
https://jobs.apptweak.com/ #ASO #AppStoreOptimization #talent #recruitment #AppMarketing
๐ฆ๐: https://twitter.com/AppTweak/status/1136933497577385991
Converted the Rails style guide and the Ruby style guide to AsciiDoc, too.
Go check it out!
- https://github.com/rubocop-hq/rails-style-guide/
- https://github.com/rubocop-hq/ruby-style-guide/
Why AsciiDoc? It's hard to write a blog post. It's easy to write an email. AsciiDoc was created to be easy to write in the first place.
Ruby tip:
class Foo
def self.value
@value ||= defined?(super) ? super : DEFAULT_VALUE
end
end
this will turn Foo.value into a value you can configure per class (with a default), and you'll automatically inherit the superclass' value