News for hackers. Stuff that matters.
Re:What tech stacks are indie hackers using for their apps, ... by jwdunne on Saturday July 21, 2018 @03:20AM (#17581079)
Sorry but if the error gives you the right command to run first time then it should just run it first time by default. Sane defaults for new users is good UX. Not an error telling you exactly what command to run instead. It already knows what you intended, for Christ sakes, because it's telling you what you should copy and paste instead!
Re:What tech stacks are indie hackers using for their apps, ... by zdragnar on Saturday July 21, 2018 @11:53AM (#17582385)
But it doesn't know what you intended. It's guessing. The consequences of guessing incorrectly could be very, very bad, as you are pushing your code to a remote host.

Again, the whole point of git is that it is decentralized; there is no requirement that you have one single central server that you are pushing to; there could easily be multiple places that you might want to push something to.

Using something as default that makes sense for a centralized VCS when git is not centralized is, imho, worse than bad UX, as it teaches incorrect assumptions.

Again, this is table-stakes knowledge for using decentralized version control.

Re:What tech stacks are indie hackers using for their apps, ... by qlm on Saturday July 21, 2018 @03:53AM (#17581141)
It's not necessarily always the correct command to run, it's just suggesting what you probably want to do.
Re:What tech stacks are indie hackers using for their apps, ... by jwdunne on Saturday July 21, 2018 @04:22AM (#17581234)
Which should be the default, based on popular use. You can always use the command it suggests to do something different.
Re:What tech stacks are indie hackers using for their apps, ... by augbog on Saturday July 21, 2018 @04:46AM (#17581304)
Well considering how many people who now know git and understand it, it doesn't make sense to do that necessarily. Rather they should make it a configurable option which do now see push.default (https://git-scm.com/docs/git-config)
Re:What tech stacks are indie hackers using for their apps, ... by jwdunne on Saturday July 21, 2018 @04:55AM (#17581326)
Right, which means changing it will harm the UX due to ingrained pattern. That's not what I'm arguing for.

I'm arguing against the idea that showing an error message with the exact command to use is good UX - see the original comment. It is not.