Email Details

Data sync explained 🔄, Epic sues Google and Samsung ⚖️, re-invent the wheel⚙️

React Query tackles the challenge of data synchronization by keeping the data displayed on the screen up-to-date with the server state. 

TLDR

Together With

 TLDR Web Dev 2024-10-01

Generate handwritten SDKs (Sponsor)

🤔 Invest hundreds of hours your team doesn't have in maintaining SDKs by hand…

🤨 …or generate half-baked SDKs that leave a bad taste in your users' mouths?

Those are two bad options.

Fortunately, you have a third choice…

😍 Use Speakeasy to generate ergonomic, type-safe SDKs in over 10 languages.

Speakeasy's generator is designed based on input from language experts, so it gets the details and the nuances just right.

Build SDKs that your team is proud of, and that other developers rave about. Add OAuth2.0, custom code, retries, pagination and more.

Upload your OpenAPI spec to get started ↗️

🧑‍💻

Articles & Tutorials

How we built ngrok's data platform (23 minute read)

Ngrok built its data platform with an engineering team of just one person, using open-source tools and self-hosting on Kubernetes. They had challenges like complex schemas and large data volumes, which were addressed through code generation, schema normalization, and scaling Apache Flink with Protobuf messages.
Data Synchronization (8 minute read)

React Query tackles the challenge of data synchronization by keeping the data displayed on the screen up-to-date with the server state. It uses a "Stale While Revalidate" strategy, where data is considered stale by default and refetched in the background when triggers like changes in query keys, new component mounts, window focus, or device going online occur. This allows for a smooth user experience with instant data delivery while still making sure the cache stays synchronized with the server.
Phrase Matching in Marginalia Search (18 minute read)

A search engine added phrase matching by transitioning from approximate word position storage to storing precise positions using compressed lists. This change required implementing a new way to store information about word occurrences within different document fields. The ranking algorithm was upgraded to take advantage of the new phrase matching capabilities, incorporating factors like phrase presence, keyword distance, and early occurrence.
🧠

Opinions & Advice

When To Do What You Love (8 minute read)

If your main goal is to make money, you may have to compromise on your passion, as most people pay you for what they want, not what you want. However, if you are passionate about something that is also in high demand, like a niche market, you can potentially earn a living from it. Building a startup can be a viable option here, but mostly if it arises from your own passions and interests.
The Grug Brained Developer (24 minute read)

This is a list of various pieces of advice on writing good software. For example, good devs fight against complexity, say "no" to unnecessary features, and embrace simple solutions. They are also patient and refactor thoughtfully.
Don't be Afraid to Re-Invent the Wheel (5 minute read)

Relying heavily on external codebases can create risks like security vulnerabilities, dependence on third-party maintenance, and ongoing integration work. It's fine to sometimes replicate external code from packages in internal codebases because this gives developers better control and security over that code.
🚀

Launches & Tools

The Front-end Developer Kit (Sponsor)

This collection of Datadog resources is worth a bookmark for any front-end developer (or anyone who finds themselves doing front-end work). It includes a technical best practices guide, a solutions brief on catching and resolving issues proactively, and a popular recorded webinar on how to better monitor and optimize front-end apps. Access all resources here
HumanifyJS (GitHub Repo)

HumanifyJS is a tool that uses LLMs and Babel to deobfuscate, unminify, transpile, decompile, and unpack JavaScript code, making it more readable for humans.
Facad (GitHub Repo)

Facad is a colorful directory listing tool for the command line that features emoji-based file and directory icons, sorted output, support for symlinks and executables, and customizable column width.
Evolution API (GitHub Repo)

EvolutionAPI is an open-source WhatsApp integration API that provides a RESTful API service for controlling WhatsApp functions, allowing users to create multiservice chats, service bots, and other systems utilizing WhatsApp.
🎁

Miscellaneous

Do AI companies work? (6 minute read)

AI companies face economic challenges due to the high costs of building and maintaining models. As newer and more advanced LLMs emerge, older ones quickly become obsolete, making it easy for a company to be left behind. Now, companies must either spend enormous amounts of money to stay ahead or risk falling behind and losing market share.
Epic is suing Google — again — and now Samsung, too (8 minute read)

Epic Games is suing Google and Samsung. The lawsuit focuses on Samsung's "Auto Blocker" feature, which makes it difficult for users to install apps from third-party stores. Epic argues that Auto Blocker is designed to protect Google and Samsung's app stores, not users, and that it is blocking the growth of the Epic Games Store.
No such thing as exactly-once delivery (4 minute read)

The difference between delivery and processing in messaging systems is that delivery refers to the act of successfully transferring a message to a receiver, while processing covers the entire message lifecycle, including delivery, processing by the receiver, and acknowledgement. Sequin is a Postgres streaming library that prioritizes exactly-once processing by making sure that every message is delivered, processed, and acknowledged without duplication. Achieving exactly-once delivery is practically impossible due to the two-phase commit problem - confirming the simultaneous confirmation of message delivery across different locations.

Quick Links

Bop Spotter (Website)

Bop Spotter is an experimental project that is using a modified Shazam app attached to a pole to monitor music trends in San Francisco's Mission district.
Are you saying that my code is boring? Thank you! (5 minute read)

“Boring” code is the best kind of code because it allows teams to focus on solving business problems without the distraction of technical complexities.
Don't believe the hype: AGI is far from inevitable (3 minute read)

Despite claims from large tech companies, achieving artificial general intelligence (AGI) with human-level cognition is still far away due to the need of both further improvements in AI along with more compute power.
Y Combinator Traded Prestige for Growth (4 minute read)

Y Combinator is experiencing a decline due to its overemphasis on growth over prestige.

Love TLDR? Tell your friends and get rewards!

Share your referral link below with friends to get free TLDR swag!
Track your referrals here.

Want to advertise in TLDR? 📰

If your company is interested in reaching an audience of web developers and engineering decision makers, you may want to advertise with us.

If you have any comments or feedback, just respond to this email!

Thanks for reading,
Priyam Mohanty, Jenny Xu & Ceora Ford


If you don't want to receive future editions of TLDR Web Dev, please unsubscribe from TLDR Web Dev or manage all of your TLDR newsletter subscriptions.

© 2024 Email Dashboard. All rights reserved.