Andy Waite

Results 236 issues of Andy Waite

The guide advises using `fetch` for hashes. I discovered recently that Array also supports `fetch`, so that attempting to retrieve a non-existing element raises an `IndexError` rather than returning `nil`:...

New Rule

I'm trying to call `RateLimit#context` (as added in https://github.com/octokit/octokit.rb/pull/1270) but the fields are all `nil`: ``` [2] pry(#)> e => # [3] pry(#)> e.context => # ``` Running v4.22.0 (against...

bug

A block such as `it "..." do` containing a very long description string is likely a sign that either the test or the implementation is too complex.

See https://github.com/rubocop/rubocop-rails/discussions/672

The [Rails upgrade](https://guides.rubyonrails.org/upgrading_ruby_on_rails.html) process can be tricky. When using the `rails app:update` command, a line will be added to `load_defaults` corresponding to the previous Rails version. For example if you're...

feature request

This was an idea from @avdi: https://twitter.com/avdi/status/1202702640397856768?ref_src=twsrc%5Etfw > Idea for a Rails linting rule: every AR find must either be in a conditional or be a bang > > Either:...

I discovered some code like this: ```ruby delegate :foo, to: self ``` `foo` is a class method. So calling `foo` in an instance method would be equivalent to `self.class.foo`. I...

Safari Version 15.2 (17612.3.6.1.6) Apple M1 Pro In the Learn React course, the images appear as a broken icon in the browser preview, e.g. at the –2:25 timestamp in https://scrimba.com/learn/learnreact/project-setup-navbar-cob544349a4494c348ab844f0...

It's my own fault, but I just got a $150 Heroku bill because I tried the Deploy To Heroku button then forgot about it 😭

I have dug in deeply, but there seems to be a problem with the latest `bcrypt` release (3.1.17): ``` 16:48:12 web.1 | Started POST "/users" for 127.0.0.1 at 2022-04-01 16:48:12...