changeset 14:44025d01ad7e

add bash
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 20 Apr 2022 08:20:58 -0600
parents bebbb3f92a01
children 9694eff797bf
files src/bash.html.luan src/existing.html.luan src/site.css
diffstat 3 files changed, 35 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
diff -r bebbb3f92a01 -r 44025d01ad7e src/bash.html.luan
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/bash.html.luan	Wed Apr 20 08:20:58 2022 -0600
@@ -0,0 +1,33 @@
+local Luan = require "luan:Luan.luan"
+local error = Luan.error
+local Io = require "luan:Io.luan"
+local Http = require "luan:http/Http.luan"
+local Shared = require "site:/lib/Shared.luan"
+local head = Shared.head or error()
+local existing_header = Shared.existing_header or error()
+
+
+return function()
+	Io.stdout = Http.response.text_writer()
+%>
+<!doctype html>
+<html>
+	<head>
+<%		head() %>
+		<title>Reactionary Software - Bash</title>
+	<head>
+	<body>
+<%		existing_header() %>
+		<div content>
+			<h1>Bash</h1>
+
+			<p><a href="https://www.gnu.org/software/bash/">Bash</a> is a Unix shell or command line.  There are many shells available but Bash is old and standard.  None of the alternatives are better, so stick with Bash.</p>
+
+			<p>Bash is the first programming language that one should learn.  This isn't the conventional approach, but think of human languages like English.  Does one start a new language by having conversations or by writing essays?  The command line is like having a conversation with one's computer while a program is like an essay.  Using the command line will naturally get one used to the right kind of thinking needed for programming.  The next step is to write programs (shell scripts) in Bash to automate what one does from the command line.  Another benefit to learning bash is that it helps one understand one's computer.  Bash deals with basic concepts like files and directories.  Note that the first <a href="/books.html">book</a> recommended here is <a href="https://www.amazon.com/Unix-Programming-Environment-Prentice-Hall-Software/dp/013937681X/">The Unix Programming Environment</a> which introduces the shell.</p>
+
+			<p>The right environment for programming is the command line and a text editor, not an <a href="https://en.wikipedia.org/wiki/Integrated_development_environment">IDE</a>.  IDEs are one of the horrors of modern programming.  They are bloated, overcomplicated, and inflexible.  Reactionary programming should be based on using simple flexible tools like the shell and a text editor.</p>
+		</div>
+	</body>
+</html>
+<%
+end
diff -r bebbb3f92a01 -r 44025d01ad7e src/existing.html.luan
--- a/src/existing.html.luan	Tue Apr 19 14:07:57 2022 -0600
+++ b/src/existing.html.luan	Wed Apr 20 08:20:58 2022 -0600
@@ -22,6 +22,7 @@
 			<h1>Existing Reactionary Software</h1>
 			<ul links>
 				<li><a href="/mercurial.html">Mercurial</a></li>
+				<li><a href="/bash.html">Bash</a></li>
 				<li><a href="/java.html">Java 8</a></li>
 				<li><a href="http://www.luan.software/">Luan</a></li>
 				<li><a href="/nginx.html">Nginx</a></li>
diff -r bebbb3f92a01 -r 44025d01ad7e src/site.css
--- a/src/site.css	Tue Apr 19 14:07:57 2022 -0600
+++ b/src/site.css	Wed Apr 20 08:20:58 2022 -0600
@@ -23,7 +23,7 @@
 [content] {
 	margin-left: 3%;
 	margin-right: 3%;
-	margin-bottom: 32px;
+	margin-bottom: 2em;
 }
 
 ul[links] {