• 0 Posts
  • 33 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.


  • How much is it gonna cost us to create this new “D.O.G.E.” Department and pay Musk? The cost of these studies is completely irrelevant to the situation, like others have said the GOP props up ridiculous situations and makes it seem like they represent the entire situation, and they do it to disguise what they’re doing which is fleecing taxpayers money to private corps.




  • Being exposed to a product that exists is not an ad. An ad is explicitly something that a company has paid to make visible to people. If a company isn’t paying for it then it’s not an ad, no matter how much it sounds like one.

    And yes, going to a store and trying shit out is exactly how it should go. Reading reviews and talking to others is exactly how it should go. Companies paying to manipulate people of the world using psychology is what ads are. Not seeing a product being used in the wild.

    a paid notice that is published or broadcast (as to attract customers or to provide information of public interest)




  • I think you have got to be meme’ing. You literally wrote 7 paragraphs about how to build something for python when for other languages it’s literally a single command. For Ruby, it’s literally bundle. Nothing else. Doesn’t matter if it’s got C packages or not. Doesn’t matter if it’s windows or not. Doesn’t matter if you have a different project one folder over that uses an older gem or not. Doesn’t matter if it’s 15 years old or not. One command.

    Just for comparison for gradle it’s ./gradlew build For maven is mvn install For Elixir it’s mix deps.get mix compile For node it’s npm install

    every other language it’s hardly more than 1 command.

    Python is the only language that thinks that it’s even slightly acceptable to have virtual environments when it was universally decided upon decades ago to be a tremendously bad idea. Just like node_modules which also was known to be a bad idea before npm decided to try it out again, only for it to be proven to be a bad idea right off the bat. And all the other python build tools have agreed that virtual envs are bad.