Brad Cypert

@bradcypert.com

Zig, Go, Flutter and Svelte enthusiast / content creator. https://www.youtube.com/@CodeWithCypert Video/Board game enjoyer. Knitter. 🧶

Been using jj for a week now for personal projects and I think im finally figuring out a workflow that I like enough to start using it for the day job as well. Feels good.

Fun little thing with the new Reader/Writer interfaces in Zig. Streaming the contents of a Reader into a Writer while omitting the line that starts with a value (`self.value`). Feels clean to me, but I'm ready to be humbled. is there a better way?

An image of zig code with the following syntax:

pub fn deleteBookmark(
self: Bookmark, writer: *std.Io.Writer, reader: std. Io. Reader,
)
while (!std.mem.eqlu8, reader.peek(self.value.len), self.value))
reader. streamDelimiter(writer, "\n");
reader streamRemaining (writer);
}

This is my Zig trick of the week. Doing this in your main or root.zig will make sure that when you run zig build test, all of your tests will run (some exceptions apply -- tests inside of a struct for example). zig build test not running all tests drove me crazy. Here's my fix.

An image of code in the Zig programming language. The file assumes to be a main.zig or root.zig with the key element being a test block at the bottom of the file who's only line of code is std.testing.refAllDecls(@This());

I've been exploring Microzig lately and... tbh, the documentation is a little lacking. Have you built anything cool with Microzig? I'd love to help catalog your blogposts/videos/tutorials/etc! Lemme know!

When I first started programming, I wanted to build an ORM to learn more about how they work and to have built an ORM (of course). I started looking at how Hibernate works because I was mostly writing Java and Holy Cow, I am shocked none of my peers stopped me and suggested literally any alternative

“What if they have JS disabled?” JS is the least of your problems. I’m out here trying to figure out how to disable HTML when I visit your site

Observations after a few months with BlueSky. I was shit at posting on Twitter and I’m shit at posting here. I never know what to share and what not to, so if you’re seeing this, what do you? Post everything? Post nothing? Post sometimes but filter yourself? Post on brand?

Instead of the CIA overthrowing regimes and establishing democracy in foreign countries, maybe they try to do that with our country instead.

What’s an acceptable turnaround time for an open source PR into a large, actively maintained codebase? I’ve had a PR open to Zig for almost a month now, and it’s been sitting for weeks with no interaction from the team.