13 ms·
Show HN: HackerNews reimagined without tables or center elements.
- sep 14y agoAs another example, I wrote a HN clone the 'right' way: https://bitorama.com https://bitorama.com. It even supports right-to-left!
- pavel_lishin 14y agoNitpick: what's up with the underlines to the right of the up-arrows? http://i.imgur.com/PSPES.png http://i.imgur.com/PSPES.png (OS X 10.7.4, Chrome 21.0.1180.57) Bigger nitpick: I'd rather have a fix for functionality than for loading some extra data. The "next" page problem still occurs, and it would be nice to know when someone responds to a comment.
- Scotchy 14y agoTook me about 10 seconds to locate & fix, and I am not the author :P http://jsbin.com/ewufof/6/edit http://jsbin.com/ewufof/6/edit
- dpham 14y agoRegarding his whole point of using css, that upvote image should really be a background in the css file and the innerHTML should be text with a negative indent.
- whalesalad 14y agoOr we could go one step further and replace images with unicode characters: ▲ + ▼ ▲ - U+25B2 BLACK UP-POINTING TRIANGLE ▼ - U+25BC BLACK DOWN-POINTING TRIANGLE
- sergiotapia 14y agoWoops, forgot to add the rule to remove the border off the image. Are you talking about the "link expired" error that pops up when you want to go to the next page?
- pavel_lishin 14y agoYup.
- pyre 14y agoThis is part of the core of HN. As I understand it, it generates those links on the fly, and they expire. I think they are handled by some sort of lisp callbacks that expire at a certain age. It's not something that can be fixed with re-theme-ing the frontpage.
- markkat 14y agoThis is correct. http://files.arcfn.com/doc/srv.html#rflink http://files.arcfn.com/doc/srv.html#rflink
- lmm 14y agoRight, but a bit of javascript to rewrite the links and form submissions should be doable.
- pavel_lishin 14y agoI've heard the explanation and I've heard the justifications, but it's still occasionally annoying to actual users of the website.
- pyre 14y agoRight, but complaining about it to someone that spent a small bit of free time reworking the frontpage for fun seems out of place. He probably doesn't have the skills or access to make the changes that you want.
- simba-hiiipower 14y ago"...and it would be nice to know when someone responds to a comment." http://hnnotify.com/ http://hnnotify.com/
- pavel_lishin 14y agoI mostly want other people to be aware of it - often times, I'll ask a question and never get a response. I don't know if that person is just ignoring me, or if they have no idea.
- simba-hiiipower 14y agovery true; clearly it would be best to have it actually integrated into the site itself. or, at the very least, throw-up a link to HN Notify on the profile/settings page..
- gaelian 14y agoThere is the notifo option on the profile page, which I've been using successfully for some time. It also doesn't address the 'mostly want other people to be aware of it' part though.
- WickyNilliams 14y agoWhen i saw this i thought "Wow! This is something I wasn't aware of", grinning with delight. Then when i went to the profile page, hoping to see a simple opt-in/out via a checkbox. Instead I'm greeted with a mysterious text box with indication as to what I'm supposed enter. I've assumed email address for now, let's see if I'm right!
- gaelian 14y agoYeah, it is a little cryptic isn't it. I should have been less so with my comment. To get it working: 1. Sign up for an account at http://notifo.com http://notifo.com 2. Download one or more of their client applications here: http://notifo.com/mobile_apps http://notifo.com/mobile_apps and enter your details 3. Enter your notifo username in the box on your HN profile page. I think the reason this facility exists here on HN is because Notifo is a Y Combinator company.
- hellweaver666 14y agoInstead of numbering the articles, you should put them in an OL instead of a UL, then you'll get automatic browser generated numbers and save a few more bytes.
- sergiotapia 14y agoHow would that work exactly? That would make the HTML really cumbersome and clunky. Normally I'd agree, but in this case, imagine you're using a View engine to render the html against populated objects, it's easier to just output the number and not rely on the browser. Can you illustrate what you mean?
- ricardobeat 14y ago<ol> <li class="post> <button class="upvote">▲</button> <strong>India outsourcing back to USA</strong> <span class="source">(shhhh.org)</span> <div class="stats"> ... </div> </li> ... </ol>
- btilly 14y agoThis change would also make a line wrap on a narrow interface wrap to the right of the number, helping the numbers stand out.
- jurre 14y agoThat would only work on the front page though, wouldn't it? Once you click the "more" link it would just start from 1 again.
- amccloud 14y agoYou should replace the <li>|<li> with li:after { content: " | "; }
- sergiotapia 14y agoDoes that work on older browsers? (Meaning IE8 and above)
- duopixel 14y agoIE8 supports pseudo elements with few catches (none that affect this use case) http://css-tricks.com/browser-support-pseudo-elements/ http://css-tricks.com/browser-support-pseudo-elements/
- arscan 14y agoI used to do this with a right-border, not sure if that's a best practice these days or not. You could do something similar in between the date/link/comment sections underneath a given link as well (since it logically is a list).
- StuieK 14y agoLove the search function.
- sandGorgon 14y agoAlignment problems on opera/android 2.3
- mhurron 14y agoI don't have to turn on Javascript to read HN. Why should I have to with this? Hell, I had to turn on Javascript just to not see a wall of text on coderwall. Honestly, HTML and CSS for layout people.
- pooriaazimi 14y agoWhat are you talking about? His "mockup" (http://jsbin.com/ewufof/3/edit http://jsbin.com/ewufof/3/edit or http://jsbin.com/ewufof/3 http://jsbin.com/ewufof/3 (full-screen)) has no JavaScript.
- mhurron 14y agoI have to allow jsbin to see anything more than some spinning image. No, I don't allow javascript to see text.
- bluetshirt 14y agoHis mockup is hosted on a javascript-based sketchbook platform (which is nominally intended for sharing/developing javascript snippets), despite the fact that there's no javascript in his mockup.
- commanderkeen08 14y agoShoulda used Codepen.io ;-0
- heyporter 14y agohttp://codepen.io/anon/pen/zhIiA http://codepen.io/anon/pen/zhIiA (http://codepen.io/anon/full/zhIiA http://codepen.io/anon/full/zhIiA)
- pbhjpbhj 14y agoIt did rather confuse me too. This is what I see when I visit that page in FF14 on Kubuntu - http://imgur.com/DTf8t http://imgur.com/DTf8t. The links, eg to the updated HN, are plain text without JS enabled. Had me wondering for several minutes a) how the designer of the page could possibly be criticising someone elses design and b) how everyone else was managing to see the new HN design (yes if I'd bothered to read it I'd have seen the link text but I was scanning for a link to view the work).
- pooriaazimi 14y ago(off-topic) What is wrong with Coderwall? They're worse than Google+ and the stupid "Join Google+" bar... If someone wants to join, they will. No need to rub it in their face. At least have the decency to show a close button... In case it's not clear, I'm talking about the stupid, 105px tall black bar that asks you to "Join Coderwall" when you start to scroll
- bitsweet 14y agoFounder here...we have been experimenting on variations of a bar with the goal that someone that stumbles upon a pro tip like this one can discover more about Coderwall. I agree that it looks a little big, intentions were not to be obnoxious - we'll be fixing that.
- fijal 14y agoWhile you're at it - on 13'' screen and 2 year old machine your site is absolutely unreadable and unusable. There is a little bit of text in the middle and vast swaths of space with strange blurred colors occupying most of my visible space. Then the black bar. Selecting text takes forever (some JS tricks? I dunno?). Generally speaking I find arguments about usability from someone who can't present their own blog a little dubious.
- fredBuddemeyer 14y agoif you're trying to help this guy tell him what your browser, os, and screen resolution are. if you're trying to stifle those that would make contributions to this community then keep doing what you are doing.
- fijal 14y agoit seriously does not matter. the pixel sizes are hardcoded so it'll look unreadable on any small screen, your particular OS does not matter. my resolution is 1440x900 if this helps.
- 14y ago
- davidarkemp2 14y agoThis is a nice idea, but your css is horribly inefficient (using `.nav ul.actions li a` as a selector for example). I'm also a bit of a convert to http://smacss.com/ http://smacss.com/ - make your html/css a bit more declarative rather than relying on nested selectors to apply rules.
- sergiotapia 14y agoThanks for sharing! I'm always looking to improve my code and I have to admit, LESS has really allowed me to write less code, but at the cost of producing longer reference chains. :)
- dbaupp 14y agoJust in case the parent was misinterpreted: I think "inefficient" is referring not to how space-inefficient the CSS is, but that it forces the browsers to do a lot of extra work. (In the vein of https://developer.mozilla.org/en-US/docs/CSS/Writing_Efficient_CSS https://developer.mozilla.org/en-US/docs/CSS/Writing_Efficie... )
- sergiotapia 14y agoYes I'm aware - I was referring to that.
- lazyjones 14y agoAgreed, the CSS is really inefficient, for every anchor tag, the browser has to traverse the DOM up to the root element 6 times (not including the hover rules) ... It's a shame that so many developers don't know this (it's not very intuitive though).
- ceol 14y agoCSS optimization should be the last thing a developer does, if at all. Most of the time, it's not worth it. As a general rule, just be as concise as possible. `.nav ul.actions li a` could be turned into `.actions a` as long as it's alright for the .action anchor tags not in the .nav element to have the same style. But if you use .actions elsewhere and want the .actions list to look different in .nav, that's fine.
- pooriaazimi 14y agoWhile you're at it, change the "static" up-vote triangle to this unicode character: ▲ http://www.fileformat.info/info/unicode/char/25b2/index.htm http://www.fileformat.info/info/unicode/char/25b2/index.htm so it scales nice on high-dpi devices, or simply when you zoom-in in a desktop browser.
- deleted 14y ago[deleted]
- trebor 14y agoOh come on. ▼ http://www.decodeunicode.org/en/u+25bc http://www.decodeunicode.org/en/u+25bc http://www.unicode.org/charts/PDF/U25A0.pdf http://www.unicode.org/charts/PDF/U25A0.pdf
- ChiperSoft 14y agoI don't feel like firing up my IE VM to test it myself, but are you certain that character is browser safe? I've run into a lot of issues with unicode glyphs not working on vanilla IE8 machines that didn't ship with fonts containing them.
- icebraining 14y agoAccording to browsershots (not affiliated), it works fine on IE6-10.
- robin_reala 14y agoDoes anyone on HN use IE6/7/8? I’d guess that this is a more web savvy place than that.
- gaelian 14y agoIndividual web savviness doesn't always come into it. There are those here who work within environments that mandate less than cutting edge browsers.
- jasonkester 14y agoAnybody care to comment on whether this is intended to be ironic? It replaces a clear, concise table layout with a somewhat more verbose CSS version for seemingly no reason. Had the author attacked the threaded comment page (which might actually benefit from using nested lists) rather than the tabular submissions page, I might be less confused. As it stands though, I find I'm confronted with the least convincing attack on tables I've seen in a while (and I tend to put myself in the "CSS over tables" camp normally).
- st3fan 14y agoCSS would allow HN to have a layout that adapted itself to smaller screen sized much better. I find it horrible to open HN on my phone or even tablet.
- Johngibb 14y agoWhat kind of phone or tablet? It works great on my iPhone / iPad, better than most mobile sites. I know that the Android browsers zoom differently than Safari on iOS, maybe that's the difference?
- dfc 14y agoComment pages look okay on your iphone when there is six or seven levels of replies? I switch to iheckernews.com if I want to read a long comment thread on the iphone.
- pooriaazimi 14y agoYou can't vote (you have to zoom 3x or you'd accidentally down-vote a poor guy), and the front page is not readable in portrait mode, and only barely legible in landscape mode. Nested comments (more than 4 levels deep) are usually unreadable.
- keeperofdakeys 14y agoOne rather handy feature of Chrome on Android is showing a small, zoomed window of where you click when there are a few links together; allowing you to select the correct link. I also assume this feature is present on the iOS version of Chrome.
- huhtenberg 14y agoNot to nitpick, but - http://imgur.com/6xgeK http://imgur.com/6xgeK
- dfc 14y agoHardly a nitpick. What are those things next to all the links on the bottom. I get them iceweasel 14 too...
- VMG 14y agoHacker News should have an API.
- martin-adams 14y ago>> but the browser will render it faster because it has less to do Is that strictly true? My thinking is that you may be able to express something in less notation, but the browser may have to calculate more to render it (such additional reflows or CSS lookups). Just saying. Reality is that it probably will be faster. But I like the point that table-less designs do save on bandwidth and maintainability.
- stcredzero 14y ago> The point I'm trying to make is that using <table> elements for layout is bad and you should feel bad for using them. If you tried modifying something in original HN it would take a long time. If you made the same point but removed the "should feel bad" bit, the point would be even better.
- munificent 14y agoJust in case you aren't aware, "is bad and you should feel bad" is a meme from Futurama, so the author was probably just trying to be funny.
- ColinWright 14y agoDoesn't load at all on two of the browsers I use. Yes, no doubt you'll say "Well, upgrade to a better browser!" but I can't upgrade on those platforms. So you're advocating making the site genuinely unusable for me.
- glassx 14y agoIsn't the problem with JSBin (or CoderWall)? His updated version of Hacker News isn't really that complex or incompatible with older browsers.
- ColinWright 14y agoCoderwall loads, although it looks completely dreadful. Then I clicked on http://jsbin.com/ewufof/3/edit http://jsbin.com/ewufof/3/edit and that doesn't load. I get the very attractive spinning graphic, and that's all she wrote. It would be nice to see if the HN alternative worked.
- cilo 14y agoYou might want to try http://jsbin.com/ewufof/21 http://jsbin.com/ewufof/21 so you get the actual page and not the JS Bin edit interface.
- ColinWright 14y agoThank you! Now when I get some time a little later I can have a look at the source and see what's going on. Cheers!
- earnubs 14y agoIf I were making changes to HN it would be to add a "Nuke From Orbit" button to posts.
- scott_s 14y agoThis comes up from time to time. From over a year and a half ago: http://news.ycombinator.com/item?id=2019950 http://news.ycombinator.com/item?id=2019950 And from almost five years ago: http://news.ycombinator.com/item?id=50159 http://news.ycombinator.com/item?id=50159
- danielsju6 14y agoI use Georgify (Chrome Extension) makes things a lot better, I've actually forgotten what HN is like without it (yuck!) https://chrome.google.com/webstore/detail/ofjfdfaleomlfanfehgblppafkijjhmi https://chrome.google.com/webstore/detail/ofjfdfaleomlfanfeh...
- Kilimanjaro 14y agoThis is the right time for nReduce to start a news aggregator site, with the latest bells and whistles, and start competing with HN in quality content. Show the latest startups they're incubating, the best advice from their investors, that would be the best place to follow up on what's going on over there. One last thing, add a little red envelope to the header and you win my upvote.
- Kilimanjaro 14y agoMy shot at a HN redesign: http://georgenava.appspot.com/demo/hn/index.html http://georgenava.appspot.com/demo/hn/index.html
- deleted 14y ago[deleted]
- akdetrick 14y agoIt's not just an argument of preference when programmers suggest not using tables for layout - it's about using a best practice and a standard instead of an old hack that is a habit many are lazy to break in an age when most browsers have excellent CSS support. This is what a screen reader emulator tells me the front page of HN sounds like: "Page has one hundred thirty links Hacker News dash Internet Explorer Table with one column and ninety-eight rows Table with three columns and one row Link Graphic slash yeighteen .gifLink Hacker NewsLink new vertical bar Link comments vertical bar Link ask vertical bar Link jobs vertical bar Link submitLink login Table end Table with three columns and ninety-two rows" Of course, anyone actually using HN with a real screen reader will probably only get the links list from their reader, knowing how useless the supporting markup is (aside from the table layout, HN doesn't use meaningful heading tags). There are many more reasons not to use tables for layout, but accessibility should be enough of a reason alone to stay away from layout tables.
- jackfoxy 14y agoBravo! The infinite reasons for not doing this: 1) PG has much more important things to do. 2) It would break every other hack ever done based on HN. 3) Recurs back to 1.
- geuis 14y agoWe go through this every now and then. Hell, I even replicated the exact HN look, on a project that pg asked me to shut down a couple years ago, using a much simplified div/CSS structure. Point is, it doesn't matter. Yes, could HN be totally revamped? Sure, there are thousands of capable engineers in the community that could and have done it. Should it be? Meh. Honestly, it just works. Its pretty stable. I read HN as much from my phone as a laptop. I've tried the various alternate UIs and iOS apps, but I always just come back to the site. I'm probably not the only old-timer that feels this way, but there are plenty of alternative UIs for those that want them, and indeed they use them. HN is a great lesson in the "don't fix it if it ain't broke" methodology of engineering. 2000+ year old Roman aqueducts are still used in some places in Europe. If somethings doing the job it was designed for, you don't have to upgrade the concrete just because you have newer cement.
- tucson 14y agoI think the UI matters. HN is great but I feel the commenting system could be greatly improved. Collapsable threads anyone? In general I wish HN would use a StackOverflow-like system (rep and votes on comments).
- Father 14y agoIn my opinion it's fine the way it is. HN comments are compact and only separated by the bare minimum, which makes for easy and fast reading. Stackoverflow doesn't digest that well for me because it has a lot of unnecessary padding, boxes, user info, etc.
- Charles__L 14y agoI think it could do with a little more spacing. Whitespace is an important part to easy skimming. Maybe 5px?
- ehosca 14y agoi second the collapsable threads. that would be a huge improvement.
- FixThisPOSSite 14y agoThere are way bigger problems to fix on this site than table usage. How about the mysteriously broken log-ins? The lack of a way to recover the password that it claims is erroneous? The abysmal performance? The "you're posting too fast" even if you haven't posted anything in two hours?
- Charles__L 14y agoI agree with removing tables for layout, but I think it's OK to use them for the posts. Maybe an unordered list would work even better. The point is, tables are good for what they are made for: tabular data. We don't have to cheat anymore, CSS and HTML have had moved forward a lot. Changing HN wouldn't be too much work and would help keep it with the times.
- EzGraphs 14y agoThe problem I have with HN style by default is: 1) It is hard to tell what has changed recently (new comments, votes, changes in ranking) 2) The information is kind of crammed together and not lined up. 3) I hit refresh every few minutes Am not a a designer, so had my son who has an eye for it help out on styling: http://hn4d.com/ http://hn4d.com/
- deleted 14y ago[deleted]
- achal 14y agoJust a heads-up, the `font-weight:700` on anchor tags causes some issues (Firefox 17, Win 7) Your site: http://imgur.com/ZYObO http://imgur.com/ZYObO Without the font-weight rule: http://imgur.com/qfEaz http://imgur.com/qfEaz
- EzGraphs 14y agoThank you - reported to the design team :).
- lindbergh 14y agoTables are easier to code for a functional programmer. That's why.
- mkantor 14y agoI made some tweaks: http://jsbin.com/ewufof/366/edit http://jsbin.com/ewufof/366/edit
- goldenchrome 14y agoThe main things I dislike about HN: * Comments are allowed to get too wide for easy reading. * OP text color is too uncontrasted from the background. Other than that, I don't see a reason why it needs a revamp.
- repsilat 14y ago> * OP text color is too uncontrasted from the background. IIRC this was intentional - the low contrast was meant to make people keep their message to the point instead of posting screeds of text in "self posts". If you want to say something meaningful you should host it off-site, if you want to discuss something with the community you should follow up in the comment thread. I don't have strong feelings either way, though I do tend to select the text for better contrast when it gets long.
- deleted 14y ago[deleted]
- novamantis 14y agoProbably get down voted. But this makes it bearable for me at least. No Firefox Allowed Club http://userstyles.org/styles/70289/hacker-news-w-gsu http://userstyles.org/styles/70289/hacker-news-w-gsu AND https://chrome.google.com/webstore/detail/stylish/fjnbnpbmkenffdnngjfgmeleoegfcffe https://chrome.google.com/webstore/detail/stylish/fjnbnpbmke...
- ajuc 14y agoI'm reading hackernews on links right now. It works. This new version doesn't.