TLDR Web Dev

TLDR WEB DEV 2024-08-15

5 sections16 entrieslinks blockcomplete parse

Parse notes

  • Subscription/account footer truncated before parsefooter_truncated

01ARTICLES & TUTORIALS

SORT, SWEEP, AND PRUNE: COLLISION DETECTION ALGORITHMS

This blog post explores collision detection algorithms in video games. It starts by explaining the naive approach, which involves checking every pair of objects for collisions, and its limitations in terms of performance. It then introduces the concept of sorting objects based on their position to reduce the number of unnecessary checks. By sorting objects and implementing an early break condition, the algorithm becomes more efficient, especially in scenarios where objects are evenly distributed.

leanrada.com13 min read

OPTIMIZING SPA LOAD TIMES WITH ASYNC CHUNKS PRELOADING

You can speed up client-side rendered apps by preloading the necessary page chunks before they're needed, avoiding delays caused by lazy loading. By injecting a small script during the build process, you can make sure that route-specific chunks load in parallel with the app's entry point.

mmazzarolo.com8 min read

MANAGING EFFECTS

This article introduces three key rules to manage React side effects properly: keep side effects out of the render process, place side effects triggered by events in event handlers, and use useEffect to handle side effects that synchronize with external systems.

ui.dev11 min read

02OPINIONS & ADVICE

DEVELOPERS HATE THEIR JOB, BUT LIKE TO CODE OUTSIDE WORK

JavaScript, HTML/CSS, and Python are still the most used languages, but Python has become the most desired, with developers increasingly favoring it over JavaScript. AI tools are rapidly being adopted, with most developers using them to write code, although many are still cautious about relying on AI for testing. Most developers dislike their jobs, but still enjoy the practice of coding.

newsletter.techworld-with-milan.com12 min read

MY CHATBOT BUILDER IS OVER-ENGINEERED, AND I LOVE IT

This author, a solo developer, shares his experience building a chatbot builder called Fastmind. He used React for the frontend, Hono for the backend, and Convex for the database. The architecture has separate frontend applications for the chatbot builder, chat widget, and marketing website.

fastmind.ai10 min read

03LAUNCHES & TOOLS

RATE MY OPENAPI

Rate My OpenAPI is a suite of tools designed to help software developers using OpenAPI to design and implement their APIs. It makes sure that the APIs you develop are meeting quality and usability standards.

github.comGitHub repository

OBSOHTML

ObsoHTML is a Node.js script that scans HTML, PHP, JavaScript, and TypeScript files in a designated directory to detect outdated or proprietary HTML attributes and elements. It assists in identifying and updating deprecated HTML code to align with modern web standards.

github.comGitHub repository

04MISCELLANEOUS

HOW I WON $2,750 USING JAVASCRIPT, AI, AND A CAN OF WD-40

This developer won $2,750 in a marketing video contest by using JavaScript, AI tools like ChatGPT and Elevenlabs, and a strategic understanding of the contest's rules. They identified key factors that made the contest winnable, such as the judging criteria favoring video entries and the availability of multiple prizes. The developer then used Playwright to scrape the competition and determine which entries were less likely to win based on quality and type. Finally, they used ChatGPT to generate code for calculating their odds of winning based on the number of entries submitted, leading them to submit eight videos and win seven prizes.

davekiss.com20 min read

INSIDE THE "3 BILLION PEOPLE" NATIONAL PUBLIC DATA BREACH

The complex situation surrounding the "National Public Data" data breach involved the alleged leak of billions of records containing personal information. The breach is difficult to analyze due to the fragmented nature of the leaked data, which has been distributed in various forms and sizes by anonymous actors. This author outlines the different sets of data he has encountered, including social security numbers, email addresses, and other personal information, and explores the challenges of attributing the data back to its source.

troyhunt.com16 min read

THE PITFALLS OF IN-APP BROWSERS

In-app browsers, embedded within native mobile apps, often lack key features, compromise user privacy, and offer inconsistent UI/UX, leading to a suboptimal browsing experience.

frontendmasters.com7 min read