TLDR Web Dev

TLDR WEB DEV 2024-10-09

5 sections17 entrieslinks blockcomplete parse

Parse notes

  • Subscription/account footer truncated before parsefooter_truncated

01ARTICLES & TUTORIALS

MIGRATING IN-PLACE FROM POSTGRESQL TO MYSQL

Yelp Reservations, acquired in 2013, was originally built with a PostgreSQL database. Recently, the service was migrated in-place to a Yelp-standard MySQL database. This involved overcoming challenges like data consistency, handling PostgreSQL-specific features, and managing the release process with minimal service disruption.

engineeringblog.yelp.com11 min read

DO NOT USE SECRETS IN ENVIRONMENT VARIABLES. HERE'S HOW TO DO IT BETTER

Storing secrets in environment variables is a common practice but actually may be a security risk when secrets are poorly managed, leaked through frontend code, exposed in .env files, logged unintentionally, or inherited by child processes. Developers should try to use secrets stores instead.

nodejs-security.com24 min read

SMOLDERINGLY FAST B-TREES

The benchmark matters when comparing the performance of B-trees and hashmaps. Different benchmarks show hashmaps benefit more from cache behavior and speculative execution. B-trees avoid hashmap pitfalls like flooding and rehashing, but hashmaps with additional measures for order and iteration may be easier to use in development.

scattered-thoughts.net16 min read

02OPINIONS & ADVICE

COGNITIVE LOAD IS WHAT MATTERS

Cognitive load refers to the mental effort required to understand and work with code. Excessive cognitive load can lead to confusion, errors, and delays. Developers should work on reducing extraneous cognitive load while working on code by avoiding overly complex conditionals, minimizing inheritance, and using clear, self-describing variable names.

github.com18 min read

THE STATIC SITE PARADOX

Ironically, professional software engineers are more likely to use simple static HTML websites for their personal blogs, while regular users are often stuck with more resource-intensive CMS platforms like WordPress. This disparity is because creating a static website requires technical knowledge and effort that many users lack, while readily available CMS solutions are much easier to use (even though they are more complex under the hood).

kristoff.it4 min read

A MODEST CRITIQUE OF HTMX

htmx is an open-source front-end JavaScript library that extends HTML with custom attributes that enable the use of AJAX directly in HTML. While the core concept of htmx is appealing, its implementation is more complicated because of issues with inheritance, state management, and integration with other libraries like React. For example, htmx's reliance on replacing DOM elements wholesale causes problems with maintaining browser-local state and conflicts with libraries like React that manage their own state.

chrisdone.com5 min read

03LAUNCHES & TOOLS

Sponsored

SPEAKEASY: GENERATE HANDWRITTEN SDKS IN +10 LANGUAGES

Why spend hundreds of hours your team doesn't have on building and maintaining SDKs? With Speakeasy, [10] you can upload your OpenAPI spec and get SDKs your API users will love, including OAuth2.0, custom

speakeasy.comSponsor

BRISA

Brisa Framework is a web platform framework that aims to unify server and client-side development. It offers server-rendered JSX components and minimal JavaScript shipped to the browser. Brisa uses a web component island-based architecture, allowing for interactive elements to be rendered on the server and hydrated on the client with native Web APIs.

brisa.buildTool

PLAYER.STYLE

Player.style offers a collection of pre-built video and audio player themes designed to be easily implemented in any web player or app framework.

player.styleTool

04MISCELLANEOUS

THE REAL DATA WALL IS BILLIONS OF YEARS OF EVOLUTION

The current focus on data as the driving force of AI progress is misguided. Instead, the real data wall is the vast amount of information encoded within our evolutionary history, far exceeding any data set used in AI training. This "evolutionary data" includes not only DNA but also the complex information embedded in the structure and function of our cells.

dynomight.substack.com10 min read

IS AGE REALLY A FACTOR IN TECH?

Age doesn't matter in tech as long as individuals possess the necessary skills. While some tech giants are taking steps to address age diversity, there still needs to be systemic changes to combat ageism in tech.

trevorlasn.com5 min read

ON THE NATURE OF TIME

From a computational perspective, time is not a fundamental coordinate but rather a reflection of the universe's computational processes. This idea is supported by the concept of computational irreducibility, which states that the only way to determine a system's future state is to trace through each computational step. Time, therefore, becomes a robust and irreplaceable element of our experience, reflecting the fundamental nature of computation.

writings.stephenwolfram.com32 min read