News for hackers. Stuff that matters.
Re:For the Love of Pipes by mothsonasloth on Tuesday January 22, 2019 @07:24AM (#18967755)
[Quote]

The Unix philosophy is documented by Doug McIlroy as:

    Make each program do one thing well. To do a new job, build afresh rather than complicate old programs by adding new “features”.

    Expect the output of every program to become the input to another, as yet unknown, program. Don’t clutter output with extraneous information. Avoid stringently columnar or binary input formats. Don’t insist on interactive input.

    Design and build software, even operating systems, to be tried early, ideally within weeks. Don’t hesitate to throw away the clumsy parts and rebuild them.

    Use tools in preference to unskilled help to lighten a programming task, even if you have to detour to build the tools and expect to throw some of them out after you’ve finished using them.

I really like the last two, if you can do them in development then you are then you have a great dev culture
Re:For the Love of Pipes by quietbritishjim on Tuesday January 22, 2019 @07:32AM (#18967785)
Reformatted to be readable:

> Make each program do one thing well. To do a new job, build afresh rather than complicate old programs by adding new “features”.

> Expect the output of every program to become the input to another, as yet unknown, program. Don’t clutter output with extraneous information. Avoid stringently columnar or binary input formats. Don’t insist on interactive input.

> Design and build software, even operating systems, to be tried early, ideally within weeks. Don’t hesitate to throw away the clumsy parts and rebuild them.

> Use tools in preference to unskilled help to lighten a programming task, even if you have to detour to build the tools and expect to throw some of them out after you’ve finished using them.

Re:For the Love of Pipes by majewsky on Tuesday January 22, 2019 @07:50AM (#18967864)
If bots were not discouraged on news.yc, I would have implemented a bot for this long ago. Code-block quotes are so atrocious, esp. on mobile devices.
Re:For the Love of Pipes by Leace on Tuesday January 22, 2019 @08:38AM (#18968122)
It seems "white-space: pre-wrap" on code block would solve most of the problem. There is also additional "max-width" on the pre that I think is not needed.
Re:For the Love of Pipes by masklinn on Tuesday January 22, 2019 @12:38PM (#18970261)
That would break actual code snippet.

What would solve most of the problems is HN actually implementing markdown instead of the current half-assed crap.

Re:For the Love of Pipes by abraae on Tuesday January 22, 2019 @01:27PM (#18970816)
I would hate to see the day HN allowed any way to bold sections of text.

It's way more restful purveying a page of uniformly restrained text.

Re:For the Love of Pipes by masklinn on Tuesday January 22, 2019 @01:54PM (#18971140)
> I would hate to see the day HN allowed any way to bold sections of text.

HN already has shitty italics (shitty in that it commonly matches and eats things you don't want to be italicised e.g. multiplications, pointers, … in part though not only because HN doesn't have inline code). "bold" can just be styled as italics, or it can be styled as a medium or semibold. It's not an issue, and even less worth it given how absolute garbage the current markup situation is.

Re:For the Love of Pipes by yen223 on Tuesday January 22, 2019 @05:43PM (#18973393)
For a site that's meant to target programmers, HN's handling of code blocks is pretty poor.

Just give me the triple-tilde code block syntax please!

Re:For the Love of Pipes by masklinn on Wednesday January 23, 2019 @11:29AM (#18979658)
> For a site that's meant to target programmers, HN's handling of code blocks is pretty poor.

Meh. It does literal code blocks, they work fine.

That's pretty much the only markup feature which does, which is impressively bad given HN only has two markup feature: literal code blocks and emphasis.

It's not like they're going to add code coloration or anything.

And while fenced code blocks are slightly more convenient (no need to indent), pasting a snippet in a text editor and indenting it is hardly a difficult task.

Re:For the Love of Pipes by dahfizz on Tuesday January 22, 2019 @01:46PM (#18971030)
How is that meaningfully different to italics in that regard?
Re:For the Love of Pipes by K2L8M11N2 on Tuesday January 22, 2019 @02:52PM (#18971769)
Bold text stands out when visually scanning the page, italics don't.
Re:For the Love of Pipes by vorpalhex on Tuesday January 22, 2019 @12:59PM (#18970485)
What is it with so many products (HN, Discord, Slack) building half assed markdown implementations that aren't actually markdown?
Re:For the Love of Pipes by rhacker on Tuesday January 22, 2019 @01:20PM (#18970720)
What's Markdown?

- Slack product development

(that was a joke but is likely the answer to your question)

Re:For the Love of Pipes by oldmanhorton on Tuesday January 22, 2019 @03:31PM (#18972131)
To be pedantic, there's debate about what is "actually markdown". No one would say it's the flavor HN implements, but the easiest way to win some games is to simply not play
Re:For the Love of Pipes by quietbritishjim on Tuesday January 22, 2019 @01:02PM (#18970523)
That would break any existing comments that happened to be using markdown syntax as punctuation. Although I suppose you could have a flag day for the changeover and format differently based on comment creation time.

But I think the very limited formatting is just fine anyway. For the above comment as an example, I agree the code formatting looks awful, especially on mobile. But the version with >'s is ok, and I don't think proper bullet points or a quote bar would have improved it dramatically.

Re:For the Love of Pipes by Leace on Tuesday January 22, 2019 @01:47PM (#18971043)
Conversations.im uses an interesting trick for rendering Markdown [0] - it leaves the syntax as is, so in the worst case you've got text with weird bold/italics, but the characters are 1:1 identical to what was sent.

[0]: Actually not Markdown but a subset but it's not important.

Re:For the Love of Pipes by jolmg on Tuesday January 22, 2019 @12:11PM (#18969920)
I agree with you on the max-width. I can't see whatever benefit it's supposed to provide outweigh the annoyance of having to scroll horizontally when there is a lot of empty space to the right that could be used to display more text.

I'm not too convinced on the wrapping of code, though.

Re:For the Love of Pipes by kakarot on Tuesday January 22, 2019 @12:15PM (#18969981)
white-space: pre-wrap on a code block could lead to confusion. Any change should be an optional setting in your user profile.

However you're definitely right about dropping the max-width property.

Re:For the Love of Pipes by glenneroo on Tuesday January 22, 2019 @07:59AM (#18967910)
Why is this or OP's even necessary? The bullet points are copied directly from the article.
Re:For the Love of Pipes by koboll on Tuesday January 22, 2019 @08:53AM (#18968210)
I'm sure I'm not the only one who opens the comments to skim them and quickly vet whether the article is worth reading or not
Re:For the Love of Pipes by korla on Tuesday January 22, 2019 @09:06AM (#18968294)
You are not. I made a chrome plugin to find the HN-discussions for an article thinking I'd use it primarily after I'd read an article, but I find that I more often than not use it as a benchmark whether I should spend the time to read it or not.
Re:For the Love of Pipes by pdkl95 on Tuesday January 22, 2019 @08:07AM (#18967947)
> The Unix philosophy is documented by Doug McIlroy as

TaoUP has a longer discussion[1] of the Unix philosophy, which includes Rob Pike's and Ken Thompson's comments on the philosophy.

[1] http://www.catb.org/esr/writings/taoup/html/ch01s06.html

"Those who don't understand Unix are condemned to reinvent it, poorly." (Henry Spencer)

Re:For the Love of Pipes by anthk on Tuesday January 22, 2019 @09:43PM (#18975199)
Avoid TAOUP, is really bad. Most of the lore have stolen from places as LISP and VAX communities. ESR is to Pike and Ken as alien as X11 itself.
Re:For the Love of Pipes by Kodix on Wednesday January 23, 2019 @03:13AM (#18976571)
I'm not sure I understand - is TAOUP bad because it stole information, or because the information it has is wrong?

Because I'd consider the latter to be far worse than the former.

Re:For the Love of Pipes by leethargo on Wednesday January 23, 2019 @02:58AM (#18976503)
I enjoyed it when I read it many years ago, but maybe that was because I was inexperienced and naive.

Could you recommend some "original sources" to learn from, instead? Ideally in book form?

Re:For the Love of Pipes by anthk on Wednesday January 23, 2019 @03:28PM (#18982515)
Not TAOUP specially, but the Jargon file is what ESR took loads of things as wrong or Unix related. Also, at TAOUP you have Emacs, which is the Anti-UNIX by definition. https://www.dourish.com/goodies/jargon.html
Re:For the Love of Pipes by cben on Sunday January 27, 2019 @06:08AM (#19011273)
TAOUP had a chapter "a tale of 5 editors" discussing emacs, vi, and more, and does point out emacs is an outlier (and outsider) to many unix principles. It does quote Doug McIlroy speaking against it (but also against vi?). It attempts to generalize from discussing "The Right Size for an Editor" question to discussing how to think about "The Right Size of Software".

I don't know if it's possible to have impartially "fair" discussion of editors. Skimming now, I can see how vi lovers would hate some characterizations there. But it does try to learn interesting lessons from them.

It does NOT simply equate "Emacs has UNIX nature" so you can't just prove something like "TAOUP mentions Emacs, Emacs is GNU, Gnu is Not Unix => TAOUP is not UNIX, QED" ;-)

http://www.catb.org/esr/writings/taoup/html/ch13s02.html

bias disclaimers: I learnt most of what I know of unix from within Emacs, which I still use ~20 years later. I learnt more from Info pages than man pages (AIX had pretty bad man pages). I suspect you have a different picture of unix than I. And I now know better than arguing which editor is better ;)

But I found TAOUP articulated ideas I only learnt through osmosis. I'm looking forward to reading a better articulation if you know one.

Re:For the Love of Pipes by Waterluvian on Tuesday January 22, 2019 @07:31AM (#18967780)
The last one is especially interesting to me these days. On a macro scale it sure sounds a whole lot like the robot revolution taking unskilled jobs.

But of course that's probably not the author's intended context.

Re:For the Love of Pipes by marcosdumay on Tuesday January 22, 2019 @08:27AM (#18968066)
Programmers have been destroying programmer jobs since those jobs exist. Up to now it has meant we have enough productivity for going into more markets, but that will not last forever.
Re:For the Love of Pipes by matchagaucho on Tuesday January 22, 2019 @11:27AM (#18969428)
From 1978, and still applicable to microservices today.
Re:For the Love of Pipes by Breza on Tuesday January 29, 2019 @01:33PM (#19028716)
That's my reaction too! Microservices with a dash of agile.