Comment by swyx

3 days ago

hiya! team noticed your comment and agreed - and it is fixed.

    - const CodeSnippetTwo = `sudo apt-get upgrade windsurf`;
    + const CodeSnippetTwo = `sudo apt-get install windsurf`;

Why not use apt?

  • apt-get has a more stable interface and is more suitable for scripts and instructions intended to be followed to the letter.

    apt is better for interactive use and by people who are not just blindly following instructions.

    Here there are arguments for both. As commands intended to be copy-pasted in a terminal, using apt-get makes sense as it is the safest choice. But it is also intended for humans, it is not a script, so maybe apt would be better. To me, both ways make sense.