view src/bash.html.luan @ 54:50db01566278

learn mercurial
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 14 Jan 2024 20:46:18 -0700
parents 4c511f4aa282
children
line wrap: on
line source

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.  To learn Bash, see <a href="learn_bash.html">my Bash tutorial</a>.</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