John Duff (@johnduff) profile picture

Developer and Engineering Leader. Previously Director of Engineering @Shopify.

Ottawa
Joined July 2007
Photo by John Duff (@johnduff)Photo by John Duff (@johnduff)Photo by John Duff (@johnduff)Photo by John Duff (@johnduff)Photo by John Duff (@johnduff)Photo by John Duff (@johnduff)Photo by John Duff (@johnduff)Photo by John Duff (@johnduff)Photo by John Duff (@johnduff)Photo by John Duff (@johnduff)
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
10
25
12
105
16,543
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…
10
19
4
105
13,003
👋 hey Toronto
2
2
551
Currently migrating integer columns to bigint, how is your day going?
4
10
1,082
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 😬
1
1
18
1,489
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 :/.
1
569
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.
1
368
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…
27
161
29
898
135,153
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
Replying to @Shopify
@Shopify checkout extension approval for existing listed app: -Click “Request Access” -Approved!
1
501
@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
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…
Killer to see the payoff for years of engineering Smoothest Checkout in the world now proven on Shopify for the world's largest flash-seller 🏔️
3
14
5
104
64,821
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.
11
14
11
124
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
11
132
29
270
Software developers like to talk about “right tools for the job” but looking at “right tools for the team” might be a better way of thinking.
1
3