TLDR Web Dev

TLDR WEB DEV 2024-03-26

5 sections18 entrieslinks blockcomplete parse

Parse notes

  • Subscription/account footer truncated before parsefooter_truncated

01ARTICLES & TUTORIALS

THE PROBLEM WITH USING A UUID PRIMARY KEY IN MYSQL

This article goes through the different versions of UUIDs and why using them as a primary key in MySQL can hurt database performance. Using UUIDs as primary keys can lead to slow insert performance, higher storage requirements, and larger index size requirements (since secondary indexes also store primary keys). To mitigate these issues, UUIDs can be stored in a binary format or ordered using UUID v6 or v7.

planetscale.com9 min read

WHAT HAPPENS ON GITLAB WHEN YOU DO GIT PUSH?

Git stores project history locally as objects and references (like branches). When you use 'git push', and your git remote is with GitLab, it sends these updates to a remote GitLab server. How you connect (SSH or HTTP(S)) determines the authentication method: SSH uses GitLab Shell for key-based verification, while HTTP(S) relies on Workhorse and Rails for authentication. Once authenticated, Gitaly takes over, managing your Git repository and executing 'git-receive-pack' to handle the incoming changes. Gitaly is used by GitLab to read and write Git data.

nanmu.me12 min read

LOW EFFORT IMAGE OPTIMIZATION TIPS

This is a tutorial on how to identify unoptimized images and how to optimize them to improve your web application’s performance. Developers should use modern formats like AVIF and WebP where possible and size their images properly to match their rendered dimensions. The `picture` element can be used with multiple image formats and resolutions for the browser to automatically select the best fit. Images below the fold should be lazy loaded.

blog.sentry.io8 min read

02OPINIONS & ADVICE

HOW TO BUILD A CAREER YOU ENJOY AS AN ENGINEER. WHAT I WISH SOMEONE TOLD ME WHEN I STARTED

To progress in your career, focus on impactful projects that align with your skills and interests rather than settling for easy tasks. You should take control and proactively seek out high-impact projects that contribute to company goals and your own career development. These projects should challenge you and it’s easier to work on something challenging if it’s also work that is meaningful to you, aligns with your strengths, and has a significant impact on your company. When you find an area you excel in, invest time and energy to become an expert and the go-to in that area.

open.substack.com8 min read

FRIENDS DON'T LET FRIENDS EXPORT TO CSV

CSV is a poor choice for storing and transferring tabular data due to its ambiguity, performance issues, and lack of compression. Apache Parquet is a better choice because it is self-describing, has excellent compression, and can be loaded efficiently.

kaveland.no9 min read

FROM FULL-STACK DEVELOPMENT TO SYSTEMS PROGRAMMING

This developer describes their career journey, shifting from full-stack development to specializing in systems programming. They discovered a passion for the technical depth of systems programming through projects focused on network protocols, tooling, and performance optimization. As their focus changes, they wonder whether it's possible to be both a generalist and a specialist.

ochagavia.nl5 min read

03LAUNCHES & TOOLS

Sponsored

DOIT HELPS THE BEST COMPANIES BUILD ON AWS

Cloud-driven organizations trust DoiT [10] to guide their AWS journey. Whether you’re looking to unleash genAI, accelerate release pipelines, or modernize cloud infrastructure - DoiT is the AWS Premier Partner [10]for you.

doit.comSponsor

JAMPACK

Jampack optimizes static websites for the best user experience and Core Web Vitals scores.

github.comGitHub repository

MOUNTAINEER

Mountaineer is a web framework for building Web applications using Python.

github.comGitHub repository

INVERTORNOT

InvertOrNot is a free, open-source API that predicts if an image should be inverted for optimal dark-mode rendering.

invertornot.comTool

04MISCELLANEOUS

WHY I CHARGE A $100,000 SOFTWARE LICENSING FEE FOR 10 LINES OF CODE

This developer creates novel, fundamental algorithms and data structures designed to solve specific computing challenges and improve performance. Unlike common open-source models, they license these algorithms with a fee for use in closed-source projects, allowing them to make a lot of money from organizations that can easily afford it.

medium.com3 min read

RIP REDIS: HOW GARANTIA DATA PULLED OFF THE BIGGEST HEIST IN OPEN SOURCE HISTORY

The recent Redis license change by Redis Labs (aka Garantia Data) is a harmful move that disregards the contributions of the wider Redis community. Garantia Data didn't create Redis. Redis was initially an independent open-source project and Garantia Data only became involved years after its creation. Redis’ widespread adoption was thanks to the open-source community and Amazon’s ElastiCache, not due to the company itself.

gomomento.com6 min read

GOOGLE'S FIRST TENSOR PROCESSING UNIT - ARCHITECTURE

Google designed the TPU v1 for fast, cost-effective inference using trained neural network models at scale. Its key feature is a focus on tensor operations, specifically matrix multiplications, which are core to neural network computations. The TPU v1 is 15-30x faster than contemporary CPUs/GPUs for inference. It has 25-29x better performance per watt than GPUs.

thechipletter.substack.com12 min read