151 karma · joined Mar 13, 2012 (14y ago) · 26 submissions
comment 4mo ago · link · parent
comment 5mo ago · link · parent
This is following a more important rule which is "Never make keyboard input timing dependent!" I'm looking at you new Windows start menu and VS Code quick open.
comment 6mo ago · link · parent
Very different niche from the StarFighter but StarLabs make excellent machines.
comment 4y ago · link · parent
#!/usr/bin/sh
while true; do
reset;
"$@";
inotifywait -e MODIFY --recursive .
done
For example, if you invoke `rerun make test` then `rerun` will run `make test` whenever you save a file in your editor.6.
Show HN: BDC – Ergonomic, sub 1KiB virtual DOM library(github.com ↗)
23 points · by bwhmather · 4y ago · 4 comments
7.
Show HN: SSort – The Python source code sorter(github.com ↗)
2 points · by bwhmather · 4y ago · discuss
comment 4y ago · link · parent
comment 4y ago · link · parent
With backwards sorting you know that, unless there is a cycle, you can always scroll up from a call site to find the definition or down from a definition to see where it is used. With forwards sorting you can scroll down to find a definition, unless the function was imported, or used as a decorator somewhere, or called by something that was used as a decorator, or used in some other way that I haven't thought of.
My personal experience is that this predictability is hugely useful. It almost entirely obviates the need for jump-to-definition within a module, and gives modules a very obvious shape and structure.
comment 4y ago · link · parent
comment 4y ago · link · parent
SSort is currently used for several hundred kilobytes of python so I'm wary, but if I'm going to make a breaking change before 1.0 then I think this is likely to be it.
comment 4y ago · link · parent
comment 6y ago · link · parent
1) To provide a code-level record of what has changed in individual files and why.
2) To provide a high-level record of what features were introduced and what bugs were fixed over a period of time.
Often people will forget about one of them when arguing for a particular approach.
Squashing can make 2 easier but annihilates 1. Rebasing gives you 1 but makes 2 difficult, or requires that you track high level changes in an external system. In theory, approaches using merge commits can give you both but they are often difficult to apply in practice.
comment 10y ago · link · parent
comment 12y ago · link · parent
See the notes in sd_notify(3) or https://lists.debian.org/debian-ctte/2013/12/msg00230.html for a simple alternative implementation. Admittedly could be better documented.
edit: point to notes section
comment 12y ago · link · parent
comment 12y ago · link · parent