code
I’ve gotten really into writing parsers lately, and Rust has turned out to be the perfect language for that. In the course of my adventures, I came up with the …
There’s a well-known quote by author Michael Pollan: “Eat food. Not too much. Mostly plants.” I like it because it doesn’t attempt to be dogmatic: it encapsulat…
Lately I’ve been seeing lots of anecdotes from people trying to get into Rust who get really hung up on strings (&str, String, and their relationship). Beyond R…
Over the last year and a half I’ve gotten really into writing parsers and parser-adjacent things like interpreters, transpilers, etc. I’ve done most of these pr…
It’s been about four months since I last posted about Bagel, the new JavaScript-targeted programming language I’ve been working on. A lot has changed since then…
I’m stuck solving a gnarly problem right now, so I thought I’d switch gears and write about a recent win in Bagel‘s design/implementation that I’m really excite…
Today I was thinking about tests.
Lots of people are no longer reading code. Agents are at a point where you can make software, as a black box, that might do what you wanted it to do. Maybe then…
Device Flow 把浏览器回调换成用户手抄短码、客户端主动轮询,因此不需要可公网访问的回调地址。拆开 user_code 与 device_code 的映射机制、GitHub 真实端点、五个错误码,以及本站为什么仍然用 Authorization Code。
PKCE 只保护 code 从授权服务器回到客户端这一段,机制是一个不离开客户端的 code_verifier。写清它防什么、plain 为什么等于没有、它不替代 state 也不防钓鱼,以及什么条件下可以不上。





