How I solved a distributed queue problem after 15 years (6 minute read) Jeremy Edberg, formerly responsible for Reddit's infrastructure, discusses the challenges and limitations of traditional task queues using RabbitMQ for operations like Reddit's vote processing. While they do have scalability and flow control benefits, they are also fragile and have the potential for data loss due to queue failures. A better solution is durable queues that checkpoint task status to a persistent store like Postgres, as this can enable the resumption of failed jobs and prevent data loss. | Color Shifting in CSS (14 minute read) This post goes over CSS color animation techniques, specifically addressing the challenge of creating smooth color shifts. It highlights the limitations of using RGB for color transitions, which can result in washed-out, greyish intermediate colors due to how browsers calculate these transitions. CSS filters like `hue-rotate()` are a more performant solution that avoids these issues, offering a more vibrant color shift. | | Writing Code Is Easy. Reading It Isn't (6 minute read) While writing code can be relatively simple, the real challenge is in reading and understanding existing codebases. Building a mental model of a system, which involves understanding its components, dependencies, and potential side effects, is a time-consuming and effort-intensive process. This is necessary for debugging though. | Formatting code should be unnecessary (4 minute read) We should revisit the approach of systems like the Rational R1000, which used an intermediate representation (DIANA) instead of plain text source code to remove formatting debates and improve development efficiency. | 'Make invalid states unrepresentable' considered harmful (12 minute read) The principle of making invalid states unrepresentable in software design is not a good one. State machines, foreign key constraints, and Protocol Buffers are all examples where strict enforcement can lead to complications when dealing with edge cases or schema changes. While constraints are important for reasoning about systems, software should allow for some invalid states to accommodate real-world complexities and avoid rigid, difficult-to-change designs. | | Jaaz (GitHub Repo) Jaaz is an open-source, privacy-focused alternative to Canva and Manus, functioning as a multimodal creative assistant that can be used locally. It lets users generate images and videos from prompts, create visuals with "Magic Canvas" and "Magic Video" features, and use an infinite canvas for storyboarding. | Quartz (GitHub Repo) Quartz is a free set of tools for publishing digital gardens and notes as websites. It's a static-site generator with features like Obsidian integration and networked thought capabilities. | HeroUI (Website) HeroUI is a React UI library built on Tailwind CSS for creating accessible and customizable web apps. It has themeability with custom TailwindCSS plugins, automatic dark mode, and pre-made components with 210+ templates. HeroUI's components are designed for accessibility, follow WAI-ARIA guidelines, and can be used directly in React server components. | | What if artificial intelligence is just a "normal" technology? (3 minute read) Artificial intelligence should be viewed as a "normal technology." This view, presented by Princeton computer scientists, suggests AI's development could follow the trajectory of previous technological revolutions. This means a slower adoption rate, a gradual impact on jobs with increased human oversight, and a focus on downstream defenses against misuse, rather than alignment. | Using Claude Code to modernize a 25-year-old kernel driver (10 minute read) This dev modernized the ftape Linux kernel driver, which hadn't been updated in 25 years and was necessary for recovering data from old QIC-80 tapes. He used Claude Code to update the driver to be compatible with modern Linux kernels, addressing deprecated functions and build issues. Despite requiring some manual adjustments and prior kernel module knowledge, Claude Code made the process really fast comparatively. | | Look Out For Bugs (5 minute read) Proactively find bugs by carefully and slowly reading code to build a mental model of the program and identify discrepancies, rather than relying solely on iterative testing. | Mac Angle (GitHub Repo) Mac-Angle is a C++ library for reading the lid angle sensor data from supported MacBooks that provides real-time angle measurements with exception handling and a CMake build system. | Package Managers are Evil (10 minute read) Package managers, while automating dependency handling, ultimately contribute to "dependency hell" and are a net-negative for programming due to their unnecessary automation, poorly defined package concepts, and encouragement of unvetted dependencies. | | 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. Want to work at TLDR? ๐ผ Apply here or send a friend's resume to jobs@tldr.tech and get $1k if we hire them! If you have any comments or feedback, just respond to this email! Thanks for reading, Priyam Mohanty, Jenny Xu & Ceora Ford | | | |
0 Comments