Elektrine lite

← Feed

Ned Batchelder

nedbat@hachyderm.io

<p>Python, software, coverage.py, typography, juggling, Boston, autism (dad). Laughing at the world doesn&#39;t mean I don&#39;t take it seriously. He/him.</p>

Posts

  • View post

    We&#39;ve probably all seen it, and probably all done it: throwing asterisks at new learners: https://nedbatchelder.com/blog/202609/expert_asterisks

  • View post

    In the #Python Discord, someone was trying to understand how Python code is executed without ever being turned into native CPU instructions. So I wrote a full implementation of a tiny programming language: compiled to bytecodes that get interpreted. 300 lines of Python. https://nedbatchelder.com/blog/202608/micro_language_implementation_calcium

  • View post

    My main use of LinkedIn is the games. https://www.linkedin.com/games (You can play them without seeing the rest of LinkedIn!) But I don&amp;#39;t understand the stats at the end of Pinpoint. What does this mean?

  • View post

    My lightning talk from #PyConUs 2026: Silence is Golden (or, Pac-Man Time-Space duality) https://www.youtube.com/watch?v=VA3O7UxuZO4&amp;amp;t=872s (It&amp;#39;s only 3m20s long)

  • View post

    Why would someone bother to clone coverage․py just to remove the message about Ukraine? Is this repo being published or used anywhere? https://github.com/Medved2k/coveragepy_no_slogan 4 commits ahead (https://github.com/coveragepy/coveragepy/compare/main...Medved2k:coveragepy_no_slogan:main), 141 commits behind.

  • View post

    Simple #Python advice: &amp;quot;I only need one&amp;quot; isn&amp;#39;t a reason to avoid a class. &amp;quot;I&amp;#39;ll only call it once&amp;quot; isn&amp;#39;t a reason to avoid a function.

  • View post

    Very cool. https://www.andrewt.net/dithered-qr-codes/

  • View post

    Python packages should explicitly declare their version support with PyPI classifiers. https://pyreadiness.org/3.13/ lists 90 packages that don&amp;#39;t declare support for 3.13, when many of those packages do support it. It&amp;#39;s not hard to do, and it helps people understand what they can count on.

  • View post

    Something I&amp;#39;ve never seen before: an fi ligature hyphenated into an oddly wide f and a dotless i: #typography (This is in Firefox using CSS hyphenation settings.)

  • View post

    Because someone in the #Python Discord was asking about structuring tests alongside their project code, I added a bit of test structure to my pkgsample explainer: https://github.com/nedbat/pkgsample

  • View post

    A toy BASIC interpreter, written in #python: https://nedbatchelder.com/blog/202607/acidica

  • View post

    So many of these reasons are why I keep a website. (1, 2, 3, 5, 6, 7, 12, 14, 15, 16, 25, 27, 28, 29, etc) https://bellkiosk.website/blog/reasons-to-website.html

  • View post

    More amazingness: this font renders bracketed text as working QR codes: https://qr.jim.sh/

  • View post

    Virtual environments in #python should have been called project environments.

  • View post

    When thinking about #Python lists vs tuples: lists can be varying lengths and the elements will be treated the same. Tuples are namedtuples without the names. https://nedbatchelder.com/blog/201608/lists_vs_tuples

  • View post

    A great thing about Special Olympics: they have a word for my son and others with disabilities like him: &quot;Athlete&quot;.

  • View post

    Serious risk: I will talk about #Boston history well above most peoples&amp;#39; tolerance. https://nedbatchelder.com/blog/202606/franklins_parents_grave

  • View post

    RE: https://cosocial.ca/@timbray/116681311879653314 This probably explains why @codecov cancelled their (tiny) GitHub sponsorship of coverage․py today...

  • View post

    RE: https://mastodon.social/@djrrb/116686054571839496 It is very impressive to see how forms can be drastically altered to fit a (very extreme) design aesthetic, and still be legible to readers of the language.

  • View post

    Today&amp;#39;s (well, all week&amp;#39;s) UI frustration: why doesn&amp;#39;t What&amp;#39;s App stay scrolled to the bottom of a chat? And focus the input box! What else would I want to do 99% of the time!?

  • View post

    Today might be a day to trot out a paraphrase of Charles Schultz: I love community, it&amp;#39;s people I can&amp;#39;t stand.

  • View post

    Some people have a hard time focusing on the technical content of a project: https://github.com/coveragepy/coveragepy/issues/2169: &amp;quot;Remove politically related text from README.md to improve enterprise adoption&amp;quot;

  • View post

    Who is bringing juggling props to #PyCon? (Other than me)

  • View post

    How much is your company spending to support the Python Software Foundation? For comparison, how much do they spend on tips for expensed meals? The PSF runs PyPI, where pip installs from. You depend on PyPI. Fund the PSF. Tip your server! https://www.python.org/psf/sponsorship/

  • View post

    Sometimes when I see programming experts trying to help new learners I imagine what would happen if we were a driving school: &amp;quot;The gas pedal makes the car go, right?&amp;quot; &amp;quot;Well, only if the engine is started, and not if you are out of gas, and not if the car is in neutral, and not if the car is parked against a wall, and not if the parking brake is on, and it shouldn&amp;#39;t be called a gas pedal in an electric car, and, and, and....&amp;quot;

  • View post

    Python 1.0.0, released 31 years ago today: https://groups.google.com/g/comp.lang.misc/c/_QUzdEGFwCo/m/KIFdu0-Dv7sJ --&amp;gt; Tired of decyphering the Perl code you wrote last week? --&amp;gt; Frustrated with Bourne shell syntax? --&amp;gt; Spent too much time staring at core dumps lately? Maybe you should try Python, the next generation object-oriented scripting and prototyping language, with a *readable* syntax. Python has been used by hundreds of happy users all over the world during the...

  • View post

    &amp;quot;The background radiation of the internet&amp;quot; https://arman-bd.hashnode.dev/i-left-port-22-open-on-the-internet-for-54-days-here-s-who-showed-up

  • View post

    Judging from questions by new learners, a big thing they need to learn is the real world is not like school: https://nedbatchelder.com/blog/202604/school_is_artificial

  • View post

    I wrote a Sphinx extension to remove over-linked references in the Python docs. It was fun and turned out well: https://nedbatchelder.com/blog/202604/linklint

  • View post

    To prompt LLMs successfully it seems you need redundant details, escalating emphasis and other forms of repetition. This goes against the well-know DRY principle (Don&amp;#39;t Repeat Yourself). So instead remember CLAMMY: Claude Loses All Memory Mid-Yap.