miniblog.

Copilot was super helpful for changing some locals to lazy_static!: let integer_re = Regex::new(...) // old static ref INTEGER_RE = Regex::new(...) // new Unfortunately, it added a $ to the end of my first regex! It saved me a ton of keystrokes, but needed careful checking.
I really appreciate that GitHub has separate icons for pass and fail in CI. I've worked with Jenkins plugins that rely on red/green colour too much.
Photo
TIL that you can give your threads names!
I've released difftastic 0.44! In this release: * Support for Racket and Newick * Better handling of parse errors * Nicer syntax highlighting
PhotoPhotoPhoto
A surprising amount of important software functions by developers doing each other favours by reviewing pull requests.
Generated Code Generates Overconfident Coders: https://www.deeplearning.ai/the-batch/issue-180/ A study of programmers found that using a LLM for completion produced buggier code but users were more confident in it. I wonder if this generalises to other completion techniques?
TIL that coreutils has a lightweight version of the `finger` command, appropriately named `pinky`!
Another unusual feature of Elm's error messages: it uses the first person ("I was partway through parsing a record, but I got stuck here"). It reads pretty well to me, but this is a surprisingly divisive topic.
https://elm-lang.org/news/compiler-errors-for-humans mentions the importance of layout and paragraphs for compile error messages. Perhaps tools should do line wrapping if the terminal is very wide? It's definitely more comfortable to read.
I think GitHub Copilot (and LLMs for coding more generally) are best seen as a complement to traditional IDE completion. Textual word completion is useful even when you have type-aware method completion. Copilot feels like a more powerful case of word completion.
https://github.com/repository-settings/app is an elegant use of GitHub apps: you can define a .toml for repository settings, which lets you change these settings with a commit!
Playing with VS Code also reminds me how overloaded the tab key can be. It might do indentation, or LSP completion, or snippet completion, or Copilot completion. In Emacs I've configured these operations on separate keys (e.g. yasnippet on SPC) which is less surprising.
I've been playing with GitHub Copilot, and it feels unlike any other completion tool I've used. In a bunch of cases, it can write short snippets that are exactly what I want. (I tested it on a toy interpreter I'm working on. I'm tweaking how statements are represented.)
Photo
Are there any advantages to having a statement/expression separate in a new programming language? I understand that it makes sense for existing languages, but "everything is an expression" seems to be increasingly popular.
I've heard of snake_case and kebab-case, but Train-Case is new to me! I presume it's supposed to look like a train pulling a carriage? (From https://crates.io/crates/heck)
Photo
Showing 166-180 of 240 posts