News for hackers. Stuff that matters.
Re:What happens when you page align everything by aw3c2 on Friday March 20, 2015 @06:24AM (#9236895)
World's worst blog design strikes again with its mandatory Javascript and annoying layout. Here is a static copy: https://archive.today/uvbua
Re:What happens when you page align everything by dang on Friday March 20, 2015 @12:46PM (#9238739)
A reader emailed to complain about how this and other HN discussions often become derailed by off-topic carping about blog design. I agree completely. Could there be a more classic form of bikeshedding? It would seem parodic if it weren't sadly real. This has become more of a thing on HN lately. It needs to become less of a thing.

I don't mean to pick on you personally, or just on this one comment. (Your second sentence alone, by the way, would have been a helpful contribution.) The problem is the tedious stampedes such comments spawn.

Re:What happens when you page align everything by aw3c2 on Friday March 20, 2015 @04:36PM (#9240526)
I did not mean to have a comment that sits on top of the on-topic comments. If people upvote it so much that it does, it can mean something though. I would not call it bike shedding, it's a usability and security issue. I will always keep complaining about unnecessary Javascript requirements and especially about this specific design...

Maybe a "offtopic" or "noise" flag could be used for punishing comments like this (similarly to random comments that praise a submission without adding anything) so they float down but not into the grey negative score area?

Re:What happens when you page align everything by gwu78 on Friday March 20, 2015 @11:59AM (#9238463)
Fortunately it still remains easy to convert almost any blogger/blogspot blog to a simple HTML file with no gratuitous Javascript or CSS.

Then open the file in your browser of choice.

Here is one quick dirty way using only shell, sed, nc and the openssl binary:

https://news.ycombinator.com/item?id=7367156

Example:

Copy and paste the script into a file and save as some filename.

Then

    filename adrianchadd > f.html
    browsername f.html
It is still an annoyance to have to do this; I wholeheartedly agree with your comment.
Re:What happens when you page align everything by erikarn on Friday March 20, 2015 @11:51AM (#9238422)
Ugh, that template sucks. Fixed.
Re:What happens when you page align everything by wtbob on Friday March 20, 2015 @10:26AM (#9237870)
This business of requiring code execution in order to read a blog entry really must end. It's unsafe, but worse it's ridiculous.

Mandatory JavaScript delenda est!

Re:What happens when you page align everything by sp332 on Friday March 20, 2015 @10:47AM (#9238013)
Why is this JS unsafe? It's all hosted by Google, just like the blog.
Re:What happens when you page align everything by logfromblammo on Friday March 20, 2015 @11:23AM (#9238257)
Requiring execution of unnecessary code increases the surface area for any potential exploit.

You don't need JS to display HTML text. Browsers have had that ability since Berners-Lee.

Re:What happens when you page align everything by Already__Taken on Friday March 20, 2015 @07:25AM (#9237031)
In a similar vein. Can we please never use `text-align: justify;` it might as well be called `hard-to-read: dyslexics`
Re:What happens when you page align everything by baxter001 on Friday March 20, 2015 @07:45AM (#9237088)
I assumed it was some kind of joke about page alignment
Re:What happens when you page align everything by martin-adams on Friday March 20, 2015 @10:44AM (#9237988)
Me too, in a desktop publishing sense of the thing
Re:What happens when you page align everything by jon-wood on Friday March 20, 2015 @07:27AM (#9237034)
Thanks for that, I wondered why I bounced straight off that. I'm usually fine with text heavy articles, but there was something about that page which meant I just couldn't process it at all.
Re:What happens when you page align everything by jerf on Friday March 20, 2015 @09:14AM (#9237437)
If you or some other reader are in the mood, a browser plugin that would remove the vast majority of instances of text-align: justify would be a decent bite-sized project.
Re:What happens when you page align everything by frankzinger on Friday March 20, 2015 @07:35AM (#9237058)
I always wondered why people don't use text-align: justify more often. Is this really a reason? What about all the books out there? Why are Web pages different?

(I get the feeling I am missing something obvious.)

Re:What happens when you page align everything by bradleyland on Friday March 20, 2015 @09:53AM (#9237688)
Experience: One of my primary clients when I ran an agency for 7 years was a book publishers.

You'd fall over if you saw the subtlety of the tools and the amount of effort that goes in to typesetting a book with justified body text. It is not at all unusual for a publisher to employ staff specifically for the task of typesetting. In the final stages of book production, the typesetters are assigned sections of the book after all edits are complete (ha! in a perfect world), at which point they meticulously review each page of text, often manually inserting/removing hyphenation, until the text is laid out correctly.

Care to venture a guess at the number of bloggers who do the same when using 'text-align: justify'?

Re:What happens when you page align everything by cauterized on Friday March 20, 2015 @12:19PM (#9238580)
It's not just about hyphenation. Typesetting a book includes eliminating "widows" and "orphans" (lines isolated from their paragraphs by page breaks, and final lines of paragraphs with only one or two words) as well as "rivers" of whitespace that can occur when spaces between words inadvertently line up vertically, and the stretching / compression when a line has more or fewer words than average. This is done by adjusting where line breaks fall.

Basically, in a well-typeset book, nearly every line break is a manually selected hard break rather than an automatically generated soft wrap.

Re:What happens when you page align everything by Already__Taken on Friday March 20, 2015 @10:07AM (#9237772)
I assume justifying text is to primarily maximise the amount of text on the paper to make a cheaper book. It shouldn't even exist on the web.
Re:What happens when you page align everything by wtbob on Friday March 20, 2015 @10:28AM (#9237883)
Justification doesn't change the amount of text on the paper; it spreads out lines which would otherwise have a ragged right edge (in left-to-right languages) so that the text has a visually appealing right edge. It's done to look good, and succeeds. But it requires work to do right.
Re:What happens when you page align everything by joshuapants on Friday March 20, 2015 @12:46PM (#9238734)
> Justification doesn't change the amount of text on the paper

You can fit more characters per line in a justified layout.

> It's done to look good, and succeeds. But it requires work to do right.

Absolutely, but well executed left-alignment can also look good, and in a format where you don't necessarily have control over the size of the page and the time to properly justify the text it should be preferred. IMO, left-alignment beats poorly justified text every time.

Re:What happens when you page align everything by wtbob on Friday March 20, 2015 @06:20PM (#9240994)
> You can fit more characters per line in a justified layout.

Ummm, justification is about adding space to spread a line out: it's impossible to fit more text on a line that way.

Kerning is about removing space. It's related to by independent of justification. A well-laid-out work will do both.

> Absolutely, but well executed left-alignment can also look good

Meh. For printed material I think it's worth the effort to justify.

> in a format where you don't necessarily have control over the size of the page and the time to properly justify the text it should be preferred. IMO, left-alignment beats poorly justified text every time.

No argument there.

Re:What happens when you page align everything by cauterized on Friday March 20, 2015 @06:31PM (#9241044)
Typically a paragraph of justified text (at least in most word processors) has some lines that are uncomfortably compressed and others that are uncomfortably spread out.
Re:What happens when you page align everything by falsedan on Friday March 20, 2015 @12:54PM (#9238794)
> You can fit more characters per line in a justified layout.

no you can't

Re:What happens when you page align everything by joshuapants on Friday March 20, 2015 @03:09PM (#9240000)
Kerned properly, you absolutely can. Please don't make authoritative statements if you've only ever justified text by highlighting a paragraph and having the computer do it automatically.

editing to be a bit more descriptive: Here's an example: http://i.stack.imgur.com/ahM5C.png

With hyphenation and acceptable kerning, the justified text has more characters per line.

Re:What happens when you page align everything by falsedan on Friday March 20, 2015 @03:38PM (#9240204)
justification refers only to adjusting intra-word and -letter spacings, your example shows hyphenation only
Re:What happens when you page align everything by joshuapants on Friday March 20, 2015 @04:47PM (#9240589)
My example shows, respectively, justification with hyphenation, justification without hyphenation, and left aligned type. You can keep backpedaling, but I have demonstrated that you can have more characters per line with justified text.
Re:What happens when you page align everything by aw3c2 on Friday March 20, 2015 @07:43AM (#9237085)
Hyphenation. Browser support is not good and so words usually are not hyphenated which leads to stretching whitespace. http://caniuse.com/#feat=css-hyphens
Re:What happens when you page align everything by sp332 on Friday March 20, 2015 @10:49AM (#9238025)
It looks like browsers only support it with a prefix like -moz-. Doesn't that mean it's not even a standard yet?
Re:What happens when you page align everything by perdunov on Friday March 20, 2015 @07:39AM (#9237072)
The justify only works out (i.e. not too ugly) with certain text sizes and page widths. I guess in books it is much easier to make a decent layout because the page size is fixed.

Another thing is that, actually, design has come a long way and many modern websites look way better than many older books.

Edit: Yep, totally forgot about hyphenation. I guess I haven't seen hyphenated text in a long time, as everything in web is unhyphenated.

Re:What happens when you page align everything by TheLoneWolfling on Friday March 20, 2015 @07:01AM (#9236978)
Thank you.