Yes, I do think a *lot* of this UI/UX stuff is an enormous waste of time.
Especially since we have collectively "rediscovered"
how good language can be,
in the form of Siri, Alexa, and now ChatGPT
(a waste of time and perhaps "ableist" as well.)
Know how to make your interface "ADA compliant" or otherwise definitely works everywhere?
ONLY USE TEXT.
All computers do is “numbers”
(but, you can store anything in numbers)
All computers do is follow a very
precise list of instructions that one or
more people wrote.
1) If there's a door in arms-reach, exit – you're done, else
2) If you can, take one step forward then goto 1), else
3) Rotate to the left until there's not a wall in front of you
then goto 1)
(this will get you out of any “regular” empty room)
In computers, it's actually okay to define something with itself.
PSUEDOCODE!
(this will get you out of any “regular” empty room)
The difference between us and the computers?
We can handle a random word put in the middle
of a tacos sentence and it doesn't break us...
(but AI tho)
(all computer languages are for humans!)
Changing your screensaver
Writer/Word
Calc/Excel
HTML/CSS
Bash
PHP/MYSQL/Javascript
C compiled
Assembly (00 4E A3 77 8C 0A etc)
Word is probably the worst program ever made
Excel is probably the best program ever made
Yup. Probably the best "programming language" ever.
Enabled people to do so much
(also, you click on cell, you can see why it does thing)
1) Free and open
2) Language/Text Based
(These two are completely related; newer stuff tries to allow for more of 2 and/or 1; e.g. Mac OS X, Android)
All files can be thought of as either "text" or "binary"
Can you kind of read it even though you are a human? That's "text," then.
Lots of different LAYERS of software at
different levels.
(Apple/Windows just squishes them all together)
Linux has MANY Different
Window Managers
used in even more different
Desktop Environments
which probably looks a lot like "different operating systems"
(all computer languages are for humans!)
Changing your screensaver
Writer/Word
Calc/Excel
HTML/CSS
Bash
PHP/MYSQL/Javascript
C compiled
Assembly (00 4E A3 77 8C 0A etc)
It's nearly always presented as...
print “Hello world”;
and/or
(as if you were starting from scratch)
At a point in history, this was the ONLY
way to interact with the computer
AND
The "users" were the "programmers"
NO HAND HOLDING
1. Make each program do one thing well. To do a new job, build afresh rather than complicate old programs by adding new "features". 2. **Expect the output of every program to become the input to another, as yet unknown, program.** Don't clutter output with extraneous information. Avoid stringently columnar or binary input formats. Don't insist on interactive input. 3. Design and build software, even operating systems, to be tried early, ideally within weeks. Don't hesitate to throw away the clumsy parts and rebuild them. 4. Use tools in preference to unskilled help to lighten a programming task, even if you have to detour to build the tools and expect to throw some of them out after you've finished using them.
That default thing that comes up on all the unixy-linuxy systems everywhere.
It’s a text interface. You type commands into it and the computer responds.
And it’s also a "programming" language. As in, you can type in more than one command in a row, save it to a file, and run the file. So, you know, "programming."
(ignore basic programming ideas like "objects" for now)
TEXT and BINARY. That's all, really.
(open it in a text program like gedit or leafpad or notepad. Can you kind of read any of it?)
NOTE: Remember, frequently you can convert one to the other, e.g. ZIPs
That default thing that comes up on all the unixy-linuxy systems everywhere.
It’s a text interface. You type commands into it and the computer responds.
And it’s also a "programming" language. As in, you can type in more than one command in a row, save it to a file, and run the file. So, you know, "programming."
(ignore basic programming ideas like "objects" for now)
SCRIPTING is as much about
Using programs that ALREADY EXIST TOGETHER
as it is
Making new programs.
("Libraries" on steroids?)
..actually mean something today
ROOT – Like “Administrator” or maybe “God”
users – humans
(..and others – fake “users” to get tasks done)
Some systems (eg Ubuntu) allow for Super Users
S.U.- do “this” = sudo
Three major things you can do with files
Three important “groups”
..are weird
(create new/delete existing files, or rename them)
Any IMPERATIVE action the computer can do. Can be one word or more.
Ultimately, will be an ORDER, usually expressible as a VERB
Are VERY closely related to (if not identical) to FUNCTIONS/METHODS
"Computer! Do THIS!"
ls
Since we're in the command line we are always acting on:
FILES and/or TEXT. These will be input and/or output.
if commands are VERBS, the FILES and TEXT are the nouns/objects
We call these expressions
(and of course, the TEXT can lead you to something else, like a FOLDER)
cat file.txt echo "Hi there" ls "/home/mine"
Nearly every command can act on either TEXT or FILES or BOTH.
We've talked VERBS and NOUNS. But we might want to modify the operation of things;
Think ADVERBS and/or ADJECTIVES:
On the command line, these are called options
but seriously, Google/Duckduckgo etc
cat - "Good" example of "efficiency" at the expense of "redundancy"
i.e. it means "concatenate" — which is to squish two files together and print to the screen. But it can also do it with just one file.
less - this is such a terribly bad joke I hate even explaning it
because here is the power:
One way to describe cat - It "shows you the file"
BUT, let's be VERY precise here:
Cat TAKES A LINE OF TEXT (that refers to a file)..
and PRINTS IT ON THE SCREEN
TAKES A LINE OF TEXT = "Standard Input or stdin"
PRINTS IT ON THE SCREEN "Standard Output or stdout"
Default is to read from stdin, and write to stdout.
But by changing the default NOW YOU'RE PLAYING WITH POWER
(interesting then , cat goes from FILE to TEXT, and > goes from TEXT to FILE )
THAT'S MY OPINION
If it works and its clearer to you, don't let the supernerds tell you it's a bad idea e.g.
"Useless use of cat" IS FINE
BASH (Bourne Again) Shell - others are fish and zsh, etc
Lots of “tricks” are available here, eg
and many MANY more...
Furthermore, you can modify this environment to fit your needs, via:
.bashrc
(stuff here will be run everytime you open a terminal)
A great example is the “alias” command. If a command doesn't exist for what you want to do, just ,ake up your own!
alias modbash='nano ~/.bashrc'
You may see some like
"zsh" or "Zshell"
or Fish
or Oilshell
Roughly, they're a bit nicer to use, but are not "backwards compatible"
which may not matter. Feel free to try them out!
(later on, be careful when NOT using them interactively/as a REPL)
COMMAND/ARGUMENT STYLE
searching text for matches
grep OPTIONS PATTERN (FILE)
Can search over FILES or STDIN
Also, can search ONE FILE or MANY (check -d or -R)
useful flags:
-i (case insensitive)
-v (invert search/show NON-matches)
-l (just show matching FILES, not lines)
(see also "ripgrep" or rg)
"Transliterate"
Easier way to do SINGLE CHARACTER deletions or transforms
(but can act on "groups," like "A-Z"
Nice way to cut up lines. Just specify the "delimiter"
(the character you'll divide on)
and "which field" by number
echo "first:second:third" | cut -d ':' -f2
yields second
(hardcore nerds may distinguish and call these TUIs)
"ncurses"
firefox http://jrm4.com
or
firefox /home/myuser/html/testindex.html
(NOTE, closing the terminal may also close the program)