dev-

Joined September 2012
67 Photos and videos
Pinned Tweet
16 Oct 2019
1
dev- retweeted
16 Jun 2023
Problem: When you deploy a new version of your SPA, users with a tab open will keep using the old SPA code. Yesterday, I shared one solution. People suggested dozens of useful variations and alternatives. 🙏 So, here are the best options in the massive thread. 6 ways to tell the SPA a new release is available, simplest options first: 1. Write the version from package.json into index.html as part of the build process. Poll index.html every x minutes and compare the server's index.html to the client's index.html. 2. Create an endpoint on the UI web server that reads the package.json version, and returns it. Poll this every x minutes. This is more efficient than option 1, because the payload is smaller. 3. Use web sockets or server sent events to push a notification to the UI after a deploy instead. This is especially attractive if you’re already using these technologies. 4. Use a service worker to notify the user when the UI is stale. For example, Vite's PWA plugin supports this. 5. Use an API proxy like Cloudfront to fetch the version without involving the backend. More here: rehanvdm.com/blog/using-a-cl… 6. Specify the app version in each HTTP call from the UI via a x-app-version header (or whatever name you like). Validate the x-app-version header on the API server. If x-app-version doesn't match the server's version, notify the UI in the response, either via an HTTP 205, 400, or 422 (the HTTP response you return depends on whether you want calls from a “stale” UI to succeed).

14
75
531
97,241
dev- retweeted
A really cool idea for REPL: The 'explain' command that takes a piece of code and describes its every part in a beginner-friendly way. I don't recall any programming language doing this. Here's my prototype for OCaml 👇 What do you think?
74
224
1,626
131,808
dev- retweeted
Explicaciones animadas sobre desarrollo web 🚀 🤘 Descarga la animación en formato webm 🤘 Copia el código para incluirlo en tu proyecto webdevvisuals.com/
13
221
892
105,752
dev- retweeted
Future CSS Tip! 🔮 Use scroll-driven animation to animate non-ancestor elements w/ timeline-scope 👀 main{ timeline-scope: --a; }👈 hoist! .a{ view-timeline: --a; } .i{ animation: indicate; animation-timeline: --a; } Peep the contact list indicators ✨ @CodePen link below! 👇
5
75
434
56,809
dev- retweeted
✨ Accidentally built a pretty cool web3 app starter kit when working on web3host. It uses @nextjs's new app router and server actions, Sign in with Ethereum, includes team scaffolding (w/ user roles & invites), and much more! Check it out on GitHub 👉 github.com/m1guelpf/armchair
31
51
631
114,783
dev- retweeted
Remote work was a mistake. After two years of being fully remote, we're now going back to in-office. This is a hard task because we need to relocate every team member. Check out our new headquarter and why we are getting back in person. A thread 🧵
213
487
3,915
2,359,281
dev- retweeted
19 May 2023
@DavidKPiano "The two ways to manage state"
2
3
16
4,192
dev- retweeted
Holy shit. How is this the first time I am reading apenwarr.ca/log/20201227 by @apenwarr? It is the best thing I have ever read on systems architecture, design thinking, and maybe engineering levels too. 🤯🔥 On engineers whose systems thinking skills surpass their coding skills:
8
64
478
107,738
dev- retweeted
15 Jun 2022
Basic JWT Auth Flow:
12
422
1,926
dev- retweeted
14 Jun 2022
System Design Interview Cheat Sheet
10
380
1,919
dev- retweeted
12 Jun 2022
Design pattern to write better code
116
1,591
8,059
dev- retweeted
15 Apr 2021
Two pet peeves: 1. Developers who don't participate in code reviews 2. Developers who merely approve all pull requests Ignoring or "rubber stamping" pull requests is malpractice. Carefully reviewing PRs and providing thoughtful feedback/questions is part of each dev's job.
13
24
169
9 Apr 2021
Feature Flags are not an excuse for not writing your tests.
1
1
dev- retweeted
From an Amazon tech lead: soft skills I’d tell my younger, jr software engineer self. 🧵 👇
48
743
2,816
dev- retweeted
1. Start to parse the HTML 2. Fetch external resources 3. Parse the CSS and build the CSSOM 4. Execute the JavaScript 5. Merge DOM and CSSOM to construct the render tree 6. Calculate layout and paint { author: @jstarmx } #DEVCommunity dev.to/jstarmx/how-the-brows…
3
80
356
dev- retweeted
11 Sep 2020
🎉 We're excited to announce "GraphQL at Enterprise Scale", a completely free ebook written by Apollo Engineers. Learn how to scale GraphQL in the Enterprise with Federation and Apollo Studio. apollographql.com/blog/annou…

35
110
dev- retweeted
High Scalability and "Stuff the internet says on scalability" articles are distinct, fun, informative and marathon reads: highscalability.com/ And High Growth Engineering has distinct drawings in each issue, related to engineering practices: highgrowthengineering.substa…

2
3
33
dev- retweeted
27 Jun 2020
Let’s talk about High Agency: an attitude I’ve seen in every successful product manager & leader I’ve known. Some ppl are born/raised with High Agency. It can also be developed later in life. High agency is a prerequisite for making a profound impact in one's life & work 1/20
244
1,737
8,005