News for hackers. Stuff that matters.
Re:Ask HN: Best-architected open-source business application... by debaserab2 on Monday July 24, 2017 @08:10AM (#14837750)
Because it's possible to be much faster on the command line than you'll ever be clicking around on a GUI.
Re:Ask HN: Best-architected open-source business application... by scarface74 on Monday July 24, 2017 @08:47AM (#14837951)
if you are already using a GUI for your IDE, is it really faster typing on the command line than right clicking on your git root folder in explorer -- that in my case is usually on a different monitor -- and clicking on git commit where you can see all of your changes, and then double clicking on a file to bring up your diffs?

Don't get me wrong, knowing the command line is invaluable when it comes to corner cases that just don't work well in a GUI and automating tasks.

Re:Ask HN: Best-architected open-source business application... by debaserab2 on Monday July 24, 2017 @11:03AM (#14838992)
Yep, it's absolutely faster - a command line is simply more responsive than moving a mouse and clicking dialogs if you know exactly what you need to do. I've always used an IDE but I exclusively use the command line for VCS. Setting up a commit is much easier to do if you know all the commands over the tedious drag/right click/choose dialog.

As to your use case, git diff has never failed me.

This is all aside from the fact that the CLI is ubiquitous. One day you'll be in a situation where it's all you have access to, and you'll thank yourself for having learned it (or kick yourself for not).

Re:Ask HN: Best-architected open-source business application... by scarface74 on Monday July 24, 2017 @09:56PM (#14844478)
When would I only have access to the command line as Windows developer? The most I would have to do from a command line in my usual day to day work is use git pull to automate my deployments. But in that case, I also need to know the ins and outs of msbuild. That doesn't mean I'm going to use a regular old text editor and build with msbuild in my daily workflow.
Re:Ask HN: Best-architected open-source business application... by Mouse47 on Monday July 24, 2017 @08:14AM (#14837775)
Maybe in the general case, but not in the scenario I outlined above. What if there are 20 files I touched? I'll need to type each of the 20 paths to view each individual diff. And that's if I view each diff only once, which I don't typically do.

I understand the value of being familiar with your tools, but sometimes the CLI just isn't the right one.

EDIT: btw, I use the vim plugins in all of my work (VS, VSCode), so I'm not shy when it comes to learning curves.

Re:Ask HN: Best-architected open-source business application... by whorleater on Monday July 24, 2017 @08:17AM (#14837794)
>git diff

Gets all the differences between your current unstaged changes vs your head, no need for typing 20 individual paths

Re:Ask HN: Best-architected open-source business application... by Mouse47 on Monday July 24, 2017 @08:24AM (#14837827)
Good to know, although I'm still not impressed with its presentation when doing larger diffs.
Re:Ask HN: Best-architected open-source business application... by dotancohen on Monday July 24, 2017 @08:36AM (#14837889)
Then use a different `diff` app, such as the wonderful graphical kdiff if you're on KDE. You can find the differ that you like and then set `git` use it as a default.
Re:Ask HN: Best-architected open-source business application... by Mouse47 on Monday July 24, 2017 @08:43AM (#14837930)
Then we're back to using a GUI, which is what I was arguing for in the first place lol
Re:Ask HN: Best-architected open-source business application... by dotancohen on Tuesday July 25, 2017 @07:25AM (#14846846)
True, but a graphical differ I'll concede could be easier to use than a CLI differ for some people. But a full graphical Git environment is horrible. I've seen my Windows-using colleagues use them. Shudder.

By the way, you might want to look at the `--diff-word` option.

Re:Ask HN: Best-architected open-source business application... by hungerstrike on Monday July 24, 2017 @06:34PM (#14843358)
No, it's faster using the keyboard to operate a GUI.