News for hackers. Stuff that matters.
Re: by kogir on Thursday August 29, 2013 @09:01PM (#6299624)
Fixed*

In the future, please feel free to file bugs like this here:

https://github.com/HackerNews/HN/

* For submissions. There are some other places it won't take effect until a server restart.

Re: by zerr on Friday August 30, 2013 @03:00AM (#6300569)
Any chance you could fix the expired links problem? Or is it a political decision? :)
Re: by RossM on Friday August 30, 2013 @04:48AM (#6300802)
Re: by zerr on Friday August 30, 2013 @07:13AM (#6301121)
My old and unnoticed Ask PG:

Quickfix for expired "More": Ability to disable pagination

Expired "More" link is very annoying. Especially for browsing such threads as "Who is Hiring".

I understand you don't have a time, so quick fix (and quite useful actually) - have an option to show the thread without pagination.

Re: by someperson on Friday August 30, 2013 @06:33AM (#6301032)
Re: by gojomo on Thursday August 29, 2013 @07:51PM (#6299349)
I also wish HN respected the RFC3986 recommendation that angle-brackets be usable for delimiting a URI in context. See <http://www.ietf.org/rfc/rfc3986.txt>.
Re: by porges on Thursday August 29, 2013 @08:47PM (#6299569)
Re: by winter_blue on Thursday August 29, 2013 @08:18PM (#6299454)
I guess this goes on to prove that PG is yet another normal programmer like anyone else.

Do you know how often HN reacts negatively to someone (or some company (except Apple)) for flouting some standardization/programming/design rule?

Gives some perspective.

Re: by statictype on Friday August 30, 2013 @02:38AM (#6300529)
I think we knew this years ago when he released Arc without UTF-8 and an html generation library that used <font> and <table> instead of css (and got taken to task on reddit for it) :)
Re: by pmelendez on Thursday August 29, 2013 @09:49PM (#6299779)
(or (except (some company) Apple))

Sorry... I couldn't help it :)

Re: by _sh on Thursday August 29, 2013 @10:51PM (#6299986)
Are you missing the other arm of the 'or'? Try the following, which assumes 'except' returns null if the second parameter equals the first.

  (or someone
      (except 'Apple some-company))
As a general style, although somewhat inverted, I prefer 'tailing syntax':

  (or
    (except someone 'pg 'rtm '_sh)
    (except some-company 'Apple 'Weyland-Yutani))
Re: by pmelendez on Friday August 30, 2013 @10:47AM (#6302027)
Yeap... you are right... this is why I shouldn't never post from my phone :)
Re: by blahedo on Thursday August 29, 2013 @08:55PM (#6299605)
Not that this answers any part of the question, but I just created a redirect on Wikipedia for people who link without the apostrophe. (In case anyone's wondering why the broken link now works.)
Re: by joebo on Thursday August 29, 2013 @07:48PM (#6299343)
Re: by t0 on Thursday August 29, 2013 @08:16PM (#6299446)
This should be done automatically if you submit a link with an encodable character.
Re: by tokenadult on Thursday August 29, 2013 @10:09PM (#6299836)
Other comments in this thread speculate about SQL-injection attacks, which are not a problem here because Hacker News doesn't use SQL. For interested readers, there was once a thread "How I Hacked Hacker News (with arc security advisory)"

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

begun 1548 days ago, and that still makes interesting reading, although I'm sure the original vulnerability has been fixed.

Re: by PhearTheCeal on Thursday August 29, 2013 @07:39PM (#6299318)
Looks like a poorly designed method to avoid SQL injections.
Re: by gibybo on Thursday August 29, 2013 @07:43PM (#6299329)
Doubt it - if I remember correctly, News uses its own storage engine (written on top of the file system) rather than a SQL database. Source at http://arclanguage.org/install
Re: by pigscantfly on Thursday August 29, 2013 @07:45PM (#6299335)
Even if it's not SQL oriented, it could still be to mitigate some kind of injection attack. This is an interesting question; I hope someone with more specific knowledge takes the time to answer it.
Re: by stevelosh on Thursday August 29, 2013 @09:09PM (#6299656)
like foo.com'onclick="alert('hi');"

But yeah the right way to do this is to use a well-tested urlencoding library, not to strip out dangerous-looking characters.

Re: by unono on Thursday August 29, 2013 @09:57PM (#6299802)
PG didn't use SQL. Not sure why, I would love an explanation from PG himself. He's a great programmer and can teach us something while explaining his reasoning.
Re: by fnordfnordfnord on Thursday August 29, 2013 @10:20PM (#6299867)
He did explain that at least once here. Someone brought it up about six months ago when they updated to the new Altair. Here is a related discussion from around that time. Sorry I couldn't find the one from PG. https://news.ycombinator.com/item?id=5239673

IIRC HN runs off a flat file, and doesn't use SQL, or anything else fancy simply because it isn't needed, and or because it adds unneeded complexity.

Re: by unono on Friday August 30, 2013 @12:44AM (#6300308)
Thanks, looks good. HN was built before heroku and app engine then. Nowadays, putting a db-backed site on them is pretty easy zero-admin affair.
Re: by kogir on Thursday August 29, 2013 @09:02PM (#6299629)
Nope. No SQL here.

Not to be confused with NoSQL.

Re: by staunch on Thursday August 29, 2013 @09:16PM (#6299677)
Or whether or not you know SQL
Re: by johnrob on Thursday August 29, 2013 @08:12PM (#6299429)
It might be effective though. An occasional 'Ask PG' is better than an occasional security breach.
Re: by mistercow on Thursday August 29, 2013 @08:46PM (#6299563)
Yes, but wouldn't escaping the URL properly be a better solution than either?
Re: by jfb on Thursday August 29, 2013 @08:37PM (#6299520)
I was under the impression that HN was completely invulnerable to SQL injection?
Re: by ukd1 on Thursday August 29, 2013 @09:40PM (#6299745)
It doesn't use 'database' but still has openings, it's just code afterall. FYI: security breach != sql injection.
Re: by jafaku on Thursday August 29, 2013 @09:03PM (#6299634)
Yeah, it's about time we admit HN is pretty disastrous.
Re: by petsos on Thursday August 29, 2013 @08:20PM (#6299458)
In what universe would changing a URL to something that doesn't work be a feature?
Re: by fnordfnordfnord on Thursday August 29, 2013 @10:25PM (#6299888)
In my universe! Instead of receiving emails from my IT dept* to warn me of SPAM that I shouldn't click, including a FWD of the spam with the link that shouldn't be clicked, I'd receive, I dunno, pretty much anything else would be fine.

* No, really, this went on for the better part of a semester despite a diverse array of advice to the contrary.

Re: by blackhole on Thursday August 29, 2013 @09:22PM (#6299701)
The universe Apple occupies, of course.
Re: by diminoten on Thursday August 29, 2013 @08:53PM (#6299596)
It's almost as if Hacker News isn't actively updated/developed whatsoever...
Re: by 10098 on Friday August 30, 2013 @03:37AM (#6300651)
Funny, I thought it was some sort of measure to prevent users from inadvertently causing an SQL injection on a vulnerable site by just clicking a malicious link.