Newslurp

<< Stories

Does age matter for devs❓, reduce cognitive load 🧠, the static site paradox πŸ˜΅β€πŸ’«

TLDR Web Dev <dan@tldrnewsletter.com>

October 9, 11:09 am

TLDR WebDev
Age doesn’t matter in tech as long as individuals possess the necessary skills. Some tech giants are taking steps to address age diversity β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ  β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ 

TLDR

 TLDR Web Dev 2024-10-09

πŸ§‘β€πŸ’»

Articles & Tutorials

Migrating in-place from PostgreSQL to MySQL (11 minute read)

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.
Do not use secrets in environment variables. Here's how to do it better (24 minute read)

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.
Smolderingly fast b-trees (16 minute read)

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.
🧠

Opinions & Advice

Cognitive Load is what matters (18 minute read)

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.
The Static Site Paradox (4 minute read)

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).
A modest critique of htmx (5 minute read)

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.
πŸš€

Launches & Tools

Speakeasy: Generate handwritten SDKs in +10 languages (Sponsor)

Why spend hundreds of hours your team doesn't have on building and maintaining SDKs? With Speakeasy, you can upload your OpenAPI spec and get SDKs your API users will love, including OAuth2.0, custom code, retries, pagination, and more. Start for free β†’
Brisa (Website)

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.
Player.style (Website)

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.
🎁

Miscellaneous

The real data wall is billions of years of evolution (10 minute read)

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.
Is Age Really a Factor in Tech? (5 minute read)

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.
On the Nature of Time (32 minute read)

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.
⚑

Quick Links

Canvases versus Documents (4 minute read)

Web design may be shifting away from immersive "canvas-style" layouts and back to more structured, document-like designs.
Don't let dicts spoil your code (9 minute read)

For better code structure and maintainability in Python, it's better to use dataclasses, Pydantic, and TypedDicts instead of using dictionaries.
Automattic is doing open source dirty (4 minute read)

The creator of Ruby on Rails argues that Automattic's demand for 8% of WP Engine's revenue is a violation of open source principles and the GPL license.
What's New in Ruby on Rails 8 (9 minute read)

Rails 8 introduces updates like easier deployments, a modern asset pipeline, improved SQLite capabilities, and more Active Record features.

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.