Émile J. Bergeron 🇨🇦

877 posts

Émile J. Bergeron 🇨🇦 banner
Émile J. Bergeron 🇨🇦

Émile J. Bergeron 🇨🇦

@emile_ber

Sr. Dev @Shopify, prev. @UbisoftSaguenay | @saglacio meetup/conference co-host | #TypeScript and #GraphQL advocate | active member on @StackOverflow

Saguenay, Québec Katılım Ekim 2017
385 Takip Edilen205 Takipçiler
Sabitlenmiş Tweet
Émile J. Bergeron 🇨🇦
Émile J. Bergeron 🇨🇦@emile_ber·
Then and Now. I've been improving my home office for over a year now, from a folding table, to a custom built desktop and handmade acoustic panels!
Émile J. Bergeron 🇨🇦 tweet mediaÉmile J. Bergeron 🇨🇦 tweet media
English
2
0
4
0
Abhijit
Abhijit@abhijitwt·
Is this even legal?
Abhijit tweet media
English
66
11
606
130.2K
David K 🎹
David K 🎹@DavidKPiano·
I wonder how much code out there is unnecessarily slow because it looks like this: const a = await taskA() const b = await taskB() instead of: const [a, b] = await Promise.all([taskA, taskB]) Async/await is a really convenient footgun
English
135
102
3.1K
248K
Émile J. Bergeron 🇨🇦
Émile J. Bergeron 🇨🇦@emile_ber·
A good place to ask about @Shopify's Web Pixels is the community forum since you might get an answer from a dev on the feature team, or from another developer knowing the answer already: community.shopify.dev/c/web-pixels/23
beckett‼️@ecombeckett

Huge shoutout to Emileber from the Shopify staff for this fix. Was the exact solution to a problem I spent hours trying to fix. Shopify Dev Community is amazing! @ShopifyDevs @liam_at_shopify

English
1
0
6
243
Nirmal Sankalana
Nirmal Sankalana@NirmalSankalana·
Has anyone implemented both Shopify App Embed Blocks and Web Pixels in a single extension? I want to track customer behavior and display a custom product set on the page. Any guidance would be appreciated! @Shopify @ShopifyDevs #ShopifyApps #M4193" target="_blank" rel="nofollow noopener">community.shopify.com/c/extensions/c…
English
2
0
0
65
beckett‼️
beckett‼️@ecombeckett·
@emile_ber @ShopifyDevs @liam_at_shopify You’re here!! I looked for you on x to @ you but I couldn’t find your account 😅 It’s interesting, when I was researching the issue, I found someone with the same problem two years ago who never got an answer. Dev forum is so awesome
English
1
0
2
33
beckett‼️
beckett‼️@ecombeckett·
Huge shoutout to Emileber from the Shopify staff for this fix. Was the exact solution to a problem I spent hours trying to fix. Shopify Dev Community is amazing! @ShopifyDevs @liam_at_shopify
beckett‼️ tweet media
English
2
0
12
868
Émile J. Bergeron 🇨🇦
Émile J. Bergeron 🇨🇦@emile_ber·
The "Session recordings with pixels" feature is something I've been working on for the past year and it landed officially today! Partners developing heat maps and session recording apps will now be able to track the new, safer and compliant, checkout! shopify.com/ca/editions/wi…
Émile J. Bergeron 🇨🇦 tweet media
tobi lutke@tobi

Shopify: The Boring Edition. We focused on the hard and unsexy work of nailing the basics, getting all the parts of Shopify to work seamlessly together, and run at tip top performance. You've got to sweat the details. Some of my favorite updates 🧵

English
3
0
17
2.8K
Matt Pocock
Matt Pocock@mattpocockuk·
I don't understand why anyone buys a boilerplate in 2024. Full-stack apps: epic-stack and create-t3-app. Libraries/backend apps: create-typescript-app. 1000% better than anything you can buy.
English
111
77
1.9K
248.5K
Émile J. Bergeron 🇨🇦
Émile J. Bergeron 🇨🇦@emile_ber·
@mattpocockuk I've got away with never having to deep clone, and whenever I see it, it's often not the right approach anyway. Granted, I've never come across an actual use-case for it, and even then, we often have to support older browsers so structuredClone would probably not make the cut.
English
0
0
1
124
Matt Pocock
Matt Pocock@mattpocockuk·
So many folks don't know about structuredClone. It's awesome, built-in, and supported in all major browsers. Let's learn 🧵
Matt Pocock tweet media
English
97
381
4.2K
409.9K
Émile J. Bergeron 🇨🇦
Émile J. Bergeron 🇨🇦@emile_ber·
@Sean_McBeth @TkDodo Auto formatting saves so much time though. It's not even a matter of preferences, it's just efficient not to have a bunch of irrelevant changes in PRs because every teammate uses a slightly different formatter, or none at all.
English
1
0
1
29
Sean
Sean@Sean_McBeth·
I've been working in suggested development for 20 years, so yes, I did live in that world, for quite some time. The obsession with tools like prettier is absurd to me. Not having all the files formatted exactly the same is just not a major impact on anything. All this time and effort and configuration overhead for someone that could never even show up as even a blip on impact. It's just anal retentiveness. When you free yourself of the burden of having to have everything absolutely perfect all the time, you'll gain new levels of productivity.
English
4
0
2
700
Émile J. Bergeron 🇨🇦
Émile J. Bergeron 🇨🇦@emile_ber·
@mattpocockuk Using `satisfies`, the `options` type becomes a mutable tuple of length 2, which, if mutated, fails to account for the mutation. Using `as const` seems to be safer, and simpler, in this case, as you get a readonly tuple. Maybe it has a valid use-case I'm not seeing?
Émile J. Bergeron 🇨🇦 tweet mediaÉmile J. Bergeron 🇨🇦 tweet media
English
1
0
4
609
Matt Pocock
Matt Pocock@mattpocockuk·
InferAsTuple is so sweet when you combine it with satisfies.
Matt Pocock tweet media
English
18
30
424
39.2K
Émile J. Bergeron 🇨🇦
Émile J. Bergeron 🇨🇦@emile_ber·
I used to work on this new customer accounts experience and I can't wait to see what crazy extensions devs will create 😃 Also, I really enjoyed working with @nicklenko, he does communicate as clearly in real life as in this highly produced video! 👌
Nick Lenko@nicklenko

Shopify app devs! 👋 you can build directly into new customer accounts with customer account extensibility (in dev preview) heres a video we made for your to explain how it works and how to get started 👇

English
1
2
7
653
Émile J. Bergeron 🇨🇦
Émile J. Bergeron 🇨🇦@emile_ber·
@housecor I've seen one app that would fetch the whole product table, do the search client side, keeping an array of all the ids that matched, then do another call to the backend with those ids to get the products back, as a neat array. Don't need to tell you we suggested a rewrite!
English
0
0
1
298
Cory House
Cory House@housecor·
Sometimes the divide between the backend and frontend leads to massive waste. Example: I'm looking at a web page that displays 6 numbers. Sounds simple. But, here's how it gets the 6 numbers: It requests an array of 1.2MB (75,000+ lines!) of JSON. 🤯The client iterates over this giant array to generate 6 numbers. Why? Because these 6 numbers are totals, and there's no endpoint that provides the totals. So the UI developer is fetching 1,000's of rows...to display 6 numbers. 🤮 The solution is simple: Create an endpoint that creates the totals on the server and returns the 6 totals.
English
71
20
364
96K
Matt Pocock
Matt Pocock@mattpocockuk·
What do you use template literal types for in TS? I'm talking types, like: type Route = `/user/${string}`; I'm having a mental block and can only think of routes.
English
217
16
432
216.6K