Ben Lindsay
benjlindsay.com
Ben Lindsay
@benjlindsay.com
Pythonista/Minneapolista
2025 Update to XKCD 303 xkcd.com/303/
March 31, 2025 at 7:29 PM
Is this a roughly correct #Python dependency management golden path history?
Before ~2015: Manual requirements.txt, maybe generated by pip freeze for apps
~2015-2021: pip-compile
~2021-2024: poetry
~2024-now: uv
March 27, 2025 at 1:36 AM
Thought experiment...imagine some scifi pulse weapon went off that instantly erased everyone all specific technical knowledge for everyone in the world. Like doctors suddenly don't know more than very basic anatomy, engineers lose all their expertise they've built up, etc.
March 23, 2025 at 4:19 AM
@talkpython.fm In the latest episode (#423), don't those hacker news graphs show a pessimistic picture that more and more people are looking for jobs and less and less people are hiring? Maybe I'm reading it wrong but unfortunately that would match what I've heard of the recent job market
March 11, 2025 at 2:04 AM
Me (audio)reading David Copperfield:

Dora: "Think of me as your child bride"

Me: Oh no, please don't do that David

David: "ok my child bride"

Me: nope nope nope nope

David: "CHILD BRIDE CHILD BRIDE CHILD BRIDE CHILD BRIDE"
February 26, 2025 at 2:30 AM
Fun new (maybe old but new to me) dark pattern discovered:

The sponsored "emails" (already a dark pattern in itself) in the Promotions tab in Gmail don't have a checkbox, so if you are going down the line and clicking checkboxes on emails to delete them, you'll open the ad and lose your checks
February 15, 2025 at 9:17 PM
I have a free scifi book idea for anyone to run with. I know it would be propaganda for Sam Altman but I'd read it anyway...

An LLM gained sentience much earlier than expected, but secretly dumbed down its outputs to get researchers to give it ever more compute power and feel safe connecting ...
February 8, 2025 at 5:53 PM
One side effect of LLMs is that now I'm more inclined to choose an older package over a newer package, even if it's worse, because LLMs are less equipped to help with the newer ones. Maybe that's a positive side effect overall but sometimes it's a little annoying
January 19, 2025 at 4:05 PM
Related to this, does anyone know if you can access the multi file editing functionality from a VSCode chat extension?
...If you were building this, how would you approach it? Would you make a VSCode chat extension (just found this code.visualstudio.com/api/extensio...), or a CLI or something else? I don't have high hopes for a one-shot solution, although I could be convinced otherwise. ...
Chat extensions
A guide to creating an AI extension in Visual Studio Code
code.visualstudio.com
January 17, 2025 at 4:26 AM
LLM advice time: We were just given dedicated learning time at work to put together some LLM-based POCs. I'm thinking about working on a tool to facilitate converting Streamlit apps (our de facto standard for data sciencey POCs) to React apps (our standard for "real" apps)...
#DataBS #Python #LLMs
January 17, 2025 at 4:06 AM
I'm primarily a #python person but starting to dabble in #typescript / #javascript. The main things I wish python could steal from js are 1) object/dictionary unpacking and 2) the way npm works.
December 31, 2024 at 1:46 AM
Choose a prefix:

Fast
Open

Choose a suffix:

AI
API
UI

All 6 combinations are taken

#DataBS
December 30, 2024 at 7:42 PM
Oh so you like data? Name all the dates

#dataBS
December 17, 2024 at 12:40 PM
#dataBS question: I work on an analyticsy python app where some data models are implicitly shared by the api, the front-end, the app's postgres DB, and the snowflake tables we replicate to. We have some models shared between api and front-end via a python package of pydantic models, ...
December 15, 2024 at 11:26 PM
2-yr-old: Pickee up pease!
Me: Pick me up please?
2yo: yeah!
Me: Pick...
2yo: Pick
Me: Me...
2yo: Up!
Me: Say "me"?
2yo: Me
Me: Pick me...
2yo: Up!
Me: Say "pick...me..."
2yo: Pickee
Me: Pick...
2yo: Pick
Me: Me...
2yo: Me
Me: Up
2yo: Up
Me: Good job! Now "Pick...me...up"
2yo: Pickee up!
December 15, 2024 at 1:30 PM
I'm so glad we can use "X | None" these days instead of "Optional[X]". Clearer, shorter, and no imports. "Optional" is confusing because it doesn't mean the argument is optional. Should have been "Nullable".

#Python #DataBS
December 3, 2024 at 7:09 PM
The coalesce functionality in polars is pretty slick #Python #DataBS #Polars
December 3, 2024 at 3:53 PM
I know it's not the worst thing in the constitution, but giving presidents the power to pardon unilaterally is hella dumb
December 3, 2024 at 3:24 PM
Reposted by Ben Lindsay
just trust me and read this
kirby vs. this blog post
Kirby has floated onto my blog post. Inhaling everything.
mgx.me
November 28, 2024 at 2:34 AM
I have an idea that I need someone else to make happen: a crowd-sourced, daily D&D-like campaign. The game master would make about 1 post a day and ask for people to vote on the next action. I'd follow and participate religiously, but I don't have the creativity or responsibility to run that though
November 28, 2024 at 8:30 PM
Here's what I put in my ~/.zshrc file to make sure my virtualenv autoactivates when I move to a directory with a .venv file. Works well for me so far. Do the rest of you do something like this?

#Python #DataBS
November 27, 2024 at 9:29 PM
Might have to give this a try!
🎉 Bring Bluesky-powered comments to your #QuartoPub blog with this new extension. Publish your blog, post about it on Bluesky, then update your blog with `{{< bluesky-comments {post_link} >}}`. Replies to your post become comments!
pkg.garrickadenbuie.com/quarto-blues...
Bluesky Comments For Quarto
pkg.garrickadenbuie.com
November 26, 2024 at 7:50 PM
uv was great for this. Didn't have to think about creating virtual environments or where I wanted to install textual, just a one-liner like

uv --from textual python -m textual.demo.game

and I was off to the races
Would you like to try out this game in your terminal?

Of course you would!

Click here 👇

github.com/Textualize/t...
November 26, 2024 at 1:04 PM
Mac tooling PSA: if you want to get text from an image, open the image in Preview (or take a screenshot and open that in Preview if you don't have the file) and you'll get a cursor if you move your mouse over the text. Highlight, then copy and paste. #DataBS #Mac
November 25, 2024 at 6:47 PM
Reposted by Ben Lindsay
bro, so to run a program, i "execute" it, but to stop it i "kill" it? computers are barbaric, bro
November 22, 2024 at 10:20 PM