News for hackers. Stuff that matters.
Re:Git undo: We can do better by akersten on Monday June 21, 2021 @12:31PM (#27580786)
> Git branch list" is just "git branch". "git branch create" is "git branch [name]". So creating a branch is the SAME COMMAND as the one you use to produce a list of current branches, just with an argument. Madness. And this is the rule, not the exception.

As a counter-opinion, I actually like it this way. Especially since it's the rule and not the exception. When one makes the small effort to learn the commands, the payoff in saved keystrokes from avoiding typing the redundant pieces is great.

As a painfully simplified justification: Directory listing is "ls" and removing a directory is "rmdir" - I much prefer that to typing a hypothetical "directory list" and "directory delete", even if the later fits some nice consistent shape.

It's one of the reasons I hate powershell/windows-style CLI and its 60-character long arguments for every function.

Re:Git undo: We can do better by lisper on Monday June 21, 2021 @12:49PM (#27580955)
There's nothing wrong with having a UI for power users in addition to a more intuitive one. But having a power-user UI as the only option (or even as the default) is not so good.
Re:Git undo: We can do better by seoaeu on Monday June 21, 2021 @01:37PM (#27581508)
In particularly well designed UIs, the interface for power users and the intuitive one are one and the same!