Readit News logoReadit News
mikeholler commented on Python’s new t-strings   davepeck.org/2025/04/11/p... · Posted by u/tambourine_man
serbuvlad · 4 months ago
All things considered, this is pretty cool. Basically, this replaces

    db.execute("QUERY WHERE name = ?", (name,))
with

    db.execute(t"QUERY WHERE name = {name}")
Does the benefit from this syntactic sugar outweigh the added complexity of a new language feature? I think it does in this case for two reasons:

1. Allowing library developers to do whatever they want with {} expansions is a good thing, and will probably spawn some good uses.

2. Generalizing template syntax across a language, so that all libraries solve this problem in the same way, is probably a good thing.

mikeholler · 4 months ago
A potential concern is how close this looks to the pattern they're trying to override.

    db.execute(f"QUERY WHERE name = {name}")
versus

    db.execute(t"QUERY WHERE name = {name}")

mikeholler commented on Kotlin multiplatform is stable and production-ready   blog.jetbrains.com/kotlin... · Posted by u/cvb941
jamil7 · 2 years ago
Is anyone using this in production? I played around with it a year or two ago, and it was a little rough. I recently built something internal using Rust and UniFFI for a similar purpose. I much prefer Rust's tooling, but it would be nice to not introduce a third language. There is probably a more minimal environment I can use and not need Android Studio installed, but I'm not that familiar with Kotlin or Android development (Swift/iOS/mac day job).
mikeholler · 2 years ago
Using it in production for an SDK. It's working very well!
mikeholler commented on Wet-bulb temperature   en.wikipedia.org/wiki/Wet... · Posted by u/vincent_s
skyfaller · 2 years ago
I hate speaking negatively about Ministry for the Future, because I admire KSR, and we need fiction that confronts the climate crisis and shows people taking positive action to change the world for the better. Still, I sadly cannot recommend this book. To quote from my spoileriffic review,

"This does not help us imagine realistic positive outcomes to the climate crisis. Robinson correctly diagnoses the threats we face and immerses the reader in a very plausible near future. Unfortunately, any happy ending feels unearned as the world is essentially saved through magic, as humans/society respond in vanishingly unlikely ways."

https://bookwyrm.social/user/skyfaller/review/381179/s/compe...

mikeholler · 2 years ago
Yes. Thank you. His book Aurora does a much better job at steering us towards action while still showing consequences of environmental disaster and I highly recommend it.
mikeholler commented on Documentation as Code for Cloud Using PlantUML   blog.dornea.nu/2023/07/30... · Posted by u/cyneox
mikeholler · 2 years ago
One of the coolest things about plantuml is the generated PNG actually contains the source code for the image as metadata. If someone gives you an image, they don't also need to send you the source because you can extract it using the plantuml CLI.
mikeholler commented on IPCC climate crisis report delivers ‘final warning on 1.5C’   theguardian.com/environme... · Posted by u/m1
wing-_-nuts · 2 years ago
It always makes me sad how scientists have to put on a brave face and try to tell us there's still time. Sadly, they know the most likely outcome puts us blowing past 3C by the end of the century, and 'carbon capture' isn't going to save us.

If you guys are planning to see the natural world in retirement, don't wait. Better to see it as it is now than what it will become.

mikeholler · 2 years ago
It's not a brave face. The science tells us that we're on a better and improving track. It's not without hope. A decade ago we thought we were on track for 6C by the end of the century.

That said, it's still going to be worse than we all want it to be. Like many things, the truth lies in the middle and all we can do is push hard on the margins.

mikeholler commented on Maintain a clean architecture in Python with dependency rules   sourcery.ai/blog/dependen... · Posted by u/rekahrv
Sankozi · 3 years ago
There is ArchUnit - https://www.archunit.org/
mikeholler · 3 years ago
Thanks, that looks like exactly what I was looking for.
mikeholler commented on Maintain a clean architecture in Python with dependency rules   sourcery.ai/blog/dependen... · Posted by u/rekahrv
mikeholler · 3 years ago
Is there anything similar to this for Java/Kotlin/Gradle?
mikeholler commented on The dictatorship of the articulate   florentcrivello.com/index... · Posted by u/adayeo
dane-pgp · 3 years ago
> In the latter you can spin up a new service in a couple of hours. In the former a couple of months is a blistering pace.

In the latter you can harm society in ways that take a couple of hours to fix. In the former, you can cause harms that take months or years to fix (and, with enough lobbying, you can make taxpayers foot the bill).

mikeholler · 3 years ago
You're absolutely right. The "move fast and break things" position in society is just not good. It's fine if you're doing rapid prototyping on a product that can be easily discarded cheaply and at low cost to everyone involved. It's another thing entirely to move fast and break things without considering the people who will be affected, and asking what they think about it, especially for things that are not easily or cheaply reverted.
mikeholler commented on Thinking with pen and paper   ljvmiranda921.github.io/l... · Posted by u/ljvmiranda
mikeholler · 3 years ago
I started bullet journaling with pen and paper and it has changed my life. Intentionality -- that's exactly right. When I write I feel intentional.

I've also dove into the world of nice paper and fountain pens. I've always had hand cramps when writing, whether using a cheap Bic or a Pilot G7. With fountain pens, that's all gone, and writing is effortless. You can get started with this cheaply by getting a platinum preppy fine or extra-fine pen ($4), and a bottle of ink ($10). You want a fine or extra-fine nib, because anything else will feather and bleed on cheap paper, but fine or extra-fine works just fine on cheap paper.

Your pen can be converted into an "eye dropper" pen with a little bit of silicon grease and a small rubber gasket, and you'll rarely need to refill it.

mikeholler commented on Public CDNs Are Useless and Dangerous   httptoolkit.tech/blog/pub... · Posted by u/pmoriarty
billpg · 3 years ago
"...cached content is no longer shared between domains. This is known as cache partitioning..."

But why?

u/mikeholler

KarmaCake day143January 7, 2019View Original