Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
the best poll is:
bash
zsh
fish
cmd.exe
powershell
COMMAND.COM
some ancient greybeard poo poo ive never heard of
the JS console in ur browser
gently caress off moo cow
checkbox poll
View Results
 
  • Locked thread
Gazpacho
Jun 18, 2004

by Fluffdaddy
Slippery Tilde
thansk for leaving out csh and tcsh OP, that was the right thing to do

Adbot
ADBOT LOVES YOU

Gazpacho
Jun 18, 2004

by Fluffdaddy
Slippery Tilde
one of my co's is always looking for the next homeopathic software tool to save him from having to understand anything

yesterday he asked how to do something, so I started to type a command on his computer and pressed tab for file completion and that caused the shell window to hang

he said "this is zshell" and I asked why he was using it with a broken autocomplete and he just giggled. he'd do this with every tool given the chance

Gazpacho
Jun 18, 2004

by Fluffdaddy
Slippery Tilde

Mr SuperAwesome posted:

i looked at the wikipedia page for shells and saw them and i was like "hosed if i konw what the gently caress they are" so they didn't make it
They're the default for bsds and they are also bad

Gazpacho
Jun 18, 2004

by Fluffdaddy
Slippery Tilde
Bill joy is known for two programs that took over the programming world to varying degrees yet both made it a worse place

Gazpacho
Jun 18, 2004

by Fluffdaddy
Slippery Tilde
Btw the answer is emacs

Gazpacho
Jun 18, 2004

by Fluffdaddy
Slippery Tilde

Doc Block posted:

no csh? voted 1
Correct

Gazpacho
Jun 18, 2004

by Fluffdaddy
Slippery Tilde

JewKiller 3000 posted:

then again, you program in c++ and think it's ok, so i'd say this is a wash
i do not fear the machine

Gazpacho
Jun 18, 2004

by Fluffdaddy
Slippery Tilde
:waycool:

Gazpacho
Jun 18, 2004

by Fluffdaddy
Slippery Tilde
although making each object a directory with inheritance via symlinks would be a more unixy approach imo

Gazpacho fucked around with this message at 04:36 on Aug 5, 2017

Gazpacho
Jun 18, 2004

by Fluffdaddy
Slippery Tilde

Gazpacho posted:

although making each object a directory with inheritance via symlinks would be a more unixy approach imo

to illustrate, here's a script that creates a board game object and invokes a method on it to initialize its board. (may contain bugs!)

Bash code:
#!/bin/bash

UNIVERSE="$HOME/universe"
mkdir -p "$UNIVERSE/instances"

createGame()
{
	local this=$(mktemp -dp "$UNIVERSE/instances" XXXXXX)
	mkdir "$this"/.state
	cat <<-'EOF' >"$this/initBoard"
		#!/bin/bash
		this="$(dirname "$0")"
		cat >"$this/.state/board"
	EOF
	chmod u+x "$this"/*
	echo "$this"
}


game=$(createGame)
sed -e 's/\$$//' <<'EOF' | $game/initBoard
  X$
 X $
X  $
EOF

Gazpacho fucked around with this message at 09:00 on Aug 5, 2017

Gazpacho
Jun 18, 2004

by Fluffdaddy
Slippery Tilde
Perl: not even once

Adbot
ADBOT LOVES YOU

Gazpacho
Jun 18, 2004

by Fluffdaddy
Slippery Tilde

pram posted:

why dont more people use tcl
because Stallman wrote an essay against it and also because it is bad

  • Locked thread