TLDR Web Dev

TLDR WEB DEV 2024-01-15

5 sections16 entrieslinks blockcomplete parse

Parse notes

  • Subscription/account footer truncated before parsefooter_truncated

01ARTICLES & TUTORIALS

HOW APPLE BUILT ICLOUD TO STORE BILLIONS OF DATABASES

Apple iCloud has an extreme multi-tenant architecture with billions of databases. The service stores at least one database for each user using technologies like Cassandra and FoundationDB. Apple's architecture focuses on asynchronous processing, stateless architecture, logical resource isolation, and layer abstractions to handle scalability and reliability needs. Apple ran one of the largest Cassandra deployments globally, but it still experienced scalability limitations. FoundationDB, a distributed key-value store, solved its scalability issues. The article also explains other problems Apple solved in its journey to supporting exabytes of data and millions of queries per second in iCloud.

read.engineerscodex.com10 min read

DYNAMIC PROGRAMMING IS NOT BLACK MAGIC

Dynamic programming is used to optimize certain code use cases by avoiding redundant calculations through caching and memoization. Using sample problems like the edit distance problem, this article shows through code examples how dynamic programming can be used in practice.

qsantos.fr15 min read

02OPINIONS & ADVICE

CODE REVIEWS

Code reviews are not just a bureaucratic formality, but a crucial process to ensure code quality, readability, and maintainability and prevent future issues. Teams should have clear definitions of "Done" and coding standards. Some things to look at during code reviews include PR size, guard clauses, dead code, variable names, and premature optimization.

vadimkravcenko.com16 min read

ASK HN: WHAT IS THE CURRENT DRIVER OF TECH LAYOFFS? (HACKER NEWS THREAD)

Hacker News commenters speculate on what is currently driving tech layoffs, such as the fact that it is now acceptable for tech companies to do layoffs. Another speculation posits that investors like it when companies have extreme hiring during the good times and extreme cutbacks during the bad times. However, each company usually will have different reasons for doing layoffs.

news.ycombinator.com

03LAUNCHES & TOOLS

TRIPLIT

Triplit is an open-source database designed for real-time data synchronization between servers and browsers. It offers features like real-time sync, offline support, relational queries, automatic caching, and live updating queries. Triplit's queries are reactive by default, enabling real-time app updates without extra effort.

triplit.devTool

VANNA

Vanna is an open-source Python framework that allows developers to chat with their SQL database. It uses Retrieval-Augmented Generation (RAG) to convert natural language to SQL queries that answer users' questions.

github.comGitHub repository

04MISCELLANEOUS

HOW M1 MACS MAY LAG BEHIND

M1 Macs may lag behind in AI and machine learning capabilities compared to future Macs with the M2 and M3 chips. Apple silicon chips, including the M1, have hardware support for AI and ML, but M1 chips have limited support for recent AI/ML features, such as bfloat16, a format widely used in AI and ML. M2 and M3 Macs support bfloat16, but the M1 only supports ARMv8.5A, which doesn't include bfloat16.

eclecticlight.co3 min read

THE MORE FEATURES YOU ADD...

Studies show that people judge a product’s quality by the amount of features it has before using it. However, after using a product, they realize the usability issues of having too many features. That means companies need to build products with many features to maximize initial sales, but prioritize the user experience to maximize repeat sales and retention.

lukew.com2 min read