News for hackers. Stuff that matters.
Re:Fucking Shell Scripts by bitwize on Friday March 14, 2014 @08:00PM (#7402795)
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 homegrown solution for pert-near everything that didn't come with the base OS, but in this era of open source it is far more important for the implementation to be correct, because the Right Thing can be written once and everybody can use it, and save themselves the accumulated hours of frustration incurred by simple-but-subtly-incorrect implementations.

This is why the Linux world is standardizing on systemd -- to get AWAY from Fucking Shell Scripts and towards a more deterministic, declarative model of what we want done. In the case of configuration management, what you want is a tool that accepts a description of what the system configuration should be, diffs that against the current configuration, and enacts a plan of changes to get from point A to point B automatically. NixOS seems to be a good step in this overall direction.

Fun fact: I used to do instancing of robotic control computers running a specialized version of Debian with Fucking Shell Scripts (FAI, to be exact: http://fai-project.org/ ). It was pure hell. We would have killed for a more deterministic solution.

Re:Fucking Shell Scripts by jamiesonbecker on Friday March 14, 2014 @10:49PM (#7403264)
Simple is almost always Correct.

Conversely, complex is almost always incorrect.

Re:Fucking Shell Scripts by mercurial on Saturday March 15, 2014 @03:58AM (#7403993)
"Simple enough is almost always correct". "Too simple for the problem domain" is almost always a synonym for "build a heap of absolutely terrible and verbose pile of complexity on top of the 'simple' system". See also sysvinit.
Re:Fucking Shell Scripts by kelnos on Saturday March 15, 2014 @04:10AM (#7404006)
Strongly disagree. Often complexity in your implementation is necessary to present a simple interface to your user.
Re:Fucking Shell Scripts by eikenberry on Saturday March 15, 2014 @05:43AM (#7404157)
The primary user of your implementation is the next developer to maintain it.
Re:Fucking Shell Scripts by kelnos on Saturday March 15, 2014 @06:37AM (#7404228)
The user of a piece of software is more important than its current or future maintainers.
Re:Fucking Shell Scripts by rschmitty on Saturday March 15, 2014 @08:36AM (#7404441)
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.
Re:Fucking Shell Scripts by kelnos on Wednesday March 26, 2014 @06:07AM (#7472468)
I suggested a relative ordering of importance; nowhere did I imply that one was important and the other was not.
Re:Fucking Shell Scripts by eikenberry on Saturday March 15, 2014 @01:59PM (#7405435)
Thinking like this is why we have so much crappy software out there.
Re:Fucking Shell Scripts by bitwize on Saturday March 15, 2014 @03:15PM (#7405852)
To quote Ryan Dahl: The only thing that matters in software is the experience of the user.

How many more times must it be said? How many more times must Apple win -- and win big -- before open source nerds get the message?

Re:Fucking Shell Scripts by billsix on Friday March 14, 2014 @10:52PM (#7403276)
I thought the unix quote on simple vs correct is regarding things like "what should the kernel do when a process is processing a system call like read/write and needs to handle a signal. should it return an error of type EAGAIN, or somehow completely shield the user-space program of this condition?".

http://www.jwz.org/doc/worse-is-better.html

> This may have been true in an era when every site had to roll a homegrown solution for pert-near everything that didn't come with the base OS, but in this era of open source it is far more important for the implementation to be correct, because the Right Thing can be written once and everybody can use it, and save themselves the accumulated hours of frustration incurred by simple-but-subtly-incorrect implementations.

The BSDs and linux are open source, but we still must check for EAGAIN.

Re:Fucking Shell Scripts by felixgallo on Saturday March 15, 2014 @03:05AM (#7403899)
I knew this was a systemd advocate after the second sentence. Hilarious.
Re:Fucking Shell Scripts by bitwize on Sunday March 23, 2014 @10:15PM (#7456324)
Uh, most of the Linux community consists of systemd advocates now. Systemd is now a fait accompli on all the major distros, and most of the users I encounter just want the bickering to stop. It would have stopped long ago were it not for a small but loud contingent of haters.
Re:Fucking Shell Scripts by kjs3 on Saturday March 15, 2014 @04:59PM (#7406426)
> 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.

Re:Fucking Shell Scripts by route66 on Saturday March 15, 2014 @07:07PM (#7406932)
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 by kjs3 on Saturday March 15, 2014 @09:00PM (#7407314)
Interesting theory. Considering the ignorance displayed, I think you're correct. Microsoft quality anti-Unix FUD.