Paul Moore

107 posts

Paul Moore banner
Paul Moore

Paul Moore

@pf_moore

Katılım Şubat 2010
237 Takip Edilen47 Takipçiler
Paul Moore
Paul Moore@pf_moore·
@jimalkhalili @threadreaderapp One thing I've always struggled with is the distinction between "quantum" and "classical" systems. Is the cat quantum or classical? Does opening the box somehow switch it from one to the other? Would I be a quantum system if I were really tiny?
English
0
0
0
58
Jim Al-Khalili
Jim Al-Khalili@jimalkhalili·
Someone on Twitter asked me the other day if I could compose a tweet thread explaining the famous quantum measurement problem. Since I am off work for a few days I thought I’d take up the challenge. So, here goes: quantum measurement in 22 tweets… 1/22
English
82
404
2.1K
440K
Christina Warren
Christina Warren@film_girl·
Alright, what Mastodon instance are we all on? I’m on two right now and haven’t started to try to get into it because of the migration process but if I have to migrate anyway, I want to be on the best instance.
Seattle, WA 🇺🇸 English
37
3
54
0
Eleanor Morton ($8)
Eleanor Morton ($8)@EleanorMorton·
Oh no it's the time of year when I get irrationally angry that America thinks it invented Halloween. I'm so sorry in advance.
English
93
78
1.8K
0
Paul Moore
Paul Moore@pf_moore·
@simonw I had to do it. Used oplop to generate a password, so I could recover it if I forgot. But I mostly remembered it. I used one password across multiple systems, though, so that arguably defeats the purpose...
English
0
0
0
0
Simon Willison
Simon Willison@simonw·
Anyone been subject to a password rotation scheme where they've genuinely changed their password every X months over the course of multiple years, without using a password manager? What's that like?
English
58
2
39
0
Paul Moore
Paul Moore@pf_moore·
@hynek The thing I struggle with is working out in my mind whether I want progress reporting or instrumentation (or if there's even a difference). Key=value is great for instrumentation, but looks weird in stdio progress messages. Something covering this would be great.
English
0
0
0
0
Hynek Schlawack
Hynek Schlawack@hynek·
Currently going thru structlog’s docs to bring it to 2022. It’s not like the docs r wrong but they have the wrong focus. It used to be abt “wrap anything!”; today ppl only care about “pretty console” or “stdlib”. 🧵
Berlin, Germany 🇩🇪 English
2
1
10
0
Paul Moore
Paul Moore@pf_moore·
@willmcgugan Old fashioned or specialised. I think it's the printer's term for the symbol.
English
0
0
0
0
Will McGugan
Will McGugan@willmcgugan·
Testing Textual's keyboard example. Interesting to learn what unicode names codepoints. The official name of a slash is "solidus", which is a new one on me. I might translate that to "slash" because I don't think thats a common term. Is it??
Will McGugan tweet media
English
6
0
12
0
Paul Moore
Paul Moore@pf_moore·
@pradyunsg @gpshead I'd rather we got to the point where static (dependency) metadata was the norm and we could make running code for any purpose other than building a wheel from a sdist an opt-in behaviour, intended to support legacy code only...
English
2
1
3
0
Paul Moore
Paul Moore@pf_moore·
@di_codes But will they contribute and collaborate, or will they make demands (of contributors, many of whom are not under their jurisdiction)?
English
0
0
1
0
Paul Moore
Paul Moore@pf_moore·
@brianokken Second is incorrect but it's what I want to type. Optional needs a typing import and | None = None is too repetitive and so obscures the meaning. Sadly I often find type annotations obscure meaning rather than revealing it...
English
0
0
4
0
Paul Moore
Paul Moore@pf_moore·
@brettsky @pradyunsg In my case I have no consistent naming for anything other than .venv so no. Unless you plan on looking for pyvenv.cfg.
English
0
0
0
0
Paul Moore
Paul Moore@pf_moore·
@pradyunsg @brettsky I assumed that too so I discounted nox/tox managed stuff. I do have other manually managed ones I use occasionally, so that's what I answered, but I'd be fine with assuming .venv was the "main" one. But isn't that what vs code does already?
English
0
0
0
0
Will McGugan
Will McGugan@willmcgugan·
@brettsky Watch methods are a bit of Textual magic. They are called when the corresponding reactive attribute is changed. Maybe “observe“ would be more apt, especially on this example
English
2
0
1
0
Will McGugan
Will McGugan@willmcgugan·
Now documenting Reactive attributes. This widget shows the number of seconds since it was started. If you knew nothing about Textual, what would you think of this code?
Will McGugan tweet media
English
13
0
20
0
Paul Moore
Paul Moore@pf_moore·
@zooba @willmcgugan I agree. Good type hints are often complex to catch nuances. As a result they suck as documentation. Write docs saying what types are allowed using words, not type hints.
English
0
0
1
0
Steve Dower
Steve Dower@zooba·
@willmcgugan No in initial examples - if the type of something matters but isn't obvious from context, you need more explanation. No in docs - type hints are machine-readable docs, so write for humans when your audience is human. But I think I'm unpopular here 🙃
English
5
0
9
0
Will McGugan
Will McGugan@willmcgugan·
Type hints for example code in an introduction for a Python module. Yay or nay? And what about type hints for docs in general?
English
29
0
59
0
Paul Moore
Paul Moore@pf_moore·
@willmcgugan Personally I hate videos for any sort of tutorial or explanatory content. Have them as supplementary if you must, but as links (clearly labelled as video) not inline. "Moving screenshots" are the only exception I can think of here.
English
0
0
4
0
Will McGugan
Will McGugan@willmcgugan·
Are videos in documentation a good idea or not? I can think of a bunch of pros and cons. If videos in docs aren't a good idea, how about links to external (YouTube) videos?
English
33
1
36
0
Paul Moore
Paul Moore@pf_moore·
@dabeaz Agreed. I'd like a builtin with the sense of "untyped" rather than "any type". I know they are functionally the same, but conveying intent is important.
English
0
0
0
0