Newslurp

<< Stories

Good dev habits πŸ§‘β€πŸ’»οΈ, making Ruby faster ⚑️, LLMs for chip design πŸ€–

TLDR Web Dev <dan@tldrnewsletter.com>

November 18, 12:12 pm

TLDR WebDev
A performance regression was identified through observability tools after code was refactored to transform rich text into plain text and Markdown β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ  β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ β€Œ 

TLDR

Together With Sourcegraph

 TLDR Web Dev 2024-11-18

πŸ—“οΈ The Virtual Code AI Summit awaits - Join us on 12/12 & learn how AI meets real-world codebases (Sponsor)

AI is transforming software development, and you can be part of the conversation.

On Thursday, December 12th join the first ever Virtual Code AI Summit to explore how leading teams are using AI to solve enterprise code complexity.

Featuring speakers from Google, Netflix, Anthropic, Booking.com, Palo Alto Networks, and Sourcegraph, this event is all about the real world progress being made with AI in complex enterprise codebases.

Join for fantastic sessions, live Q&A, and to connect with hundreds of other dev leaders.

Attend live on December 12 β†’

πŸ§‘β€πŸ’»

Articles & Tutorials

How we made a Ruby method 200x faster (5 minute read)

A performance regression in Campsite's API was identified through observability tools after code was refactored to transform rich text into plain text and Markdown. Profiling revealed that the bottleneck was the use of a certain node lookup. This was replaced with a more efficient HANDLERS_BY_NODE_NAMES hash lookup, which reduced processing time from 200ms to under 1ms.
The Practical Guide to Scaling Django (4 minute read)

Common performance bottlenecks in Django include database queries, template rendering, Python processing, cache misses, file I/O, and network latency. This guide details optimization techniques for each bottleneck, including database query optimization, caching strategies (view-level, fragment, and low-level API), asynchronous operations, background tasks, load balancing, and content delivery network (CDN) usage.
Optimizers: The Low-Key MVP (17 minute read)

DuckDB's query optimizer improves query performance, often by orders of magnitude, compared to both unoptimized and even hand-optimized queries. This improvement stems from several optimization rules, including filter pushdown, join order optimization, and TopN optimization, which automatically adapts to changing data conditions.
🧠

Opinions & Advice

Good software development habits (5 minute read)

This developer writes about a few software development habits that have helped him write better software faster. They focus on writing small commits frequently, refactoring continuously, and deploying often. They also often write tests first to define API structures early.
You Can't Build Interactive Web Apps Except as Single Page Applications... And Other Myths (11 minute read)

Modern browsers, coupled with technologies like service workers and the Speculation Rules API, significantly improve Multi-Page-Application (MPA) performance, addressing issues like slow page transitions and offline capabilities. Specific techniques, such as caching strategies and Workbox for service worker automation, can be used to make MPAs more efficient. Interactive web apps aren't only for Single Page Applications (SPAs).
Will we care about frameworks in the future? (3 minute read)

AI agents will make traditional frameworks and architectural patterns obsolete as LLMs generate increasingly independent, vanilla code.
πŸš€

Launches & Tools

AWS GameDay: An NFL Digital Experience (Sponsor)

Whether you're a seasoned football enthusiast or a newcomer to the league, immerse yourself in the exciting world of NFL data analytics! This virtual interactive learning exercise puts your AWS skills to the test β€” including Amazon Athena, Lambda, DynamoDB, and GenAI with Bedrock β€” in a real-world, gamified, risk-free environment. Register for GameDay
Use-local-storage-state (GitHub Repo)

A simple React hook that persists data in localStorage.
Fast Grid (GitHub Repo)

Fast Grid is a performant multithreaded web table that's capable of running at 120FPS while sorting, filtering, and scrolling simultaneously.
Literal (GitHub Repo)

Literal is a Ruby runtime type checker that provides types, structured objects, properties, and enums. Its built-in types include generic structures that enable some cool use cases like checking an array is all integers.
🎁

Miscellaneous

Why did Windows 95 setup use three operating systems? (5 minute read)

Windows 95's setup process utilized three operating systems (MS-DOS, Windows 3.1, and Windows 95) to handle upgrades from various starting points. Instead of creating three separate setup programs, developers cleverly designed a chained system using an MS-DOS program to install a minimal Windows 3.1 version, followed by a 16-bit Windows program for core setup tasks, and finally a 32-bit Windows 95 program for final configurations, which minimized code duplication.
How a BBC navigation bar component broke depending on which external monitor it was on (7 minute read)

A bug on the BBC website's β€˜More' button occurred only on external monitors positioned above the main screen due to issues with negative screen coordinates in Chrome and Firefox. The fix involved updating the event handler to check for both positive and negative screenX and screenY values.
YC is wrong about LLMs for chip design (8 minute read)

LLMs produce mediocre Verilog code and cannot design novel chip architectures, unlike skilled engineers. While LLMs can reduce chip design costs, benefiting large companies and potentially smaller startups by enabling leaner teams, they won't create significantly superior chips or open new markets.
⚑

Quick Links

Reverse Engineering iOS 18 Inactivity Reboot (17 minute read)

iOS 18 introduces an inactivity reboot feature that automatically restarts the device after 72 hours of inactivity, requiring any attacker to have kernel-level access within that timeframe to bypass data encryption.
Map Matrix (GitHub Repo)

Map Matrix is a React application for comparing multiple maps simultaneously.
You Can Grow Your Developer Intuition (6 minute read)

Software development is an artistic endeavor that relies heavily on developer intuition, which can be cultivated through deliberate practice, pattern recognition training, experiential learning, and reflection.

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.