News for hackers. Stuff that matters.
Re:Functional Programming in Bash by mar77i on Friday August 23, 2019 @07:27PM (#20783806)
I like it, except the ambiguity with regard to existing tools, such as 'head' and 'tail'...
Re:Functional Programming in Bash by rgovostes on Saturday August 24, 2019 @07:09PM (#20790275)
Seems like this one is easy to avoid by renaming them to car and cdr.
Re:Functional Programming in Bash by meddlepal on Friday August 23, 2019 @06:44PM (#20783461)
I love functional programming, but I hate bash. I'm conflicted.
Re:Functional Programming in Bash by dmix on Friday August 23, 2019 @10:16PM (#20784760)
Bash and ZSH is just awful. I can't count the number of times I should have abandoned a script, and start over with a scripting language like ruby, instead of expanding it into a large shell script.

But it's also like Javascript where it's everywhere. So it's very useful in some ways.

MacOS is removing Ruby and some other languages from being default-installed, but I don't think running rvm/brew installs is too much to ask (usually myself :p).

Re:Functional Programming in Bash by zests on Saturday August 24, 2019 @12:30AM (#20785211)
Bash is so terrible that I love using it. Its one of the most extreme language in that it has a lot of pros and a lot of cons.

Its also ironic adjacent that you want people to install ruby with homebrew but most people install homebrew with ruby.

Re:Functional Programming in Bash by dmix on Saturday August 24, 2019 @02:27AM (#20785608)
Oh yeah good point about Ruby, ha. I didn't even think of that. I suddenly miss Linux and having an OS backed package manager.

The fact Apple hasn't fully embraced terminal users as an optional primary interface really bothers me. A package manager with a CLI should be part of every OS.

If I worked at Apple I'd be pushing the product team hard to embrace it. They're ignoring a big part of their operating system.

Re:Functional Programming in Bash by js4ever on Saturday August 24, 2019 @04:38AM (#20786018)
I love bash, but I hate functional programming. I'm conflicted.
Re:Functional Programming in Bash by gamescodedogs on Friday August 23, 2019 @05:37PM (#20782877)
Omg, never thought about it :) Good job!
Re:Functional Programming in Bash by 19ylram49 on Friday August 23, 2019 @05:51PM (#20783037)
Whoa, this is actually cool stuff.
Re:Functional Programming in Bash by aehtyb on Friday August 23, 2019 @05:36PM (#20782859)
nice examples