
Developer and Engineering Leader. Previously Director of Engineering @Shopify.
Ottawa
Joined July 2007
- Tweets3.7K
- Following404
- Followers1.7K
- Likes507
John Duff retweeted
I tried to explain why I don't believe the recent accusations toward my former teammates, as well as how the Ruby and Rails Infra team at Shopify operates and why it can be trusted.
byroot.github.io/opensource/…
John Duff retweeted
Meet Gadget, the first development and hosting platform with an AI that will set up infra, write code, debug, deploy, and scale every part of your app.
Ship with confidence, knowing that every part of your app is built right.
gadget.new
John Duff retweeted
I want to write a post about Pitchfork, but before I can get to that I need to share some thoughts.
I suspect this one may be more controversial than the optimizing JSON series 😅.
byroot.github.io/ruby/perfor…
It’s kind of cool having people connect with you and mention seeing your code in @Shopify core after being gone for ~7 years. Also, I’m sorry if you need to deal with the code I wrote 7+ years ago 😬
Over the weekend put together a little patch to the Shopify cli to allow templating in toml config so you can use environment variables, if anyone is interested in that github.com/Shopify/cli/pull/…
1
5
958
Just discovered github.com/ds300/patch-packa… as a way to apply patches to javascript packages in your local project, pretty cool.
2
1
480
Found it difficult to go off the happy path with the shopify_app gem in the past so implemented the auth flow myself and came up with gist.github.com/jduff/bedc2e…
A few things still missing and the gem has a lot more in it, but pretty happy with how simple the core auth flow can be.
1
2
423
Apparently Basic users on @newrelic can upgrade themselves into being full users, without account owner approval, causing you to be billed full users you did not intend to add. Missed the first one, caught the second one after a minute and downgraded. Still being charged :/.
That feeling when @Shopify status page is green but you're getting orders/paid webhooks 30 minutes after order_transactions/create so you know something is up.
1
3
490
Putting something together with the @Shopify admin-links api shopify.dev/docs/apps/admin/… and one of the params you get passed is named 'session' but I can't find any docs on what you can use it for. I was hoping to pull out the current Shopify user info.
Spent a lot of this week improving queries and performance in our rails app. @newrelic and pghero github.com/ankane/pghero have been super valuable to help out with this, highly recommend these tools!
1
341
John Duff retweeted
The Rails documentary is now live! Such a heartwarming look at our history, the early days of creation, and some of the key people who were there at the outset. youtube.com/watch?v=HDKUEXBF…
Used ActiveRecord::Base.none in some code the other day. Can be useful when chaining scopes that could return an empty set of records api.rubyonrails.org/classes/…
1
239
@Shopify Post purchase ext:
-Click “Request Access”
-Deploy a "staging" app for post purchase, submit to App Store for review
-Reject, missing post purchase request on staging app
-Submit
-Reject, listing on staging app incomplete (link to listed app don't count)
-Submit
-😭
449
John Duff retweeted
The reason Shopify can handle sales like this is the result of years of building up their systems and learning many painful lessons. A brief thread…
John Duff retweeted
Out-of-context Slack screenshot responding to someone's question as to why I recommend avoiding RSpec. I was a huge RSpec fan through 2012 or 2013 but gradually flipped to thinking it was more harmful than helpful in practice.
John Duff retweeted
If you're a Rubyist who wants to "give back" by offering six 1/2 hour calls to an early (or pre-) career developer you could do worse than sign up to this new thing I made.
firstrubyfriend.org








