4,836 karma · joined July 9, 2008
[ my public key: https://keybase.io/jreese; my proof: https://keybase.io/jreese/sigs/oMm1rGpBWQUZlYjQeGCSD25PvSnx2g6ZuaQ89HzjO2Q ]
Also, FWIW, they don't just pick between 18 gears with a single shifter. They have multiple inputs that allow shifting between multiple combinations of gears, some requiring clutch to change and some not, as they gain speed. Most trucks still only have 6-ish positions for the main gear shifter to slot in to.
I'm a happy F1TV subscriber, and really enjoyed watching some FE races here and there in the past, but it feels like they're going out of their way to make it difficult or pointless to actively watch full races during the season. Is there an "FETV" type of deal similar to F1TV, or do I just have to give up hope of seeing them before the end of the season?
$43M / year for 30 years sounds like a pretty good retirement in any sort of inflation short of catastrophic economic collapse.
Similar to the Carbon/Cocoa split, I'm sure we'll see AppKit supported well into the future, especially since we just passed the latest major architecture transition. But that doesn't mean AppKit isn't a dead end.
>>> a = "this is a long sentence in a string literal"
>>> b = "this is a long" + " sentence in a " + "string literal"
>>> a is b
False
>>> id(a)
4386376272
>>> id(b)
4387721264
>>> a == b
True values = [
value
for line in buffer.readlines()
if (value := line.strip())
]
Previously, I would have needed to either duplicate effort like: values = [
line.strip()
for line in buffer.readlines()
if line.strip()
]
Or used a sub-generator: values = [
value
for value in (
line.strip() for line buffer.readlines()
)
if value
]
Or rewritten it altogether using a (slower) for loop calling append each time: values = []
for line in buffer.readlines():
line = line.strip()
if line:
values.append(line)
The assignment expression is perfect for this sort of use case, and is a clear win over the alternatives IMO.Edit: fixed initial example
This is why my coworker built the project he called "dowsing"; it tries to understand as much as possible from the setup.py's AST, without actually executing it.
It's worked pretty well for the conservatives the past couple decades.
But I've personally never used either, so maybe I'm missing something too?
I'm planning to re-record the talk on my own at some point soon, but until then, all of my slides and examples, and the full script for the talk, are available on my github repo. Hopefully there's something useful there for everyone: