\t

\t

@the.dusktreader.dev

Long in the tooth dev turned manager. Mostly python. Aspirations of full stack. Die-hard Seahawks fan. Also a father of two neuro-spicy kiddos. https://github.com/dusktreader

90 followers203 following205 posts

I got kinda jealous about all these tools having a copy/paste installer with curl | bash. Now I have one for my system bootstrapping script! All I have to run is `curl -L install.dusktreader.dev`, and I'm off and running. Don't run it, though! or you'll summon the Eldritch horror of my setup.

@talkpython.fm I just checked out `diskcache` this weekend to add caching in my library. I'm disappointed to find it has no updates since 2023. It doesn't provide type hints, either. I'm a bit disappointed that it was promoted when it doesn't seem to be production ready.

Since doctors can charge us for missed visits if we are more than 10 minutes late, we should get a discount when they make us wait way past time, too. Right?

When will devs learn to stop trashing languages they don't personally like. If millions of people are using a language it's probably not "ass", it just doesn't _please_ you. Except for PHP and Perl. Fuck them 😂

@brianokken.bsky.social I heard you talking about blog hosting. I used markdown files with mkdocs-material hosted on github pages. Comments enabled with giscus. I don't write near enough,but I like the setup. If you're interested: github.com/dusktreader/...

github.comGitHub - dusktreader/blog: Tech learnings and musings from the.dusktreaderTech learnings and musings from the.dusktreader. Contribute to dusktreader/blog development by creating an account on GitHub.

\t reposted

Today, we’re announcing the preview release of ty, an extremely fast type checker and language server for Python, written in Rust. In early testing, it's 10x, 50x, even 100x faster than existing type checkers. (We've seen >600x speed-ups over Mypy in some real-world projects.)

\t reposted

If there is one thing I hope the left learns in my lifetime, it’s that to become hegemonic, we have to become normie. We won’t convince people to dramatically change their aesthetic or cultural attitudes; we will succeed when we articulate our values in forms they are most likely to appreciate.

\t reposted

sunk-cost fallacy (n.) -- "the phenomenon whereby a person is reluctant to abandon a strategy or course of action because they have invested heavily in it, even when it is clear that abandonment would be more beneficial"

Welp... got rejected after the fifth round (3 tech interviews, a takehome project, and a recruiter screening) after spending 5 weeks going through the process... on April Fools day. Really thought I had this one. After so much investment, feels like a real gut-punch. Back to the grindstone, I guess

TIL you can put uv in your shebang line of a python script, and, along with listing dependencies in a `# /// script` comment block, make your python script superpowered. I wrote a script to upsert test data to an API with httpx. Now I can run it with just `./upsert.py` right from the command line!

View full thread

Even better, I can run this script on any system that has uv installed. I don't need to worry about python versions, globally installed dependencies, or anything like that!

At first I was very skeptical about the `# /// script` syntax, but after trying this out, I'm on-board. This is so convenient! #python #uv

TIL you can put uv in your shebang line of a python script, and, along with listing dependencies in a `# /// script` comment block, make your python script superpowered. I wrote a script to upsert test data to an API with httpx. Now I can run it with just `./upsert.py` right from the command line!

My script goes like this: ``` #!/usr/bin/env -S uv run --script # /// script # dependencies = ["httpx", "ipython"] # /// import httpx import IPython # make a few http requests to the API IPython.embed() ```

Now, I just run it, it jams a bunch of test data into the api I'm testing, and drops me into a REPL where I can make additional queries.

Just released v0.2.0 of drivel. A completely silly, but fun tool to get a list of metasyntactic variable names like "foo", "bar", "baz", but more fun. Try: ``` drivel give --theme=star-wars 10 ``` And see what happens. Check it out here: github.com/dusktreader/... #python

github.comGitHub - dusktreader/drivel: A python package and app to provide you with metasyntactic name valuesA python package and app to provide you with metasyntactic name values - dusktreader/drivel

\t reposted

"When a complex system is far from equilibrium, small islands of coherence in a sea of chaos have the capacity to shift the entire system to a higher order." Iya Prigogine, Noble prize-winning chemist

Writing cover letters is a hassle while job hunting. Given how many you need, I see no way around using AI to help. So, I created smart-letters, a python CLI app that helps you generate, refine, edit, and render cover letters to PDFs. Check it out here! github.com/dusktreader/... #python #openai

github.comGitHub - dusktreader/smart-letters: Harness the power of Python and OpenAI to write cover letters in secondsHarness the power of Python and OpenAI to write cover letters in seconds - dusktreader/smart-letters

\t reposted

You should know that a big part of 18F's work was to make sure multi-million to multi-*hundreds*-of-millions dollar contracts at fed *and* state level didn't go to shitty enterprise IT consultancies that *repeatedly* delivered tech that didn't work, was late, or didn't even do what it needed to

Trump is a poor man's idea of a rich man; a weak man's idea of a strong man; a coward's idea of a brave man. The events in the oval office today showed once again what a mendacious, craven, small man our president is

Progressives desperately need to get better at strategic optics: * Use slogans that are honest and excite the base * Reclaim patriotism and American iconography * Orient protests around mainstream liberal ideas * Build around charismatic leadership with a will to act

@crmarsh.com Are there any plans to add support for building python from source using the `uv python` command? I think a lot of people are hesitant to switch from pyenv because of the very small edge cases where a pre-built version might not work on their system.

\t reposted

If you wanted no leaks you should have gone into Settings -> Security -> Configure privacy & security -> Privacy options -> Other -> Configure -> Media interface and clicked “Disallow.” The Leak setting is on by default but we understand your privacy is important so we’ve made it easy to opt out

Sitting in my local watering hole, and it took me a solid half hour to realize they were playing a 90's station. My brain was just vibing like, "yep, this is the kind of music modern folks listen to."