fortune

A simple Unix program that displays a random quote from a list of quotations.
git clone git://evanalba.com/fortune
Log | Files | Refs | README

commit 9a6f23248e2751b1067f56f37bdc042b2ded8c97
parent bc41255a890c4d53b257e79726f651c82c56108b
Author: Evan Alba <evanalba@protonmail.com>
Date:   Thu, 13 Jul 2023 10:11:58 -0700

feat: Added a couple more quotes and removed some trailing whitespace.

Diffstat:
A.README.md.swp | 0
MREADME.md | 10+++++-----
Mevanalba | 20++++++++++++++++----
Mevanalba.dat | 0
4 files changed, 21 insertions(+), 9 deletions(-)

diff --git a/.README.md.swp b/.README.md.swp Binary files differ. diff --git a/README.md b/README.md @@ -1,4 +1,4 @@ -Here lies a Fortune file which can be used with a simple Unix program called Fortune. +Here lies a Fortune file which can be used with a simple Unix program called Fortune. Requirements ------------ @@ -9,8 +9,8 @@ Installation MacOS: 1. brew install fortune (You can get the brew command by downloading homebrew, a macOS package manager. https://brew.sh/) 2. If no evanalba.dat file exists in the fortune directory you have downloaded, then: -% strfile fortunes/evanalba -3. % rm *.dat /opt/homebrew/Cellar/fortune/9708/share/games/fortunes +% strfile fortunes/evanalba +3. % rm *.dat /opt/homebrew/Cellar/fortune/9708/share/games/fortunes to remove all the existing .dat files of the Fortune program. If you ever want the existing fortune files in your directory to be included, just: % strfile /opt/homebrew/Cellar/fortune/9708/share/games/(Name of fortune file to create .dat file for it) Example: % strfile /opt/homebrew/Cellar/fortune/9708/share/games/startrek @@ -20,14 +20,14 @@ Example: % strfile /opt/homebrew/Cellar/fortune/9708/share/games/startrek OpenBSD: 1. If no evanalba.dat file exists in the fortune directory you have downloaded, then: -% strfile fortunes/evanalba +% strfile fortunes/evanalba 2. % rm *.dat /usr/share/games/fortune/* to remove all the existing .dat files of the Fortune program. If you ever want the existing fortune files in your directory to be included, just: % strfile /usr/share/games/fortune/(Name of fortune file to create .dat file for it) Example: % strfile /usr/share/games/fortune/startrek 3. % cp fortune/evanalba fortune/evanalba.dat /usr/share/games/fortune/ 4. Now, enter the following command whenever you want to get a fortune: -% fortune +% fortune Linux-based Operating System: Follow the OpenBSD instructions and read the man pages on fortune to see where your fortune directory is located at in your system. diff --git a/evanalba b/evanalba @@ -113,7 +113,7 @@ Deleted code is debugged code. - Jeff Sickel % Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. - - Brian W. Kernighan and P. J. Plauger + - Brian W. Kernighan and P. J. Plauger % The most effective debugging tool is still careful thought, coupled with judiciously placed print statements. - Brian W. Kernighan @@ -131,7 +131,7 @@ If you’re willing to restrict the flexibility of your approach, you can almost - John Carmack % And folks, let’s be honest. Sturgeon was an optimist. Way more than 90% of code is crap. - - viro + - viro % A data structure is just a stupid programming language. - R. Wm. Gosper @@ -257,10 +257,13 @@ A: Incompetent programmers. There are estimates that the number of programmers n - David Parnas % Well over half of the time you spend working on a project (on the order of 70 percent) is spent thinking, and no tool, no matter how advanced, can think for you. Consequently, even if a tool did everything except the thinking for you – if it wrote 100 percent of the code, wrote 100 percent of the documentation, did 100 percent of the testing, burned the CD-ROMs, put them in boxes, and mailed them to your customers – the best you could hope for would be a 30 percent improvement in productivity. In order to do better than that, you have to change the way you think. + - Fred Brooks % The best code is no code at all. + - Jeff Atwood % Before software can be reusable it first has to be usable. + - Jeff Johnson % Program testing can be a very effective way to show the presence of bugs, but is hopelessly inadequate for showing their absence. - Edsger W. Dijkstra @@ -324,7 +327,7 @@ Testing by itself does not improve software quality. Test results are an indicat % Incorrect documentation is often worse than no documentation. - Bertrand Meyer -% +% That’s the thing about people who think they hate computers. What they really hate is lousy programmers. - Larry Niven and Jerry Pournelle Oath of Fealty % @@ -532,7 +535,7 @@ Before optimizing, use a profiler to locate the "hot spots" of the program. % If the programmer can simulate a construct faster than a compiler can implement the construct itself, then the compiler writer has blown it badly. - Guy L. Steele, Jr. -% +% To speed up an I/O-bound program, begin by accounting for all I/O. Eliminate that which is unnecessary or redundant, and make the remaining as fast as possible. - David Martin % @@ -804,4 +807,13 @@ If you have kids, it is the most important thing to create good times. % Whether it's making a film or raising my children, personally I'm striving to do the right things and to learn. - Tom Cruise +% +It appears to me that if one wishes to make progress in mathematics, one should study the masters and not the pupils. + - Niels Abel +% +Intellectual property is the same thing as a number. It cannot be stolen, and claiming ownership of it is ridiculous. + - ssnf +% +A hundred years from now, long after people have forgotten me and my television show, ... the words California's Gold will mean those students who are the future of the world..." + - Huell Howser diff --git a/evanalba.dat b/evanalba.dat Binary files differ.