TLDR Web Dev

TLDR WEB DEV 2024-01-23

5 sections15 entrieslinks blockcomplete parse

Parse notes

  • Subscription/account footer truncated before parsefooter_truncated

01ARTICLES & TUTORIALS

HOW TO BUILD A SCALABLE NOTIFICATION SERVICE

Razorpay faced challenges like database bottlenecks and slow customer responses to webhooks when it scaled its notification service. To address these, it implemented prioritized queues, asynchronous database writes, and better quality of service for webhooks. The company prioritized notifications based on customer response times.

blog.quastor.org8 min read

CACHES: LRU VS RANDOM

A random eviction policy performs surprisingly well for large caches. It often outperforms LRU in terms of miss rate, especially when cache size increases. This may mean that different approaches may suit different cache levels. Combining LRU for smaller caches and 2-random for larger ones might be promising. The “random” principle applies to various scenarios beyond cache eviction, like load balancing and data distribution.

danluu.com5 min read

A GUIDE TO ENABLING PARTIAL PRE-RENDERING IN NEXT.JS

With incremental static regeneration (ISR), Next.js enables the pre-rendering of pages containing dynamic data during the build time. This article is a comprehensive guide on enabling partial pre-rendering in Next.js 14, which lets you control which parts of a page are pre-rendered.

blog.logrocket.com9 min read

02OPINIONS & ADVICE

BACKLOG SIZE IS INVERSELY PROPORTIONAL TO HOW OFTEN YOU TALK TO CUSTOMERS

This author built a successful event/ticket service for comics by prioritizing customer feedback over assumptions. He believes that having a large backlog means that you don’t talk to customers often enough. Along with recommending talking to customers more, the author also recommends simplifying UI, observing user usage more, focusing on loyal customers, and creating more MVPs for learning.

bitbytebit.substack.com7 min read

HOW TO DRIVE MEETINGS

Meetings are crucial for senior engineers, but poorly run ones can hurt productivity. Before a meeting, set a clear agenda with shared pre-work. During the meeting, guide the conversation, manage time, and redirect if needed. After the meeting, finalize follow-ups, clearly assign ownership, and share meeting highlights with relevant parties.

developing.dev3 min read

03LAUNCHES & TOOLS

HEAT.JS

Heat.js is a lightweight JavaScript library that generates customizable heat maps to visualize date-based activity and trends. It’s similar to GitHub’s yearly contribution heatmap that is displayed on user’s profiles.

github.comGitHub repository

BRIG

Brig is a user interface toolkit for Node.js. It’s used to load and play QML files, which are used in graphical applications to render objects.

github.comGitHub repository

04MISCELLANEOUS

SHIPPING BLENDED DIFFS

The Split Diff view was launched on GitHub back in 2014. The engineer who shipped it is now looking to ship a new way to review diffs: blended diffs. Instead of showing 2 lines of changes for a single line change (one for the deleted line and one for the added line), blended diffs show the final file view and use AI to generate diff summaries. This article is an interesting read on how a team found a problem, designed a solution, went through design iterations, and implemented the solution with a team of engineers.

markdotto.com6 min read

THE OPEN SOURCE SUSTAINABILITY CRISIS

For open source to be more sustainable, companies need to contribute more to open source contributors through financial support. Today, most open source contributors need to spend extra time on securing sponsorship or taking on extra work to support themselves. Open source maintainers often burn out as a result, leading to a lower velocity of improvement on open source software.

openpath.chadwhitacre.com5 min read

READING QR CODES WITHOUT A COMPUTER

QR codes have different parts, like finder patterns, separators, timing patterns, and format information. Mask patterns hide data and improve readability. Encoding modes specify how data is stored (e.g., numeric or alphanumeric). To decode a QR code, one can use a cheat sheet to identify the mask pattern, read the encoding mode, follow the reading order, find the total number of content bytes, and decode the content using a table. This guide takes readers through this process step-by-step with visuals.

qr.blinry.org6 min read