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
    F

    farmdev

    farmdev.com · Personal blog · on HN since 2008

    farmdev is the site of a Python developer who writes about Unicode, testing, remote work, and Python internals like frame hacking.

    Visit blogHN submissions
    ProgrammingLanguages & Compilers
    What HN says

    HN commenters recommend its Unicode talk as a great explanation that helped them during Python 2 to 3 migration, and link its frame hacking tricks.

    Stats for nerds
    18HN people shared it
    14linked in comments
    140story points
    May 2022last shared
    2009people per year2022

    Top posts on HN

    1. 1
      Unicode In Python, Completely Demystified
      11 people · 132 points · first shared 2008 · 19 comments on HN
    2. 2
      Some Tips on Working Remotely
      1 person · 2 points · first shared 2018 · Discussion on HN
    3. 3
      Let's buy lobbyists to save the Internet
      1 person · 2 points · first shared 2012 · Discussion on HN
    4. 4
      Secrets of Frame Hacking in Python
      2 people · 1 points · first shared 2017 · Discussion on HN
    5. 5
      Unicode In Python, Completely Demystified [2008]
      1 person · 1 points · first shared 2012 · Discussion on HN
    6. 6
      How to protect against Heartbleed and future vulnerabilities
      1 person · 1 points · first shared 2014 · Discussion on HN
    7. 7
      Safer Unit Testing in React with TypeScript
      1 person · 1 points · first shared 2019 · Discussion on HN
    8. 8
      Index
      2 people · first shared 2015
    9. 9
      Using fixture with pylons
      1 person · first shared 2011

    What HN people wrote when they linked it

    • anthonybOct 2011

      The issue that I have with that attitude (as an experienced Python and Django developer) is that there's a lot more to it than just "swapping out Django's DB and replacing it with SQLAlchemy". You miss out on most of the infrastructure around Django's database stuff that makes it so easy and worthwhile to use.

      For example, fixtures. In Django, you can include them in your tests and have it All Just Work(TM):

      https://docs.djangoproject.com/en/dev/topics/testing/#fixture-loading

      You can also use them outside of testing, too:

      https://docs.djangoproject.com/en/dev/howto/initial-data/#providing-initial-data-with-fixtures

      Fixtures in Flask/SQLAlchemy? Not so much - you have to roll your own (crappy) implementation:

      http://farmdev.com/projects/fixture/using-fixture-with-pylons.html

      http://flask.pocoo.org/mailinglist/archive/2011/3/6/flask-sqlalchemy-and-fixtures/

      Also note that, while I'm picking on fixtures here, Django also has a bunch of other database related features, like introspecting a pre-existing database, and generating a bunch of Model classes from it. Combine that with South and you're 90% of the way there when migrating the data from a legacy system.

      This has turned into a bit of a rant, but I've seen a lot of half-baked reimplementations in "pluggable" architectures of stuff which Django just gets right.

    • sitkackMay 2022

      You golf a lambda and then deride walrus in the same comment? Please explain yourself.

      And if you really want to make the perfect lambda, you can do that with code generation and frame walking/patching.

      http://farmdev.com/src/secrets/framehack/index.html

    • resirosJul 2015

      Cool tricks. This lead me to read about the subject of frames in python (http://farmdev.com/src/secrets/framehack/index.html).

      Can anybody suggest advanced Python books to dig out more in such matters?

    • maceMay 2009

      Here's another great explanation of Unicode from PyCon '08:
      http://farmdev.com/talks/unicode/

      It is really helpful in understanding Unicode handling in Python pre 3.0.

    • UpdatedFoldersAug 2020

      I personally had a good time re-reading this over and over again when I was migrating python 2 to python 3, it's a great resource: http://farmdev.com/talks/unicode/

    • sukhbirDec 2011

      To add to this, Kumar McMillan's talk, "Unicode In Python, Completely Demystified" (http://farmdev.com/talks/unicode/) is really good.

    Related

    Fredrik Lundheffbot.org64 people

    Simple Top-Down Parsing in Python

    Fredrik Lundh
    Personal · last shared 2023
    Dev Geniusmedium.com/dev-genius36 people

    A principled approach to GraphQL query cost analysis

    Dev Genius
    Publication · last shared 2026
    TokyoDevtokyodev.com27 people

    How I Got a Digital Nomad Visa for Japan

    TokyoDev
    Company · last shared 2026
    Andrew Godwinaeracode.org68 people

    Hello, This Is London Rising: 3D Printing Maps from LIDAR Data

    Andrew Godwin
    Personal · last shared 2025
    Niko Matsakissmallcultfollowing.com221 people

    Towards a Rust Foundation

    Niko Matsakis
    Personal · last shared 2026
    AiGameDevaigamedev.com43 people

    Recast'ing automatic annotations for player cover in KillZone 3

    AiGameDev
    Publication · last shared 2018
    Ian Bickingblog.ianbicking.org107 people

    Firefox Was Always Enough

    Ian Bicking
    Personal · last shared 2026
    Zed Shawzedshaw.com280 people

    Dear Paul

    Zed Shaw
    Personal · last shared 2026