For as long as we’ve taught programming, the student’s code has provided a window into the students’ thinking. Errors, the code structure, the awkward working solution—all of it showed how someone reasoned and where they got stuck. It was never a clean window. Students have always copied, crammed, and borrowed, sometimes turning in work they […]
The following article originally appeared on Charity Majors’s Substack and is being reposted here with the author’s permission. A few days back I wrote a piece called “AI enthusiasts are in a race against time, AI skeptics are in a race against entropy.” I have notes on a whole pile of AI-related topics that I’d […]
We talked about <a href="/blog/defensive-programming">patterns for defensive programming in Rust</a> before, in which implicit invariants that aren’t enforced by the compiler lead to utter misery.
But being careful isn’t enough!
Even valid code can fail at runtime in ways that are hard to predict and control.
That’s what we’re covering next.
This article is for you if you want to…
make your code resilient at runtime
harden your Rust code for production
know
A marimo notebook that wires a live Paint canvas, kernels and a slider into a WidgetDAG that convolves a hand-drawn digit.
git-scraping is awesome. It let's you re-use CI as a pattern to scrape data from the internet and store it publicly in your repository.
Uplifting a lobsters comment for easier reference.
In workshops I often see people getting frustrated with Rust.
Here’s some of the feedback I hear:
“The borrow checker rules make it hard to write code that compiles.”
“It’s overwhelming! The syntax is complex with too many symbols and operators. <a href="#fn-keywords">1</a>”
“It’s difficult to transition to Rust from .”
“The code is not satisfying to read, it feels clunky and verbose.”
From these frustrations, people often conclude that Rust is not for them and quit.
But after programming in R
Use the CSS if() function to choose property values from style, media, and support queries without writing JavaScript state glue.
A modern CSS guide to Anchor Positioning for popovers, tooltips, and dropdowns without getBoundingClientRect, scroll listeners, or layout JavaScript.
An ersatz CSS tutorial for people who need to style a web page, but aren't web developers. I am a wrong person to write this kind of thing, as I have neither the time, nor experience. I'd much rather read a book about this. Alas, I had to learn all this stuff from trawling MDN, so perhaps it is valuable to document what I have so far.
Annoyed by 1000 indices in your calculation? Let's introduce a more playful notation based on shapes. The covariant derivative serves as an example.
A reusable template repository for writing your thesis in Typst. Based on the design of my Physics Bachelor Thesis. Fully customizable and ready to use.