Live data from Hacker News

The Rule of Silence (2006)

linfo.org

61–70 of 318 posts

Re: The Rule of Silence (2006)

#61
post #45

Earlier quoted context omitted.

to be fair thats not enough either. someone might accidentally have pressed 'a' , and now good luck understanding how to get out of it without having a crash course on vim

Yeah, whenever I run some program, I just press a random key like "a" to get started. ;)

It's not unreasonable to start typing in a text editor and you're likely to hit a or i sooner or later ...

Re: The Rule of Silence (2006)

#62
I always liked how MacOS loads silently without annoying the user even when it does some "hard" stuff like fsck.

Generally I think engineers need to fight the temptation to show off the importance and complexity of their software by spitting out all the unnecessary details and logs.

Re: The Rule of Silence (2006)

#63
post #3

This is a part of the unix philosphy I often forget, but agree with just as much as the rest. As an example: I love curl for piping the data to stdout per default, but I'm frequently annoyed by the progress bars I didn't ask for, especially if a script involves multiple curl commands.

Seconded. Though curl isn't the worst offender in that regard. Anything that touches TeX drives me nuts with its blatant disregard for this rule. Not only does every TeX engine spew pages of output while processing even the simplest documents, but there is no way to turn it off. (It's hardly the only way in which TeX makes my blood boil, but it's the most visible one.) FFmpeg is also quite bad here, but at least you…

One of the things I liked about typesetting with troff is that it follows Unix conventions (duh).

Re: The Rule of Silence (2006)

#65
post #15

Earlier quoted context omitted.

> Note that the "rule of silence" (combined with the habit of writing documentation like longform essays) is also one factor that makes unix-like systems newbie-unfriendly. (Famous example: trying to exit vi) $ man foo *scroll to the end with the EXAMPLES section* There should be an option for that. man --take-me-to-the-examples foo

You might find this intersting: https://github.com/tldr-pages/tldr

Thanks for this, you've just made my day!

Re: The Rule of Silence (2006)

#68
post #34
post #26

Earlier quoted context omitted.

> Famous example: trying to exit vi To be fair, this has been fixed a long time ago. At least Vim (which is the Vi installed on most systems) shows the following message on startup: ~ VIM - Vi IMproved ~ ~ version 7.4.1829 ~ by Bram Moolenaar et al. ~ [...] ~ Vim is open source and freely distributable ~ ~ Help poor children in Uganda! ~ type :help iccf for information ~ ~ type :q to exit ~ type :help or for on-line…

Someone unfamiliar might just be dumped into vi because some other program thought it'd be great to open a text editor, e.g. for a commit message. You're unlikely to run vi intentionally unless you also know you want to run vi and how to exit, I guess.

Programs that put you into Vi, /should/ be calling $EDITOR, if $EDITOR is to to Vi(m), you should know how to use it.

Also, if you ^C in Vi, you get the message:

  Type  :quit  to exit Vim

Re: The Rule of Silence (2006)

#69
post #24

It's often a stupid rule. If you have a process that is stuck, you type "kill " to kill it. But kill doesn't tell you if the process was killed or not, so you have to double-check with "ps " to see if it is still alive. If it is, you try again with "kill -9 ". I suspect the reason is that for most signals, kill can't determine if the signal was acted upon or not. But for KILL and TERM it could wait a few milliseconds…

you already have a tool to check whether processes exist... 'ps'. This is the essence of 'small, single purpose programs that work well with each other' rule.

Actually, sending the zero signal to a pid as in `kill -0 ` checks whether that pid exists and whether the calling process has permissions to send signals to it.

Re: The Rule of Silence (2006)

#70
post #34
post #26

Earlier quoted context omitted.

> Famous example: trying to exit vi To be fair, this has been fixed a long time ago. At least Vim (which is the Vi installed on most systems) shows the following message on startup: ~ VIM - Vi IMproved ~ ~ version 7.4.1829 ~ by Bram Moolenaar et al. ~ [...] ~ Vim is open source and freely distributable ~ ~ Help poor children in Uganda! ~ type :help iccf for information ~ ~ type :q to exit ~ type :help or for on-line…

Someone unfamiliar might just be dumped into vi because some other program thought it'd be great to open a text editor, e.g. for a commit message. You're unlikely to run vi intentionally unless you also know you want to run vi and how to exit, I guess.

[deleted]
Post reply on HN