Skip to content
HomeVideosBooksBlogs
AllTop postsTopics
Podcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    D

    death and gravity

    death.andgravity.com · Personal blog · on HN since 2021

    The author writes detailed Python articles on standard library design, asyncio, performance, and when to use classes.

    Visit blogRSSHN submissions
    ProgrammingSystems & Performance
    What HN says

    HN commenters recommend it as a clear, empathetic guide for newcomers, and the author links their own posts to explain design choices.

    Stats for nerds
    20HN people shared it
    36linked in comments
    945story points
    Sep 2024last shared
    2021people per year2024

    Top posts on HN

    1. 1
      The unreasonable effectiveness of f-strings and re.verbose
      1 person · 304 points · first shared 2022 · 90 comments on HN
    2. 2
      Learn by reading code: Python standard library design decisions explained
      4 people · 294 points · first shared 2021 · 43 comments on HN
    3. 3
      Write an SQL query builder in 150 lines of Python
      1 person · 141 points · first shared 2021 · 103 comments on HN
    4. 4
      Namedtuple in a Post-Dataclasses World
      1 person · 113 points · first shared 2021 · 88 comments on HN
    5. 5
      How I almost failed to search a 37 GB text file in under 1 millisecond
      5 people · 35 points · first shared 2022 · 6 comments on HN
    6. 6
      Dealing with YAML with arbitrary tags in Python
      1 person · 12 points · first shared 2022 · Discussion on HN
    7. 7
      ProcessThreadPoolExecutor: when I/O becomes CPU-bound
      2 people · 7 points · first shared 2025 · 1 comments on HN
    8. 8
      Python sentinel objects, type hints, and PEP 661
      2 people · 6 points · first shared 2021 · Discussion on HN
    9. 9
      Inheritance over Composition, Sometimes
      2 people · 5 points · first shared 2025 · Discussion on HN
    10. 10
      Caching a Lot of Methods in Python
      2 people · 5 points · first shared 2023 · Discussion on HN

    What HN people wrote when they linked it

    • ac130kzSep 2024

      I do like "just" being suggested, but I strongly prefer using a very simple bash run script for tasks that do not require "make"'s extras, especially given that most modern build tools do parallelism and artifact caching internally.

      Inspired by:

      https://github.com/adriancooney/Taskfile

      https://death.andgravity.com/run-sh

    • genericlemon24Aug 2021

      I wrote an entire article about why I didn't do that: https://death.andgravity.com/own-query-builder#sqlalchemy-core-peewee-query-builder

      In general, SQLAlchemy is an excellent choice; in my specific case (single dev with limited time), the overhead would be too much (even with my previous experience with it).

    • _dain_Jun 2023

      Have you read this? It's one of the few I've come across that has the appropriate degree of empathy for the confused newcomer + actionable advice:

      https://death.andgravity.com/same-arguments

      And it doesn't fall into the "Dog inherits from Animal" taxonomic crap.

    • MogzolDec 2022

      They did mention they tried that, and got similar results to the binary search they were already doing: https://death.andgravity.com/pwned#position-heuristic

    • jffryDec 2022

      Indeed that's discussed in the article, under "Position heuristic" - https://death.andgravity.com/pwned#position-heuristic

    • footaDec 2022

      They actually discuss that: https://death.andgravity.com/pwned#position-heuristic

    Related

    Stack Abusestackabuse.com28 people

    A SQLite Tutorial with Node.js

    Stack Abuse
    Company · last shared 2024
    Textual Blogtextual.textualize.io54 people

    Algorithms for high performance terminal apps – Textual

    Textual Blog
    Company · last shared 2026
    Jason Moironjmoiron.net36 people

    Go Performance Tales

    Jason Moiron
    Personal · last shared 2026
    Hillel Waynehillelwayne.com294 people

    1/0 = 0

    Hillel Wayne
    Personal · last shared 2026
    Dev Geniusmedium.com/dev-genius36 people

    A principled approach to GraphQL query cost analysis

    Dev Genius
    Publication · last shared 2026
    Simon Willison's TILstil.simonwillison.net111 people

    One-liner for running queries against CSV files with SQLite

    Simon Willison's TILs
    Personal · last shared 2026
    Tenthousandmeterstenthousandmeters.com28 people

    How the Python import system works

    Tenthousandmeters
    Personal · last shared 2026
    PyPy Blogpypy.org183 people

    PyPy has moved to Git, GitHub

    PyPy Blog
    Company · last shared 2026