Fucking Shell Scripts
171–180 of 180 posts
Re: Fucking Shell Scripts
#172Re: Fucking Shell Scripts
#173Earlier quoted context omitted.
It's pretty funny, but it's an example of where we do NOT want to be headed. The Unix philosophy is a set of tenets based on assumptions that held in the 1970s and 1980s, but don't really hold today. One of these tenets is, "make the implementation as simple and as correct as possible; it is better for an implementation to be simple than to be correct." This may have been true in an era when every site had to roll a…
> One of these tenets is, "make the implementation as simple and as correct as possible; it is better for an implementation to be simple than to be correct." Having been a Unix admin since long before Linux existed, I find this statement to be complete bullshit.
[0] ("Correctness-the design must be correct in all observable aspects. It is slightly better to be simple than correct.")
Re: Fucking Shell Scripts
#174Earlier quoted context omitted.
How would you take a template file, fill in some values, copy it to a certain path on the server and give it the right permissions? With, say, Python, I'd have to read the file, using mako or jinja to fill in the values, scp the file to some temporary file, then somehow run Python code on the server using SSH to copy the file and give it the right permissions. With Ansible, this is a single line.
Let's see... I would take the template file, fill in some values, scp it up to it's final location on the server, and run chmod on the server. I guess I could learn the "one-line" ansible way to do it, but I'd also have to learn to set up ansible. And I'm guessing it's not as flexible as, say, shell scripts.
As for not being as flexible as shell scripts, I'd say that's technically impossible, since it has a command for running shell scripts :) Personally, I never had to use it, but it's there.
Re: Fucking Shell Scripts
#175Earlier quoted context omitted.
> One of these tenets is, "make the implementation as simple and as correct as possible; it is better for an implementation to be simple than to be correct." Having been a Unix admin since long before Linux existed, I find this statement to be complete bullshit.
I think it's the chinese whisper effect applied to http://www.jwz.org/doc/worse-is-better.html [0] and as such more cult than information. As witnessed by the discussion around here. [0] ("Correctness-the design must be correct in all observable aspects. It is slightly better to be simple than correct.")
Re: Fucking Shell Scripts
#176Have to say I'm a bit puzzled by the claim of Ansible being "blow your brains out" difficult. In many cases, Ansible is even easier than shell scripts. I wrote a post about this a few months ago: https://devopsu.com/blog/ansible-vs-shell-scripts/ I completely understand where the sentiment is coming from though. I wrote a comparison book on Puppet, Chef, Salt, and Ansible a few months ago and am currently finishing t…
Re: Fucking Shell Scripts
#177Have to say I'm a bit puzzled by the claim of Ansible being "blow your brains out" difficult. In many cases, Ansible is even easier than shell scripts. I wrote a post about this a few months ago: https://devopsu.com/blog/ansible-vs-shell-scripts/ I completely understand where the sentiment is coming from though. I wrote a comparison book on Puppet, Chef, Salt, and Ansible a few months ago and am currently finishing t…
Re: Fucking Shell Scripts
#178Earlier quoted context omitted.
Shell scripts are extremely portable and should be the preferred method for a large set of tasks. Properly written, a shell script can run on a 20 year old Solaris machine, any version of Windows (with installed tools like Cygwin) and any modern Unix variant... claiming Node.js is more portable is ridiculous on so many levels. The problem is so many programmers don't take the time (or care to take the time) to learn…
Ahh yes, the much vaunted Hammer Factory Factory. http://discuss.joelonsoftware.com/default.asp?joel.3.219431....
Seems like he really did need some tools.
Re: Fucking Shell Scripts
#179Earlier quoted context omitted.
It's pretty funny, but it's an example of where we do NOT want to be headed. The Unix philosophy is a set of tenets based on assumptions that held in the 1970s and 1980s, but don't really hold today. One of these tenets is, "make the implementation as simple and as correct as possible; it is better for an implementation to be simple than to be correct." This may have been true in an era when every site had to roll a…
I knew this was a systemd advocate after the second sentence. Hilarious.
Re: Fucking Shell Scripts
#180Earlier quoted context omitted.
The user of a piece of software is more important than its current or future maintainers.
Yes but current or future users want reliability, features, and speed. If you care about your users in the long term you should care about the project's maintainers.