1,794 karma · joined Nov 17, 2009 (17y ago) · 358 submissions
https://dangerous-techniques.com/
comment 4d ago · link · parent
comment 4d ago · link · parent
I wrote a jj skill (https://github.com/mhw/jj-skill) that tries to address both of those issues, and explaining some higher-level workflows like the conflict resolution example I described above. It happily goes through the conflicts creating new commits off them, resolving the conflict, and then squashing the results.
3.
Hannah Fry: How OpenAI has caused an existential crisis in mathematics(newscientist.com ↗)
2 points · by mhw · 1mo ago · discuss
comment 7mo ago · link · parent
From this comment on the git-absorb issue tracker I wouldn't expect it to be fixed soon either: https://github.com/tummychow/git-absorb/issues/134#issuecomm...
comment 7mo ago · link · parent
edit: oh, and I think Ctrl-space is the keystroke to get a nul character, and vi uses that character to insert the last entered piece of text in insert mode. It looks like Ctrl-@ does the same things, but tmux might not be able to tell the difference either.
comment 1y ago · link · parent
For the periods of my career where I've lived the two computer life (desktop and laptop), I've used Unison to keep substantial parts of my home directory in sync between the two machines.
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
11.
Database Protocols Are Underwhelming – byroot's blog(byroot.github.io ↗)
4 points · by mhw · 1y ago · discuss
comment 1y ago · link · parent
I guess the main takeaway is to be careful using rsync connections to machines that you don't trust.
13.
How to Think About Time(errorprone.info ↗)
3 points · by mhw · 1y ago · discuss
comment 2y ago · link · parent
I currently spend a large proportion of my time working in a Java code base that uses JDBC directly. There are many places where the complexity of the work to be done means code is being used to assemble the final SQL query based on conditionals and then the same conditional structure must be used to bind parameter values. Yes, in some places there are entire SQL statements as String literals, but that only really works for simple scenarios. There are also many bits of code that wrap up common query patterns, reimplementing some of what an ORM might bring.
I recently implemented soft deletion for one of the main entities in the system, and having to review every query for the table involved to see whether it needed the deleted_at field adding to the where clause took a significant amount of time. I think better architecture supported by a more structured query builder would have made this much easier. For me that’s the main benefit of an ORM.
comment 2y ago · link · parent
I guess what I’m looking for is something that
* can carry out the kind of refactorings usually reserved for an IDE
* has a concise language for representing the refactorings so new ones can be built quite easily
* can apply the same refactoring in multiple places, with some kind of search language (addressing the task of renaming a test parameter in multiple methods)
* ideally does this across multiple programming languages
comment 2y ago · link · parent
It sounds like they are intending to rethink the design and that it may return in a different form in the future, but won't be in JDK 23.
comment 2y ago · link · parent
18.
Global Sales Tax Compliance and Remittance(outseta.com ↗)
1 points · by mhw · 2y ago · discuss
comment 3y ago · link · parent
comment 3y ago · link · parent
Simpler explanation: Mac OS’s first release preceded Windows so they had to pick a side for themselves when first designing the system. See https://www.versionmuseum.com/history-of/classic-mac-os - the square on the left side of the front-most window’s title bar is the close button.
comment 3y ago · link · parent
Sure it does - long press on the green maximise button and you get a little drop down. For me it includes "Enter full screen", "Tile Window to Left of Screen" and "Tile Window to Left of Screen". Tiling is like full screen but with two apps side-by-side rather than one.
If you want to maximise a window instead of going full screen (that is, make it as big as possible but not overlap the menu bar or dock), Option+Click on the green button or double click the title bar. macOS calls this "Zoom". Safari is atypical in that maximising it only changes the window's vertical height, but pretty much everything else maximises height and width.
All these options are on the 'Window' menu as well.
24.
Lean Branching – a Git branching model to keep clean history(github.com ↗)
2 points · by mhw · 4y ago · 1 comment
comment 5y ago · link · parent
As an example, consider a page that primarily contains a list of items. I set each item up to be a focus target so tabbing through the targets will select each list element in turn.
If I add keyboard shortcuts to navigate the list (e.g. up/down cursor to select previous/next element), should my JavaScript drive focus to the selected element, or should I use an independent mechanism (adding a class, say) to mark the active element? Driving focus feels like the more ‘native’ approach, but I don’t know if there are downsides to potentially taking focus away from other elements on the page (for example).
27.
145 points · by mhw · 5y ago · 104 comments