• 0 Posts
  • 975 Comments
Joined 1 year ago
cake
Cake day: June 12th, 2023

help-circle







  • No he asked for a discard after importing the project into VS Code. discard in git terms refers to git reset, not git clean. Even if he wanted to run a git reset then this version of VS Code would have run a git clean and deleted everything. Imagine he committed all 5000 files, but had a secret.json that he hadn’t committed. He didn’t add it to gitignore either. Running a git reset --hard will not delete this file, but the VS Code button did exactly that because it ran a git clean.



  • discarding changes does not discard uncommitted new files. The VS Code button did a git clean which is completely unexpected. Git even refers to a git clean with completely different terminology.

    git reset -> “Resets the index and working tree. Any changes to tracked files in the working tree since are discarded.

    git clean -> “Cleans the working tree by recursively removing files that are not under version control, starting from the current directory.”. This command also requires you to specify a force option to actually do something, else it quits with an error.

    Note that git clean never once refers to discarding anything, and git reset never refers to removing untracked files. VS Code was doing an idiotic thing. Running git reset --hard AND git clean. There is absolutely no reason to be running git clean from an UI button ever. If you want to remove a file you can explicitly remove it.

    Imagine that the button said “Discard all changes” and then it ran rm -rf --no-preserve-root /*. Would that make sense as a button? No. It definitely would not.









  • I will die on the hill that “the midwest USA” means Colorado, Utah, Wyoming, etc. rather than fucking Illinois. Nobody knows the internal or historical politics of another country. When you refer to Midwest on the Internet, people from other countries automatically assume it’s an actual direction. There’s zero reason in this day and age to refer to a region by an outdated, historical term that has no basis in reality, especially when that term is absolutely harmful to understanding.

    Thank you for listening to my TED Talk.



  • This is a really bad argument. I’ve known a number of very very rich people, and at least one billionaire, and they don’t do anything except work. They would get mad at us for not working 60-80 hour weeks because that’s what they were doing and thought it was normal. The rich just spend their free time also working, so if you’re going on a private jet to the Bahamas, you’re working the whole way there, you’re working while you’re there, you’re working when you leave, etc.

    The difference here is that the line isn’t drawn anywhere. They live to work and think you should to, OR they choose a job that allows them to travel and do other things and work at the same time. Pretty much any managerial position can do this, as long as it’s not a people manager position. Any job that is mostly done on a phone or a computer. Any supply or stock ordering position, etc.

    Like I said. I know a good number of very very rich people and you do not want to work like them, unless you’re getting paid like them and even then I’d say that’s debatable. I make a good amount of money and I’ll take my vacations away from work please.