TLDR Web Dev

TLDR WEB DEV 2024-10-31

6 sections18 entrieslinks blockcomplete parse

Parse notes

  • Subscription/account footer truncated before parsefooter_truncated

01GENERAL

Sponsored

ACCESS PASSES

Join cloud native enthusiasts and open source innovators at KubeCon + CloudNativeCon North America, November 12 -15 in Salt Lake City!

hubs.laSponsor

02ARTICLES & TUTORIALS

LESSONS LEARNED FROM A SUCCESSFUL RUST REWRITE

This developer rewrote a C++ codebase to Rust and, while it was mostly successful, there were still some interoperability challenges. Using raw pointers and unsafe blocks in Rust proved to be a major source of undefined behavior that was often undetected by the compiler and required tools like Miri for validation. The Rust borrow checker and the lack of native arena allocators created challenges when managing memory resources.

gaultier.github.io14 min read

USECONTEXTSELECTOR: SPEEDING UP REACT APPS WITH LARGE CONTEXT

Using large contexts in React applications can lead to performance problems, as changing a single value in a large context can cause unnecessary re-renders of components. There are several proposed solutions: splitting components, splitting contexts, and using state management libraries. The `use-context-selector` library, which this article dives deeper into, provides a way to optimize performance by selecting and re-rendering only the parts of a context that have changed.

marmelab.com10 min read

HOW TO ROLL YOUR OWN AUTH IN JAVASCRIPT & TYPESCRIPT

Rolling your own session-based auth in JS/TS is useful for understanding core web authentication concepts. This article goes over cookie management, password hashing using Argon2, and framework-agnostic examples for sign up, sign in, and sign out functions.

robinwieruch.de13 min read

03OPINIONS & ADVICE

WHY SPRINTS ARE TAKING THE JOY OUT OF BUILDING SOFTWARE

Sprints are a core element of Scrum, but can be detrimental to software development. Sprints are too rigid, prioritizing processes over individual creativity and customer value. Instead, allow teams to be more flexible about timelines and give engineers more autonomy in their work.

zaidesanton.substack.com8 min read

I ATTENDED GOOGLE'S CREATOR CONVERSATION EVENT, AND IT TURNED INTO A FUNERAL

Google hosted a "Creator Conversation Event" for independent site owners who had been shadowbanned by Google's algorithm updates. At the meeting, Google representatives offered reassurances while subtly deflecting and avoiding addressing the core issue of shadowbanning and the negative impact on these creators' livelihoods.

giantfreakinrobot.com7 min read

04LAUNCHES & TOOLS

NEW TO THE WEB PLATFORM IN OCTOBER

The web got updates in October like synchronous iterator helpers, text fragments, and cookies with partitioned storage in Firefox 131. Beta releases of Firefox and Chrome have WebCodecs API support, worker navigator permissions, and CSS highlight inheritance (Chrome-only).

web.dev5 min read

MODUS

Modus is an open-source serverless framework that allows developers to build APIs powered by WebAssembly. It simplifies the integration of AI models, data, and business logic by using a sandboxed execution environment. Modus supports multiple programming languages, like AssemblyScript and Go.

github.comGitHub repository

WAZUH

Wazuh is an open-source security platform that offers endpoint and cloud workload protection, XDR, and SIEM capabilities.

wazuh.comTool

05MISCELLANEOUS

THE KARMA CONNECTION IN CHROME WEB STORE

A large-scale scheme involving malicious Chrome extensions disguised as legitimate tools was discovered. Eleven extensions, seemingly developed by a mysterious individual with no online presence, have been found to contain hidden code for affiliate fraud and user tracking.

palant.info11 min read

CREATING A LLM-AS-A-JUDGE THAT DRIVES BUSINESS RESULTS

LLM-as-a-judge systems have LLMs evaluate LLM responses in order to make LLM applications better. This article outlines seven steps to building a great LLM-as-a-judge system: find a “Principal Domain Expert”, create a diverse dataset, have the expert review and critique the data, fix errors, build the LLM judge, perform error analysis, and create specialized judges if needed.

hamel.dev38 min read

CHAIN-OF-THOUGHT CAN REDUCE PERFORMANCE ON TASKS WHERE THINKING MAKES HUMANS WORSE

Chain-of-thought (CoT) prompting LLMs reduces performance in cases where thinking also negatively affects human performance. Experiments across three task categories where thinking harms human performance (implicit statistical learning, visual recognition, and classification with exceptions) consistently demonstrate that CoT reduces model accuracy. This suggests that model reasoning, like human deliberation, can lead to detrimental outcomes when applied to certain tasks.

arxiv.org20 min read