最新文章

今日新增 454 篇 · 共 7,520 篇 · 来自 241 个博客

Real Python··Real Python

Learning Path: Ace Your Python Coding Interview

AI 摘要This article introduces a learning path to help readers prepare for Python coding interviews, offering practice problems, tips for standing out, and resources from top PyCon talks and Python books. It also promotes the Python Tricks newsletter, which delivers short and useful Python tips to subscribers' inboxes every couple of days.

Marc Brooker·

Ten Years of AWS Lambda

AI 摘要The article reflects on ten years of AWS Lambda, prompted by Werner Vogels sharing the annotated original PRFAQ that launched the serverless computing era. It dives into key engineering decisions and lessons, such as launching with only Node.js for its easy dependency packaging, the organic customer demand that drove Go support and official custom runtimes, and the redesign of the in-memory worker manager into a persistent, cross-AZ system to improve median latency. It also describes how the team solved noisy-neighbor problems in shared queues using a combination of stochastic fairness queuing and best-of-k placement, an approach since adopted across other AWS systems.

Ethan Marcotte··Ethan Marcotte

Two books, no longer apart.

AI 摘要After his publisher's closure, the author reacquired the rights to his books and has now made the first two — the second edition of Responsive Web Design and Responsive Design: Patterns & Principles — freely readable online, thanks to Jeff Eaton's Dancing Queen library and Mat Marquis's book site builder. He cautions that the books are dated, with code and images reflecting an older web era, though he believes their underlying principles remain sound. He also reflects on the bittersweet emotions of revisiting the works, expressing gratitude for the memories, collaborators, and readers the books brought into his life.

Clojure News·

Clojure Deref (Nov 7, 2024)

AI 摘要This weekly Clojure Deref roundup highlights the wide range of talks from the Conj 2024 conference, featuring speakers like Rich Hickey, Tim Ewald, Carin Meier, and Alex Miller covering topics from immutable values to AI integration and game development. It also rounds up recent community blog posts on topics such as idiomatic error handling, open source funding updates from Clojurists Together, and developer OSS progress reports. Finally, it lists numerous new library and tool releases, including neanderthal 0.50.0, pg2 0.1.20, basilisp 0.3.0, pedestal 0.7.2, and squint 0.8.123.

Ethan Marcotte··Ethan Marcotte

A catalog.

AI 摘要In this journal entry titled "A catalog," the author lists the things they know and are grateful for during a difficult day: a small but solid home, a caring partner, two comforting cats, and kind, supportive friends. Though they admit to feeling fear, despair, and heartbreak—and little hope at the moment—they also recognize their love and the fact that they are still here. The post ends on a note of solidarity, affirming that whatever happens next, they and the reader will find their way together.

Baby Steps·

MinPin: yet another pin proposal

AI 摘要The article proposes MinPin, a variation of boats' UnpinCell proposal that aims to integrate Pin into the Rust language in a minimally disruptive and fully backwards-compatible way. Unlike Overwrite, MinPin does not attempt to make Pin and &mut work together nicely. However, it leaves the door open to adding Overwrite in the future and helps clarify the positives and negatives that Overwrite would bring.

Josh W. Comeau··Josh W. Comeau

A Friendly Introduction to Container Queries

AI 摘要This tutorial provides a friendly introduction to container queries, explaining that despite landing in browsers a couple of years ago, they haven't seen widespread adoption because they are trickier to understand than media queries. The article aims to break down how container queries work so developers can start using them in their own work.

Ethan Marcotte··Ethan Marcotte

Times to strike.

AI 摘要The New York Times Tech Guild launched an open-ended unfair labor practice strike at 12:01 a.m. Monday after two years of contract negotiations with management failed, with the timing threatening to disrupt the paper's election coverage. The author frames this as the first open-ended strike by tech workers, marking a new chapter for the industry's labor movement. Supporters can help by honoring the union's virtual picket line—avoiding Times games and cooking apps—and donating to its strike fund.

Brett Cannon··Brett Cannon

Don't return named tuples in new APIs

AI 摘要The author argues that named tuples should only be used when updating an existing API that already returns a plain tuple, not when designing new APIs. Although named tuples are quick to define, they double the API surface by requiring support and testing for both index-based and attribute-based access, while also exposing unwanted tuple behaviors like slicing and iteration. Instead, alternatives such as dataclasses, TypedDict, or types.SimpleNamespace should be preferred, prioritizing readability and ergonomics over brevity.

Bun Blog·

Bun v1.1.34

Fixes 64 bugs (addressing 62 👍). `Bun.randomUUIDv7`, reduced memory usage for long-running processes, `napi_type_tag_object` and `napi_check_object_type_tag`, redacted secrets from config logs, `ReadableStream` and HTTP/1.1 spec fixes, seve

Svelte Blog·

What’s new in Svelte: November 2024

AI 摘要This month's Svelte roundup celebrates the release of Svelte 5 and the launch of SvelteHack 2024, a hackathon with submissions due January 9, both announced at Svelte Summit. It highlights recent compiler improvements—such as snippets filling slots and getContext() being allowed in $derived runes—alongside updates to SvelteKit, the CLI's new add-on system, and a Svelte 5 migration command in the editor extension. The post also features community-built apps, learning resources, and a collection of new libraries and tools for Svelte developers.

Clojure News·

Clojure Deref (Oct 31, 2024)

AI 摘要This is the October 31, 2024 edition of Clojure Deref, a weekly news roundup for the Clojure ecosystem covering podcasts, videos, blog posts, and articles from the community. Highlights include content about Basilisp (Clojure on the Python VM), Clojure/Conj 2024, and a new book series announcement. The issue also lists numerous new library releases and tools, including telemere, nippy, sente, uix, calva, and several data science and web development libraries.