Top all-time · #8579
Leon Trolski
Personal blog · leontrolski.github.io · on HN as leontrolskiprogramming
Leon Trolski is a personal blog at leontrolski.github.io about programming. Since 2020, 8 different Hacker News readers have linked it 47 times, most often “Show HN: 33 line React”. The last post was in 2023, but the archive is still widely read.
Too few sampled comments (2) to say how often HN recommends it.?
Why HN links it
HN readers link these posts as alternatives to global config variables in Python and as a 2020 minimal version of how React works. Commenters cite them as related reading rather than praising the writing.
Summarised by Claude from a sample of 2 HN comments that link here. Each comment is marked recommending, critical or neutral (citing without judging); how this works.
Most-linked posts?
- Show HN: 33 line React2 people · 3 mentions · first linked 2020-04-04
- What if we'd had better HTML-in-JS syntax all along?2 people · 3 mentions · first linked 2020-05-11
- Postgres locks explorer2 people · 3 mentions · first linked 2024-04-05
- The CMD-Click Manifesto2 people · 2 mentions · first linked 2023-02-23
- How do pandas DataFrames work? (kinda)2 people · 2 mentions · first linked 2020-10-20
- [hand-drawn] recipes for laid-back engineers2 people · 2 mentions · first linked 2026-05-27
What Hacker News says?
I'd be interested as to how dumb-ol' polling would compare here (the FOR UPDATE SKIP LOCKED method https://leontrolski.github.io/postgres-as-queue.html ). One day I will set up some benchmarks as this is the kind of thing people argue about a lot without much evidence either way. Wasn't aware of this AccessExclusiveLock behaviour - a reminder (and shameless plug 2) of how Postgres locks interact: https://leontrolski…
Comment linking /pglockpy.html
on “Postgres LISTEN/NOTIFY does not scale”Submitted Show HN: 33 line React as a story · 418 points
HN discussionLargely I agree with the author's sentiment, but I'm not sure I totally agree with some of the alternatives. For example I think using an @lru_cache decorator over a `get_...()` function to return variables is much better at all than using a global var. In fact, it looks hackier if you ask me. https://leontrolski.github.io/sane-config.html
Comment linking /sane-config.html
on “OO in Python is mostly pointless”Submitted OO in Python is mostly pointless as a story · 370 points
HN discussionDitto, another Upset blog post - https://leontrolski.github.io/upset.html
Comment linking /upset.html
on “Venn Diagram for 7 Sets”Submitted Postgres as queue as a story · 224 points
HN discussionMithril is the React Facebook would have written if its devs didn't have too much time on their hands - it's wonderfully simple. I stole their API somewhat for my 33-line-React, if you have any interest in how stuff works under the hood - check it out! https://leontrolski.github.io/33-line-react.html
Comment linking /33-line-react.html
on “Alternative lightweight UI library to modern day frameworks”Submitted Adding syntax to the CPython interpreter as a story · 161 points
HN discussionIn python/javascript, I'm a big fan of using yield - https://leontrolski.github.io/recursing-with-yield.html It just feels nice to me.
Comment linking /recursing-with-yield.html
on “Traversing nested data-structures in various languages”Submitted What if we'd had better HTML-in-JS syntax all along? as a story · 150 points
HN discussionThere's also https://leontrolski.github.io/33-line-react.html (2020) that does an older version of this, just for react. Had its own HN thread back in the day.
Comment linking /33-line-react.html
on “How React, Vue, and Angular Work – Core Principles in One File”Submitted Postgres locks explorer as a story · 130 points
HN discussionI wrote a short guide for confused node developers at work a while ago https://leontrolski.github.io/virtualenvs-for-node-devs.html
Comment linking /virtualenvs-for-node-devs.html
on “Ask HN: Why is Python package management still a dumpster fire?”Submitted My dream thermostat (2024) as a story · 48 points
HN discussionHi, author here. I talked about this in more length here https://leontrolski.github.io/dom-syntax.html and to some extent here https://leontrolski.github.io/33-line-react-thoughts.html . There was also some discussion on the former here https://news.ycombinator.com/item?id=23142300
Comment linking /33-line-react-thoughts.html
on “Dnjs: A pure subset of JavaScript that wants to replace configuration languages”Submitted My Dream Thermostat as a story · 27 points
HN discussionAuthor here, thanks for the feedback. This is v. much a work-in-progress, I'm in the process of trying to build something non-trivial with it. Just a couple of things to address in general from the comments so far: - I'm aware of dhall, jsonnet and friends, I think they're cool, but I think the most important for me is this is just js - that means nothing new to learn + you can use it from front end code + free lint…
Comment linking /dom-syntax.html
on “Dnjs: A pure subset of JavaScript that wants to replace configuration languages”Submitted Don't get bitten by missing foreign key indexes as a story · 15 points
HN discussionSimilarly - 80 line LISP interpreter with integers, lexical scope, first class functions https://leontrolski.github.io/interpreter.html
Comment linking /interpreter.html
on “(How to Write a (Lisp) Interpreter (In Python))”Submitted Postgres Locks Explorer as a story · 5 points
HN discussionNeat. I'm trying to compress recipes into little schematics https://leontrolski.github.io/recipes.html
Comment linking /recipes.html
on “All of human cooking compressed into 2 megabytes”Submitted Strongly typed Web 1.0 with TypeScript as a story · 5 points
HN discussionSee also "What if we'd had better html-in-js syntax all along?" https://leontrolski.github.io/dom-syntax.html
Comment linking /dom-syntax.html
on “That people produce HTML with string templates is telling us something”Submitted Developer's Summary of Consciousness and the Social Brain as a story · 5 points
HN discussionSubmitted [hand-drawn] recipes for laid-back engineers as a story · 3 points
HN discussionSubmitted Using Python 3.14 template strings to write Python as a story · 3 points
HN discussionSubmitted Cheeky Python Shell Script as a story · 3 points
HN discussionSubmitted Git Bisect Succinctly as a story · 3 points
HN discussionSubmitted SI Units for Astronauts as a story · 2 points
HN discussionSubmitted Stop Using Pytest Fixtures as a story · 2 points
HN discussion