TLDR Web Dev 2024-05-22

Don’t write clever code 🚫, say no more often πŸ™…, open-source analytics πŸ“Š

Articles & Tutorials

How Slack Built a Distributed Cron Execution System for Scale (8 minute read)

Slack initially relied on cron jobs for its notification system but found it hard to scale. To address this, its team developed a new cron execution service using Go and Kubernetes for scalability and a leader-follower architecture for simplified synchronization and rapid failover. This service offloads resource-intensive tasks to a job queue, using Kafka for durability and Redis for efficient dispatch to worker nodes, and tracks job execution with a Vitess table for deduplication and monitoring.

Avoid the Long Parameter List (2 minute read)

Long parameter lists in functions can be hard to understand and maintain. Instead, it's better to create value objects that group related parameters into a single object. This makes the function calls simpler and makes the code more maintainable.
Opinions & Advice

I Want Flexible Queries, Not RAG (2 minute read)

This author is against the hype around RAG, which is used to help LLMs generate references alongside its answers. Instead, they believe that the flexible queries of LLMs are more valuable and prefer direct access to the relevant information.

Why You Should Say No More Often (7 minute read)

Saying no can help you prioritize your most important work and avoid overcommitting. Say yes to things that energize you and ask yourself if you would still be excited about the opportunity if it were happening tomorrow. If you're still unsure, defer the decision by asking the person to follow up later.

Clever code is probably the worst code you could write (5 minute read)

Although clever code feels impressive to write, it's often unmaintainable and unreasonable to write in production. Code that is easy to understand and readable is arguably harder to write than clever code. This article provides tips and resources for getting better at writing clear code, along with an anecdote about the difficulties of writing clear code and an email about coding style from John Carmack.
Launches & Tools

Openpanel (GitHub Repo)

Openpanel is an analytics tool for logging events on the web, mobile, and backend. It allows developers to visualize their data, create dashboards, access all events and visitors, and self-host the application.

pls fix (Website)

pls fix is a marketplace that connects verified Big Tech employees with people looking for help to unlock their accounts that may have gotten banned or locked unfairly.

DeskPad (GitHub Repo)

DeskPad is a virtual monitor application for Mac that creates a mirrored display within its window, making for easier screen sharing and providing a dedicated workspace for users.

UI Density (20 minute read)

UI density is more than just visual clutter, it's about the amount of information an interface conveys over time. Dense interfaces should take into account temporal density (how quickly a user can complete tasks) and value density (whether the design leads to valuable outcomes).

Taking Risk (10 minute read)

UK graduates from top universities tend to favor stable jobs over riskier startup ventures. This is probably due to a cultural difference, with the US embracing a more positive-sum mindset towards risk and business growth.

Building an AI game studio: what we've learned so far (11 minute read)

Braindump is an AI game studio that lets users build top-down/2.5D games by typing prompts. It allows users to define units, abilities, and attributes, as well as populate the game map with objects and create game rules. Two challenges in building AI games were designing an intuitive user interface for prompting the AI and creating a streamlined "game API" that provides enough structure for the LLM to focus on filling in code and data.
Quick Links

Graph Game (Website)

Games that test your understanding of neural networks - choose a neural network and then try to assemble it.

When Online Content Disappears (7 minute read)

An analysis from the Pew Research Center shows that a quarter of web pages from 2013 to 2023 are no longer accessible.

A New Way to Store Knowledge (5 minute read)

You can use a single plain text file, structured with custom parsers to define measures, measurements to define concepts, and comments attached to measurements using indentation, for all tabular knowledge.
Get our free, 5-minute newsletter read by 350,000 frontend, backend, and full stack developers
Join 300,000 readers for