Live data from Hacker News

Show HN: A Reddit reader that looks like the frontpage of a print newspaper

unim.press

41–50 of 129 posts

Re: Show HN: A Reddit reader that looks like the frontpage of a print newspaper

#42
post #24

This is really cool! As a suggestion, you may want to add in a toggle for zoom. On my computer the site looks perfect at 67%. But this is really great work! Great idea and really cool! Good work! Regards, Peter @ Oeck.

Yeah, the zoom definitely changes the experience. I tried to strike a good balance between the layout being big enough to read somewhat comfortably, while small enough to see the overall "newspapery" layout, and 1200px wide by default is what I ended up settling on. Of course users I think can zoom in and out on their own if they prefer another size, like you did.

The implementation is buggy though. Trying to zoom in on iOS Safari reshuffles the content around and keeps it at its original size. It might be fine on desktop

Re: Show HN: A Reddit reader that looks like the frontpage of a print newspaper

#43
Please do not use justified formatting for text unless you can hyphenate it. Otherwise you end up with large chunks of white space between the words, especially in narrower (then 6070 characters) columns.

Browsers don’t hyphenate, so avoid justified text on the web.

Re: Show HN: A Reddit reader that looks like the frontpage of a print newspaper

#44

Please do not use justified formatting for text unless you can hyphenate it. Otherwise you end up with large chunks of white space between the words, especially in narrower (then 6070 characters) columns. Browsers don’t hyphenate, so avoid justified text on the web.

CSS word wrap

Re: Show HN: A Reddit reader that looks like the frontpage of a print newspaper

#46
Cool! Another suggestion: why not extract and show the text of the leading comment (or maybe some other metric) of the articles in question rather than lorem ipsum filler?

And an option to "turn the page" for more content from the select subreddit would be even cooler!

Re: Show HN: A Reddit reader that looks like the frontpage of a print newspaper

#47

Please do not use justified formatting for text unless you can hyphenate it. Otherwise you end up with large chunks of white space between the words, especially in narrower (then 6070 characters) columns. Browsers don’t hyphenate, so avoid justified text on the web.

That’s not entirely true is it? Browsers can hyphenate (using the hyphen property in CSS) but it only supports certain languages, which need to be specified in the lang attribute of the html tag.

Re: Show HN: A Reddit reader that looks like the frontpage of a print newspaper

#48

How long did it take for you to build it? And did you already know the backend tech in order to speed up development?

6 hours -- I had the idea this morning and started at around 2PM (first commit on GitHub). Finished at around 8PM. The app is all client-side, so I didn't have any backend need. The app renders using a UI rendering library I wrote ( https://github.com/thesephist/torus ), so I knew the tools I was using inside out, which helped with speed.

same day ships... kinda super impressive

Re: Show HN: A Reddit reader that looks like the frontpage of a print newspaper

#49

Please do not use justified formatting for text unless you can hyphenate it. Otherwise you end up with large chunks of white space between the words, especially in narrower (then 6070 characters) columns. Browsers don’t hyphenate, so avoid justified text on the web.

CSS word wrap

Right, there’s also overflow-wrap though it’s intended more for preventing layout breakage in a language-agnostic way. Maybe it could be useful if you’re working with a language that isn’t supported by browsers.

Re: Show HN: A Reddit reader that looks like the frontpage of a print newspaper

#50

Please do not use justified formatting for text unless you can hyphenate it. Otherwise you end up with large chunks of white space between the words, especially in narrower (then 6070 characters) columns. Browsers don’t hyphenate, so avoid justified text on the web.

That’s not entirely true is it? Browsers can hyphenate (using the hyphen property in CSS) but it only supports certain languages, which need to be specified in the lang attribute of the html tag.

Support just isn't universal enough.[1] In particular, for Chromium-based,

> Only supported on Android & Mac platforms (and only the "auto" value) for now.

Even where the property is supported, the supported language matrix [2] tells a depressing story.

[1] https://caniuse.com/#feat=css-hyphens

[2] https://developer.mozilla.org/en-US/docs/Web/CSS/hyphens#Bro...

Post reply on HN