222 points · by b01t · 10y ago · 143 comments
sudo apt-get install foo
sudo apt-get install bar
cd ~/somewhere
sudo nano something, change these lines
The same instructions for Windows involves screen after screen of text interspersed with annotated pictures of dialogs, which become obsolete when the OS is revised.In fact, I've seen an increasing number of Windows installation tips being given in CLI terms:
windows+R cmd
enter this command
It would be interesting to see some sort of tool, online or within the system, where you enter a command string and it explains what the command does.- Open the Store - Search for "Name of App" - Click Install
Bonus, this works for GUI software managers in Linux distributions which use them. Unifying the process simplifies most instructions greatly. I think the simple existence of Linux package managers, and the push to use them by the community, helps tremendously with this perceived ease. The installation complexity is largely solved by the package repository maintainers.
On the flip side, software which is not distributed with the OS can have very complex installation requirements even with command line instructions. Sometimes it's as easy as:
- ./configure - make install
But more often than not, you need to manually hunt down dependencies, and if the system uses automake / cmake and requires you to satisfy conditions for a build, those can get hairy and cryptic fast. I've gotten better at it over the years, but I wouldn't call this process any easier than a step-by-step installation wizard in a GUI.
sudo apt install foo`apt search`/`apt-cache search`
`apt install` /`apt-get install`
Though, I prefer pacman/pacaur interface, even if it is less intuitive at first, but I won't use Arch on servers.
Is it an MSI? If not it should be...
To install:
C:\> MSIEXEC /I /QB software-name.MSI
To remove: C:\> MSIEXEC /X /QB software-name.MSI
(/QB tells msiexec to install the app with the default options, and throw up no gui dialogs)Admittedly we're missing a good online universal repository system on Windows, but hopefully one day that'll change.
1: https://hglabhq.com/documentation/installation/installing-hg...
CLI is great for advanced users, but I think GUI is probably best for the vast majority of computer users.
In Windows 10: Windows Key + type name of app + click Install button. No dialogs.
Or to address your point more directly: for many tasks the GUI may seem easier at first, but a modest investment in CLI techniques can yield far greater dividends, over time.
And then there's all the conceptual and dependency bloat that GUIs impose on a project, over time.
"It could make more impact if it actually explained tasks that are harder to do in GUI than in the command line, such as massive renaming of the files, filtering files depending on content and so on."
It seemed to me his assertion wasn't "the CLI is bad and we shouldn't use it," but rather that the linked "You Don't Need the GUI" piece doesn't make a particularly good case.
And, I admit I agree. There are things that a CLI is much better at, especially if you're a developer, but there are other things that a GUI is arguably better at, sometimes even if you're a developer. If I have a bunch of files that need to be committed to a git repository and I want to commit the changes in multiple commits so they're related by topic, it's faster to select and commit each set of files with GitUp than it is using git's CLI. I find myself switching between the terminal and Finder on a fairly routine basis depending on what the task is.
tl;dr: GUI aficionados really should learn the CLI, but the reverse is also true. I can't speak for every GUI out there, but there's a lot you can do in macOS's that I think people don't really take advantage of.
It is partially possible via svn commit `select-files ./path/to`, except cancel part.
TortoiseSVN was a breakthrough for me. After switching to git, it was painful to try to remember all the different commands, wade through commit logs and find the hashes of commits. I see TortoiseGit exists, but since my org is still on SVN i haven't really given it a try.
Database admin, same thing. CLI clients such as sqlplus or pgsql are ok, but I'll never be able to commit to memory the various commands to show tables, show all databases, describe a table, etc. The one exception is the mysql client which has sane defaults and easy-to-remember commands. I frequently switch dbs, so this is a must. Pgadmin, sql developer and even the buggy MySql Workbench are all more pleasant to work with than CLI, in most cases.
But this are just my preferences. If the CLI works better for everyone else, then great. Maybe I'm missing something, and maybe someone would give me a pointer to unlock the magic of CLI in these scenarios that would make me more productive
Aside from large integrates, everything that the people working on my project do is drom the GUI.
Magit https://github.com/magit/magit is definitely the best user interface I've tried for version control. I still drop to the command line occasionally, but it's not as productive unless I'm doing something unusual.
SQL Server Management Studio is also much better than any command line database tool I've used. For any action you can do in it, you can hit a 'generate script' button which you can use to automate what you just did. This is a fantastic feature, because using the GUI becomes a better way to discover and understand the CLI underlying it.
However, the linked repo in the original article simply presents a few commands for copying, moving and zipping files. This is useless and will not convince anybody that they do not _need_ a GUI. It makes a very poor case. If you know what terminal is and how to launch it you already know way more than that article shows, if you don't then there is no way it will convince you that you do not need something like Finder.
CLIs are about memorizing what you can do.
One suits computers and the tiny amount of population with aspergers, the other suits normal people.
[QUOTE] ... to me, GUIs are like a caveman language where you have to grunt (click) and wave your hands (mouse) at the computer until it does what you want. (imagine the mouse pointer as your hand, then say "ugh" every time you click to mean "ME WANT THAT".) if whoever wrote the gui didn't add a feature that you can specifically communicate with an exact grunt and wave sequence, you're out of luck and have to ask the developer to add that.
Shell scripting is like spoken language, a much more natural and powerful way to communicate what you want to do. instead of every developer having to reimplement functionality for crawling a tree and doing something, one guy just writes the 'find' command and it's usable in conjunctions with other commands. [/QUOTE]
source: https://hydrogenaud.io/index.php?PHPSESSID=ae25885agmimsrj76...
CMD --help
man CMD
Tab competition
Command line history search
Subjective. However, if you can type at a reasonable speed, the terminal is faster than moving a mouse around.
Now, GUI makes more sense for many things. Kinda hard to edit video without a GUI (but if someone has a command-line-driven video rendering editor, let me know - I want to explore this.) Visual programming wouldn't be 'visual' without GUI.
Have you heard of one of the most popular visual editor called 'vi' (short form of 'visual')?
But of couse I don't use it. Once you know Emacs well, you won't either. :-)
There is a linear editor called AviSynth that's relatively popular and very Windows-based.
Straight up.
apt-get /pip /equivalents are all astonishingly efficient methods of installing programs. Have seen many non-tech inclined people change their mind quickly once being exposed to it.
Perhaps we should be asking people to try first? A gui is a necessity in certain situations, but it shouldn't be lore.
Demand more and you will get more.
I was hoping for actual small common cases where people use JS to do something that's super easy with CSS, like animations.
I actually built one of these hybrids for a piece of chip design software, where scripting is very much expected. Architectural bonuses were that it was almost like having a GUI microservice; it could iterate separately, be written in a different language, and crash separately too.
Either way, I think log files of actions taken are much more debuggable than watching a computer control the gui.
Some beliefs which are frequently displayed in these parts:
> Money on chairs / desks / PCs are no object because developers cost money, not those things
> Ship quickly and iterate
> Make it, make it work, make it fast
> Write code your successor can maintain
And then HN goes ahead and upvotes a boast about spending their (expensive) time unpicking libraries from code.
The point of "you might not need X" is to encourage package maintainers to keep their sub-package footprint small, not that end-users shouldn't use X.
I'm sure you'll be back to suggest that you've delivered "500% speed-up" or some other nonsense metric and I look forward to that.
Ultimately, custom business owned code which attempts to deliver the value of angular is just a future maintenance nightmare, and I say that as someone who really doesn't like angular.
If you really replaced angular with a "javascript one-liner" I'd like to see that line!
Ultimately, custom business owned code which attempts to deliver the value of angular is just a future maintenance nightmare, and I say that as someone who really doesn't like angular.
I suspect the problem the commenter is hinting at concerns situations where people think they need the "value of {angular,react,bootstrap,whatever}" when really they don't.
To be sure, lots of projects have the opposite problem, but SPAs aren't some make-work conspiracy, they have real use.
Add to that, that you then have by necessity an API you can use for other systems to interact with yours (or just to build some quick one off scripts) and the advantages are even clearer.
When You-Dont-Need-Windows, You don't need this either. Do you?
It doesn't check everything and has some bugs. osslsigncode goes most of the way there but you have to write a lot of the remaining parts yourself using a combination of openssl C API and add a ton of extra C code.
And this is the kind of crypto that is challenging to get exactly right with no vulns especially in C/C++.
~~No external dependencies~~ Builds a statically linked Chrome, so just `npm install` and you're good to go
Without it is is just a waste of time.
The first one I tried (CSS only accordion) takes you to a site where the author himself says that this is an experiment and was not meant for use in production (no IE support).
Also, compatibility for these noon lodash methods are chrome and Firefox.