Josh Smeaton (@jarshwah) profile picture

I'm a developer from Melbourne working at Octopus Energy. I'm also a former core developer for @djangoproject where I primarily contributed to the ORM.

Melbourne, Australia
Joined March 2009
Photo by Josh Smeaton (@jarshwah)Photo by Josh Smeaton (@jarshwah)Photo by Josh Smeaton (@jarshwah)Photo by Josh Smeaton (@jarshwah)Photo by Josh Smeaton (@jarshwah)Photo by Josh Smeaton (@jarshwah)Photo by Josh Smeaton (@jarshwah)Photo by Josh Smeaton (@jarshwah)Photo by Josh Smeaton (@jarshwah)Photo by Josh Smeaton (@jarshwah)
Proposal to name a ternary return "returnary": `return thing.other if thing else None`
2
4
Thought I'd give UNLOGGED postgres tables a try when running Django tests, but saw likely slow downs rather than speed ups. Sharing in case anyone else wants to experiment: gist.github.com/jarshwah/2b4… #django
1
3
137
The “human shield” discourse here is fucking wild. I mean - we accept without question that SWAT teams won’t just blow up a building with hostages inside. Of course they wouldn’t!
64
Hey @EpicGames due to refund years ago for unintentional purchases of fortnite consumables, my sons account is negative balance (of about $1000). He wants to pay you money for battle passes, but support tells me the only way is to settle the $1000 balance. Can this not be reset?
1
1
122
He was 5 at the time and it was my mistake for not having protected purchases enabled. He plays daily and wants to give you money (on purpose, this time!) and can't. What can be done here?
44
Reckon mypy is the next in line for the @astral_sh treatment? You'd literally give me back 6gb of memory and years of my life. #ruff #astral #python
2
7
552
Another orphaned mypy process 😮‍💨
90
A co-worker switched our python formatter from black to ruff yesterday, and everyone is impressed!
2
5
331
Our CI pipeline takes longer to restore the cache than it does to format check approximately 5M lines of code. So much so that we combined our ruff lint and ruff format jobs into a single job. Black used to take 10 *minutes*.
3
3
1
30
3,291
Next up - github.com/astral-sh/uv . This is just about to land in our local environment as a parallel option. Once we're happy, CI and then deployments. I've posted about this before, but a raw install with pip is about 4m30s. UV from scratch is about 50 seconds without cache.
1
2
313
Another celery bashing post? Sure let's go! Long running tasks aren't ACKed during a warm shutdown when using RabbitMQ + acks_late *unless* you disable application [heartbeats](docs.celeryq.dev/en/latest/u…), so you'll often have tasks succeeding twice!
1
75
Hey @Shopify what the fuck is this permission request?? All I want to do is track an order and I can’t without connecting gmail and allowing you to read all my emails and settings?
1
3
111
I still see many folks that aren't yet automating their dotfiles in some way. Most that do seem to use a git repo to manage them. I switched to github.com/lra/mackup which supports a bunch of standard mac apps out of the box, and syncs your files to a dropbox or drive account.
1
4
314
I found macup way easier to keep up to date rather than regularly having to commit and push after some period of time (commit msgs were useless). It also covers heaps of files you might not have thought of. Consider it over dotfile repos!
42
I don’t know how body count Twitter ended up in my timeline but it’s fucking gross.
57
Getting HTML emails to render correctly cross-browser reminds me of the good ol' days of NOTHING FUCKING WORKING PROPERLY. Android: fuck you, zoomy! Edge: fuck you, here's some extra padding Outlook: float right? da fuq is that
1
4
103
Does anyone actually do TDD? A few folks in interviews have said they “try to” but I think that’s mostly because they think they should. I’ve not (knowingly) met a single person practising TDD. I write code that is easy to test, but never begin with tests.
4
3
240
I've wasted literally seconds, possibly even minutes, of my life looking for the "convert to draft" link on PRs @github - despite the "Ready for review" being a giant honking button at the bottom of a PR. So.. I'm going to reply to this tweet every time I forget where it is.
1
98
Fuck, that was quick 🤦‍♂️
1
53