News for hackers. Stuff that matters.
Re:Writing Less Code by qwertyuiop924 on Wednesday August 17, 2016 @11:40AM (#12305498)
Oh, god yes. If you need a special, mobile only site, you're doing it wrong. HN is living proof.
Re:Writing Less Code by leeoniya on Wednesday August 17, 2016 @12:12PM (#12305747)
> HN is living proof.

of what? that you don't need a separate mobile site (or js) to show a most basic wall of text?

open up amazon.com or walmart.com and see how your justification holds up. certainly, there are simple layouts with sparse content that can be made responsive easily (blogs, image portfolios, etc) but this is a far cry from proof that a broad statement is at all applicable.

Re:Writing Less Code by coldtea on Wednesday August 17, 2016 @03:06PM (#12307422)
>of what? that you don't need a separate mobile site (or js) to show a most basic wall of text?

Most sites only need to show just that. And fail miserably at it.

>open up amazon.com or walmart.com and see how your justification holds up.

90% of sites are content based, not Amazon or Walmart. And even then could do with a much simpler layout.

Re:Writing Less Code by paulddraper on Wednesday August 17, 2016 @10:34PM (#12310068)
Those are a pretty important 10%.
Re:Writing Less Code by qwertyuiop924 on Wednesday August 17, 2016 @01:14PM (#12306348)
Fair enough. But how many sites on the internet that have special mobile sites are, at the end of the day, just showing walls of text?
Re:Writing Less Code by mintplant on Wednesday August 17, 2016 @02:49PM (#12307268)
I find this funny now because HN used to be awful on mobile, due to an inflexible tables-for-layout design. One that couldn't easily be changed, either, because everyone's clients relied on the exact structure of the markup for screen scraping.
Re:Writing Less Code by derefr on Wednesday August 17, 2016 @07:59PM (#12309468)
I know it's a solved problem now, but:

> One that couldn't easily be changed, either, because everyone's clients relied on the exact structure of the markup for screen scraping.

This doesn't seem like that hard a problem. Presumably the robots all sent their own distinct UA strings (as scrapers only get written to imitate browser UA strings if you ban non-browser UA strings.) So why not just filter your logs to find all the known scrapers, serve anything with those exact UA strings "legacy" table-based responses, and serve everyone else the new layout?

Re:Writing Less Code by chasingtheflow on Wednesday August 17, 2016 @09:40PM (#12309884)
Then you have to maintain two layouts in perpetuity.
Re:Writing Less Code by qwertyuiop924 on Wednesday August 17, 2016 @03:37PM (#12307690)
Thankfully, this has been fixed.
Re:Writing Less Code by awesomerobot on Wednesday August 17, 2016 @01:14PM (#12306349)
There are plenty of ecommerce sites doing the mobile/desktop split generally well (and making millions of sales in the process). HN is literally text-only.
Re:Writing Less Code by odbol_ on Thursday August 18, 2016 @01:03PM (#12314277)
HN is terrible on mobile. Their column sizes are just slightly too big for my screen (not adaptive), so I have to scroll to read the last word of every line. And on desktop, it just expands to the whole page width, even through everyone knows you should never have a line of text that's longer than 600px.

Hackers they may be, web developers they are not.

Re:Writing Less Code by kristianc on Wednesday August 17, 2016 @11:44AM (#12305528)
HN has a mobile-only site, it was updated quite recently. It's been quite subtly done, but it's made upvoting and accessing comments a lot easier.
Re:Writing Less Code by lorenzhs on Wednesday August 17, 2016 @11:49AM (#12305571)
No, HN has a responsive layout - it works well on any screen size. (Well, hitting the correct arrow on mobile is still hard, but at least there's an undo button now).
Re:Writing Less Code by collyw on Wednesday August 17, 2016 @12:56PM (#12306172)
Well it doesn't work very well on my phone. By the time I zoom enough to be able to read the text, its usually going way past the right hand side.
Re:Writing Less Code by mynewtb on Wednesday August 17, 2016 @01:41PM (#12306577)
Use a browser that reflows text then and complain to the creators of your current browser that they don't support the integral feature for small screen web enjoyment.
Re:Writing Less Code by ebbv on Wednesday August 17, 2016 @01:33PM (#12306513)
HN is terrible on my iPhone 5S. Everything is way too small, it's extremely hard to tap on names, arrows or anything else except headlines.
Re:Writing Less Code by mintplant on Wednesday August 17, 2016 @02:54PM (#12307308)
For me it looks like this (on an S5 with Firefox for Android):

http://i.imgur.com/K6ov1pv.png

What does it look like for you? You might want to let [email protected] know.

Re:Writing Less Code by ebbv on Wednesday August 17, 2016 @03:47PM (#12307776)
It looks vaguely like that. Notice how all the menu links are clumped together? The same is true for all the action links anywhere eon the site. I may be old (38) and fat fingered, but I often will tap the wrong thing because they're just too close together and the targets are too small (plus they are text links, and not buttons.)

Actually reading text is not the worst part (though if I want to zoom at all then stuff scrolls off the page, since it won't reflow on iOS when you zoom, and browsing becomes miserable then.) The worst part is trying to interact with the site on mobile. I basically just don't do it.

Re:Writing Less Code by DougN7 on Wednesday August 17, 2016 @03:14PM (#12307486)
Try zooming in to make the text larger for 40-year-old eyes. Doesn't work so great.
Re:Writing Less Code by mynewtb on Wednesday August 17, 2016 @01:43PM (#12306594)
It is great on my Samsung Galaxy S. If I zoom in, long lines simply reflow to fit the screen. It means that I can dynamically adjust the font size to suit any accessibility needs or situation.
Re:Writing Less Code by Flockster on Wednesday August 17, 2016 @03:43PM (#12307748)
That's a pretty nice feature. Is there a browser on iOS which supports that? Safari and Chrome do not seem to reflow.
Re:Writing Less Code by mynewtb on Thursday August 18, 2016 @07:58AM (#12311761)
As far as I know Apple forbids people from using their own rendering engines so all you can get on ios are UI/UX differences.
Re:Writing Less Code by jessaustin on Thursday August 18, 2016 @01:15PM (#12314407)
Apple have an image to maintain. They don't want old people using iphones for web browsing.
Re:Writing Less Code by gbuk2013 on Thursday August 18, 2016 @04:43AM (#12311151)
Same for me on on iPhone 6 - comment text is tiny and I have to zoom in and to be sure of hitting controls accurately. Text does not reflow on zoom. :(

I use Firefox but it is the same with Safari.

Re:Writing Less Code by factorialboy on Wednesday August 17, 2016 @11:57AM (#12305635)
Ik dont think responsive layouts is what he meant by mobile site.
Re:Writing Less Code by cocotino on Wednesday August 17, 2016 @11:42AM (#12305517)
That's correct for many websites, but others such as Facebook have such a complicated but still correct UI on a desktop that it's appropriate to have two different websites.
Re:Writing Less Code by babuskov on Wednesday August 17, 2016 @12:04PM (#12305685)
> correct UI on a desktop

Nope. That was true about a year ago, but not anymore. Facebook UI on a desktop is horrible. Try using it with 1024px wide screen - most apps/games aren't fully visible because they give 760px to the canvas and the rest of their UI is not responsive - so either the ad space on the right or the content (app/game) has to suffer.

Re:Writing Less Code by Bahamut on Wednesday August 17, 2016 @12:31PM (#12305895)
It certainly needs more love - another problematic part is when you have messages open but you want to see stuff on the column to the right of the newsfeed. Its design leaves some to be desired.
Re:Writing Less Code by babuskov on Thursday August 18, 2016 @06:01PM (#12316648)
I just discovered another problem today. You cannot paste text into chat (using latest Firefox stable on Mac OSX).