News for hackers. Stuff that matters.
Re:China Grew Two Cotton Leaves on the Moon by brudgers on Monday September 30, 2019 @12:23PM (#21117012)

  Yossarian, I want you to do something for me. 
  [removes item from small bag] 
  I want to serve this to the men. 
  Taste it and let me know what you think.

  [Yossarian takes a bite]
  What is it?

  Chocolate-covered cotton.

  What are you, crazy?
  
  No good, huh?
 
  For Christ's sake, you didn't even take the seeds out!
  
  Is it really that bad?
 
  It's cotton!  
  
  They've got to learn to like it!

  Why?

  Look, I saw this great opportunity to corner the market
  in Egyptian cotton. How was I supposed to know there
  was going to be a glut? 
  I've got a hundred warehouses stacked with the stuff all 
  over the European theater.
  I can't get rid of a penny's worth. People eat cotton 
  candy, don't they? 
  Well this stuff is better - it's made out of real cotton.
 
  Milo, people can't eat cotton!

  They've got to - it's for the Syndicate!
  
  It will make them sick! - why don't you try it yourself 
  if you don't believe me?

  I did - and it made me sick.
There ain't no such thing as a free lunch.
Re:China Grew Two Cotton Leaves on the Moon by starpilot on Monday September 30, 2019 @01:14PM (#21117515)
Please don't use the code tag for quoting, it is incorrect syntax. This is what your quote looks like on mobile: https://i.imgur.com/GnxokMn.png
Re:China Grew Two Cotton Leaves on the Moon by brudgers on Monday September 30, 2019 @01:41PM (#21117801)
If rotation lock is off, placing the display in landscape mode might improve your experience.
Re:China Grew Two Cotton Leaves on the Moon by anonytrary on Monday September 30, 2019 @08:29PM (#21120929)
I can safely say this would not improve my experience even if it happens to fix the word-wrap issue here.

Also, this "fix" isn't sure-fire. In many cases, people who use code blocks for quoting aren't even inserting newlines, let alone in the places that match up with your screen's landscape width.

Re:China Grew Two Cotton Leaves on the Moon by gniv on Monday September 30, 2019 @05:33PM (#21119861)
It’s better but still not great. Some lines still cut off, and one third of the screen is blank. Why doesn’t the code know how wide my screen is?
Re:China Grew Two Cotton Leaves on the Moon by mdszy on Monday September 30, 2019 @01:39PM (#21117782)
are you somehow unable to read monospace text or something? That looks fine to me
Re:China Grew Two Cotton Leaves on the Moon by Roodgorf on Monday September 30, 2019 @01:56PM (#21117961)
I assume the complaint is that it doesn't word wrap so most of the text is cut off.
Re:China Grew Two Cotton Leaves on the Moon by jihadjihad on Monday September 30, 2019 @12:42PM (#21117211)
Off-topic: has anyone seen the new Catch-22 series on Hulu? Is it worth watching? I recently finished the book and happened to notice they made a miniseries of it!
Re:China Grew Two Cotton Leaves on the Moon by loeg on Monday September 30, 2019 @04:33PM (#21119406)
It's pretty good but not amazing. I enjoyed it because I read the book a long time ago. I bet if you read the book recently you wouldn't enjoy it as much.
Re:China Grew Two Cotton Leaves on the Moon by frio on Monday September 30, 2019 @06:00PM (#21120086)
I stopped after a couple of episodes. Maybe it picks up, but the book is one of my most treasured reads, and it just didn't seem to fit for me. It somehow misses the absurdism of the book. I could be being overly harsh, but... it just didn't seem to hit home.
Re:China Grew Two Cotton Leaves on the Moon by journalctl on Monday September 30, 2019 @05:24PM (#21119791)
I haven’t seen it. I only watch shows I’ve already seen.
Re:China Grew Two Cotton Leaves on the Moon by ivoras on Monday September 30, 2019 @12:54PM (#21117308)
Very decent, definitely watchable!
Re:China Grew Two Cotton Leaves on the Moon by xingped on Monday September 30, 2019 @01:31PM (#21117710)
Did not even know this existed. Thanks!
Re:China Grew Two Cotton Leaves on the Moon by drchewbacca on Monday September 30, 2019 @03:20PM (#21118765)
I loved it, best thing I've seen in a while. Though I haven't read the book and didn't know how great it was.
Re:China Grew Two Cotton Leaves on the Moon by soperj on Monday September 30, 2019 @01:20PM (#21117580)
Re-reading this right now. All time favorite.
Re:China Grew Two Cotton Leaves on the Moon by AlexCoventry on Monday September 30, 2019 @02:26PM (#21118246)
I think Milo was my favorite character, too.
Re:China Grew Two Cotton Leaves on the Moon by stochastic_monk on Monday September 30, 2019 @12:54PM (#21117314)
Please don't use code blocks for quotations. It ruins display/readability on mobile.
Re:China Grew Two Cotton Leaves on the Moon by daef on Monday September 30, 2019 @01:31PM (#21117706)
it feels like this is the 1.23E23th time I've read this - wouldn't it be time for HN to fix the css to make code-tags more readable (especially on mobile)?!
Re:China Grew Two Cotton Leaves on the Moon by ysavir on Monday September 30, 2019 @02:27PM (#21118260)
Sounds nice in theory, but the intention of code block is to capture how code looks--including where the lines break. That aspect of code blocks isn't broken.

The problem is people who use code blocks for what it wasn't intended to do-display quoted content.

Perhaps HN can add support for quotes, but even now there's nothing difficult with indicating a quote by adding a ">" to the start of the paragraph. Most, if not all, of HN readers will know what that means.

Re:China Grew Two Cotton Leaves on the Moon by reaperducer on Monday September 30, 2019 @02:33PM (#21118327)
The problem is people who use code blocks for what it wasn't intended to do-display quoted content.

The problem is that it doesn't work, even on mobile, whether you're posting code or the Declaration of Independence.

At its heart, this web site is about communicating information. The current state of the code block fails at that mission.

Would you use an IDE without word wrap?

Re:China Grew Two Cotton Leaves on the Moon by ilikehurdles on Monday September 30, 2019 @03:11PM (#21118666)
> Would you use an IDE without word wrap?

I wasn't aware it was controversial to use an IDE without word-wrap. I do not have it enabled on any of my editors.

Re:China Grew Two Cotton Leaves on the Moon by reaperducer on Monday September 30, 2019 @03:12PM (#21118668)
"Enabled" is one thing. But it should be available. In HN's code blocks, it's not even an option.
Re:China Grew Two Cotton Leaves on the Moon by baby on Monday September 30, 2019 @03:14PM (#21118700)
How do you read code from codebases that don’t respect the arbitrary column limit?
Re:China Grew Two Cotton Leaves on the Moon by loeg on Monday September 30, 2019 @04:31PM (#21119394)
I am flexible about how wide my editor is. Pretty much all code I read bounds itself to some sort of limit around 80-120 characters. If there are a few individual lines that exceed the current editor width, I can scroll. I don't have to work with any codebases that have ridiculously long lines.
Re:China Grew Two Cotton Leaves on the Moon by ilikehurdles on Monday September 30, 2019 @03:31PM (#21118867)
To be honest, I don't often read such code, or I try to run it through a formatter prior to reading. I guess I should have said that I _generally_ don't have soft wraps enabled. Sometimes I just have to plug my nose and soft-wrap.
Re:China Grew Two Cotton Leaves on the Moon by kelnos on Monday September 30, 2019 @05:13PM (#21119702)
I just suck it up and scroll like a normal person.
Re:China Grew Two Cotton Leaves on the Moon by baby on Monday September 30, 2019 @07:30PM (#21120644)
A normal person has word wrap toggled
Re:China Grew Two Cotton Leaves on the Moon by dkersten on Monday September 30, 2019 @03:39PM (#21118958)
> Would you use an IDE without word wrap?

Yes? I find word wrap in code really weird.

Re:China Grew Two Cotton Leaves on the Moon by OJFord on Monday September 30, 2019 @04:53PM (#21119572)
Long lines are just annoying, wrap or no wrap.

I don't want to hit 'j' and drop down two 'lines' because what I thought was the next line was actually the end of this line.

I also don't want to hit '$' and go not to the end of the 'line' but somewhere below (and potentially left) because of the same.

But I also don't want to hit '$' and go out into space to the right and lose context from the surrounding reasonably-lengthed lines.

Just use the return key and nobody has to worry about whether to wrap or not to wrap.

Re:China Grew Two Cotton Leaves on the Moon by comex on Monday September 30, 2019 @04:14PM (#21119271)
We know what it means, but it’s still hard to distinguish at a glance what is quoted and what is not. It works in (plaintext) email because emails are traditionally word-wrapped and “>” is inserted at the start of each line – not once at the start of an arbitrarily long paragraph. And even then, email clients often color quoted blocks to further visually distinguish them.
Re:China Grew Two Cotton Leaves on the Moon by hombre_fatal on Monday September 30, 2019 @06:33PM (#21120306)
Never had an issue with it on HN. 99% of quotes occur at the start of the post and the rest of the post is a reply.

Posts that interleave their content with quoted bits are rarely as constructive as they think (almost always just point-by-point bickering) that I find impossible to follow no matter what formatting they could've used for the quotes.

Also a single ">" prefix on a long wrapped line is a bit of internet convention with younger crowds probably thanks to 4chan. I doubt most people using it these days even remember seeing it in emails.

If anything, HN should post-process lines that start with ">" to indent them.

Re:China Grew Two Cotton Leaves on the Moon by vorpalhex on Monday September 30, 2019 @02:25PM (#21118227)
Code tags should not mess with line length. Instead you should quote formatting (`>`) for quotes (which HN doesn't support so it's all a bit moot).
Re:China Grew Two Cotton Leaves on the Moon by 0xdeadbeefbabe on Monday September 30, 2019 @03:58PM (#21119141)
He's quoting the font from catch 22 as well.
Re:China Grew Two Cotton Leaves on the Moon by corollari on Monday September 30, 2019 @05:34PM (#21119867)
Re:China Grew Two Cotton Leaves on the Moon by superkuh on Monday September 30, 2019 @01:46PM (#21117846)
Please don't use mobile. Mobile form factor limitations are ruining the web.
Re:China Grew Two Cotton Leaves on the Moon by journalctl on Monday September 30, 2019 @05:24PM (#21119785)
People look at me funny when I take my laptop to the bathroom, though.
Re:China Grew Two Cotton Leaves on the Moon by cm2012 on Monday September 30, 2019 @04:15PM (#21119278)
Are you serious?
[dead]
Re:China Grew Two Cotton Leaves on the Moon by reportingsjr on Monday September 30, 2019 @12:55PM (#21117319)
It is from the novel Catch-22.
Re:China Grew Two Cotton Leaves on the Moon by brudgers on Monday September 30, 2019 @01:33PM (#21117721)
Re:China Grew Two Cotton Leaves on the Moon by kaens on Monday September 30, 2019 @12:53PM (#21117302)
catch 22 by joeseph heller
Re:China Grew Two Cotton Leaves on the Moon by markJes on Monday September 30, 2019 @01:01PM (#21117385)
Catch-22 by Joseph Heller
[dead]
Re:China Grew Two Cotton Leaves on the Moon by jfengel on Monday September 30, 2019 @01:53PM (#21117919)
The pasted text is from the film script, which isn't really optimal for reading. The passage from the book[1] is a bit more readable. The scene does work well in the film, but it leaves a little something to be desired on the page.

The book is a classic; the film is pretty good but not groundbreaking the way the book is. The passage out of context lacks a bit of the overall flow that helps the book work. It looks like mere absurdism rather than the rigid but off-kilter logic that pervades the narrative. It's about the way the military forces you to buy into an authoritarian system as the only way to risk your own life for no reason you can see, which manifests as ridiculous incentives. And that goes well beyond military life, which is why the book is widely held as a classic.

I really can't say if you'd enjoy it or not, but if you like Monty Python and Douglas Adams you might find it reminiscent.

[1] https://www.google.com/books/edition/Catch_22/Xfze51E7TEoC?h...

Re:China Grew Two Cotton Leaves on the Moon by Jtsummers on Monday September 30, 2019 @01:26PM (#21117658)
Why do you think it is a terrible passage?
Re:China Grew Two Cotton Leaves on the Moon by dokem on Monday September 30, 2019 @05:06PM (#21119662)
The scenario and dialog seems incredibly obtuse like a scene between Spongebob and Patrick.
[dead]
Re:China Grew Two Cotton Leaves on the Moon by mkl on Monday September 30, 2019 @04:42PM (#21119487)
The quote is totally irrelevant to this thread. The slight tangential relationship to the article is they both involve cotton. I'm wearing cotton right now, but it would be silly to think that's somehow relevant to the conversation about plants growing on the moon.