Skip to content

Instantly share code, notes, and snippets.

View dylanmc's full-sized avatar

Dylan McNamee dylanmc

  • Portland, Oregon
View GitHub Profile
@romainl
romainl / Don't use Vim.md
Last active May 14, 2024 14:09
Don't use Vim for the wrong reasons

Don't use Vim

Don't do the crime, if you can't do the time.

-- Anthony Vincenzo "Tony" Baretta

Vim is an amazing text editor. I love it. Really, I wouldn't [organize][organize] a Vim advent calendar if I didn't. But, as amazing as it is, Vim is not for everyone. It can't solve all your problems, or be a TUI version of your favorite IDE, or make you a better programmer, or land you that dream job in the Bay Area. But Vim can help you be more mindful, focused, and efficient, as long as you approach it with the right mindset.

Don't get me wrong, I certainly welcome you to try Vim, but I'm not a proselyte. I don't thrive on newbies. I just want you to use the right tool for the job and not waste your—and anyone's—time on a fruitless quest.

@onlurking
onlurking / programming-as-theory-building.md
Last active June 5, 2024 04:46
Programming as Theory Building - Peter Naur

Programming as Theory Building

Peter Naur

Peter Naur's classic 1985 essay "Programming as Theory Building" argues that a program is not its source code. A program is a shared mental construct (he uses the word theory) that lives in the minds of the people who work on it. If you lose the people, you lose the program. The code is merely a written representation of the program, and it's lossy, so you can't reconstruct

@Kestrer
Kestrer / how-to-write-hygienic-macros.md
Created October 17, 2020 05:35
A guide on how to write hygienic Rust macros

How to Write Hygienic Rust Macros

Macro hygiene is the concept of macros that work in all contexts; they don't affect and aren't affected by anything around them. Ideally all macros would be fully hygienic, but there are lots of pitfalls and traps that make it all too easy to accidentally write unhygienic macros. This guide attempts to provide a comprehensive resource for writing the most hygienic macros.

Understanding the Module System

First, a little aside on the details of Rust's module system, and specifically paths; it is

Rust

Rust has been touted as the most loved programming language many years in a row according to respondents in the Stack Overflow Annual Developer Survey , and if you write a blog post without mentioning this you are potentially commiting a crime. But . . . why? What productive things are being done with Rust, right now? Where, exactly, does rust shine? Having tinkered with the language on-again and off-again, I think it clearly shines where its killer application of garbage-collection-less memory safety can shine. That brings us to . . .

WebAssembly (wasm)

WebAssembly. wasm. You've probably heard murmerings of it, things like "it's faster!" or "adoption is coming!". Wasm evangelists haven't won me over, but I am curious about it. Since rust can compile with wasm as a target, rust and wasm feel tied together in my brain. How unfortunate for them both.

Svelte

Svelte is a JavaScript framework without a virtual DOM. But it's actually not that at all, it's