skysight-inc/HackerNews huggingface dataset:
I use the comma-first style in everything (in languages that have this problem) now that I know about it. I was also interested to see it with semicolons in Simon PJ's chapter in Beautiful Code.

I just wish the character was something other than a comma! It looks so wrong in that position.

BTW, your second example should be

var variable
, anotherVariable // preceding comma
, thirdVariable
;

Perl and Python don't have the trailing-comma problem in most contexts, but they do have a similar problem with some other infix operators. For example, I'm still not sure whether I should use it for strings:

var myString = "This string is a bit too long to fit "
+ "comfortably on a single line, so I "
+ "have split it across three lines."
;

The problem with this is that the first line looks like a standalone JS statement. Python requires you to wrap the whole thing in parens, which solves that problem:

readMyString = ( "This string is a bit too long to fit "
+ "comfortably on a single line, so I "
+ "have split it across three lines."
);

The other language besides JavaScript where I find it useful is SQL:

create table text_editors ( name varchar
, latest_version varchar
, list_of_stupid_flaws blob
);

I suspect that this approach would fix most of Damien Katz's complaints about Erlang's syntax in http://damienkatz.net/2008/03/what_sucks_abou.html:

Because Erlang's expression terminators vary by context, editing code is much harder than conventional languages. Refactoring -- cutting and pasting and moving code around -- is particularly hard to do without creating a bunch of syntax errors.

His example:

blah(true) ->
foo(),
bar();
blah(false) ->
baz().

becomes

blah(true)
-> foo()
, bar()
;
blah(false)
-> baz()
.

His example transformation of reordering the branches now works correctly simply by cutting and pasting lines, albeit in two chunks (just as it would be in JS), and moreover any error in the process is visually obvious:

blah(false)
-> baz()
;
blah(true)
-> foo()
, bar()
.

His other transformation, of changing the order of foo() and bar(), still isn't trivial, but it's still visually obvious when you screw it up:

blah(true)
, bar()
-> foo()
.
"...continue swapping until you get the idea you actually want."

Looks like this is an intended use case. They should maybe make it easier to do.
Just wondering... is it against Apple's TOS to have locked levels you can only unlock if a user signs up to your newsletter?

Because if it's not, that would be a great way to build an email subscriber list.
Consider The Venture Fellowships
The HTTP Archive tracks how the Web is built
I'm simply amazed by the fact that so many here seem to have gone through a similar phase in their life. Of course I want to be of some help, too.

Maybe it's helpful to explain a little bit why so many people here advise you to see a professional therapist. Apart from your "symptoms", that sound familiar to everyone who went through a depressive phase, a good therapist can check you through to narrow down what kind of mindset lead to your current state and what's holding you back from getting better.
No matter how smart somebody is or how complex he's thinking, we're all cramped inside our own little world of interpretation and assumption, which is majorly based on our past experience and current environment. Sometimes it's incredibly helpful when someone slightly lifts up our glasses to show us a glimpse of the world outside this tiny scope. To put things into a broader perspective.

For example, your current lack of motivation and concentration could have various causes. No one here, and often even people who know you very good, can tell you what's behind it. A therapist also can't do this, but he or she is able to find the cause together with you through (a lot) of interviews. Maybe it's not even required to get any medication at all – but deciding this should be done by an expert in this field.

From what you've written it sounds to me, that you don't have a valid and healthful yardstick to measure yourself against. A lot of people don't. We tend to always look to what lies in front of us and forget about what lies behind. The internet isn't helpful here either, as it appears that no matter how much effort we put into something, there is always something we don't know, always people way better than us.
This might even be true, but it's not healthy to measure yourself against that. To be confident in your own abilities is very important. We need to take a break sometimes (better regularly) and discover all the new things we learned and achieved.
Maybe you feel like everything just played into your hands and you didn't do much work to get where you are now. That can lead you to the assumption that you're just lucky and everyone expects you to succeed in everything easily – but you fear that you fail every minute. This feeling can develop further into a form of anxiety where you're unable to start something because you "know" that you (might) fail and so you don't even start.
Maybe you're unable to deal with your fast maturity, leaving you unable to communicate properly with people below or above your mature-level.

But it also could be something totally different, which is why we all here encourage you to visit a professional.

I hope I helped you or someone in a similar situation. If you feel like it, just respond honestly to someone here. I wish you all the best and hope you become clear about your situation quickly.
A somewhat old article. The D'Armand Speers-teaching-his-son-Klingon story will probably persist long into Dr Speers' eighties.

I participated in a little Hol veS with Arika Okrent on a radio programme a while back. It was a challenge, and I won with honour.

I think that the people who mock conlangs the most tend to come from monoglot environments, so probably even those people, who seek to study natlangs outside of the one language they know, may baffle and perplex the monoglots.

Those who come from bilingual or polyglot backgrounds (myself included), on the other hand, would probably consider conlangs as just yet more, different languages to add to the lists of those languages they already know.
Do students want a service to help them get side jobs?
Yes. Yes. Yes.
Can you disclose some revenue numbers?
One of the accepted meanings of "verbal" is "spoken, rather than written" [1].

[1] http://www.merriam-webster.com/dictionary/verbal
While this is a promising first start, it looks like it's a long way from being a working, FDA approved therapy.

This sounds like it's entering Phase 1 testing. Phase 1 testing is where the drug is tested on healthy volunteers to monitor its effects on humans and whether it's safe and could potentially work. Next it moves on to Phase 2, where the drug's efficacy is tested in addition to safety, in a small number of patients. If a drug succeeds there, it will then move into Phase 3 trials with, usually, hundreds or even thousands of patients. FDA approval generally requires two such Phase 3 trials to succeed. The whole process can take ten years and drugs can and do frequently fail along the way. I wish I had the statistic on hand, but I'd estimate less than 20% of drugs entering Phase 1 trials make it all the way.
Congrats, you're starting early. I wish I'd known to do so when I was younger.

I've been struggling with this problem for several years without success, but I've made some progress, met several great friends. So I have a few things worth trying that I've been meaning to write up, but haven't gotten around to it yet.

Feel free to ping me to discuss offline. (Email in profile.)
Does anybody know what Zite did that was construed as copyright infringement?
I've tried to sell them the app before actually starting to build it without success.
I've tried to sell it for month now, but as it is a HUGE company with only old school and out dated tech... i haven't got much luck.

The reason why i'm asking for it legality is because i'm planning to launch a marketing campaign to attract more users (actually have 2769k on iPhone/Android without any marketing): i'm trying to provoke them with the campaign to make them buy the app and rebrand it.

Thanks for the feedback.
If your logged in to Google does it still occur?
You do double blind against a placebo with an at risk group. Then in X years you look at infection rates with survey data to complement it.
I believe that's a side effect from testing ;)
When Yahoo acquired Delicious, I assumed Yahoo would use Delicious users' links, tags, and relationships to create "social-powered search" like Google's +1.

But I guess I gave Yahoo too much credit.
You can find much of the code used to generate gmail's javascript here: http://code.google.com/closure/

We released this all some time ago under apache 2.
This almost exists, it's FOSS and is called PhoneGap. Windows phone support is reportedly "coming soon".
I submitted a self post asking for an update on the Reddit LFTR project but no bites.

Found this http://www.reddit.com/r/technology/comments/a8v7q/reddit_tho...
But search may not be where you click +1 the most. This article suggests google will also count other places where you have shared a link eg twitter, likes on reader, etc
http://j.mp/fSVZSn

No doubt a toolbar and chrome addon is on it's way. Even in search with previews and HTML5 being able to tag info as summary to display directly in the search screen you may even use it in search more than you think. No reason why they can't start tying in reviews on google places and checkout as you suggest
Not entirely sure why my honest criticism is suddenly suspect. I myself have dealt with recommending my siblings without disclosure and got reprimanded pretty severely for it. I don't actually have any relation or knowledge of either the OP or his brother.
As for your accusation actually the only information I found was from looking at his resume. If that makes things suspect so be it. I just know from personal experience that HR people here are far more critical of some of these issues than other locales.

I agree in concept listing the reasons for leaving a startup however any HR person can tell you that it doesn't look good to put any concrete negatives on a resume. Doing so frequently indicates to hiring managers that there will be a likelihood of doing the same thing to them.
Actually, tetris battle pitts you against replays of other people's games, unless you actually challenge another player. Even then it's not 100%... A friend of mine once challenged me and ended up playing a replay. (Actually, he let me play myself. I lost. )= )

I'm not sure how they handle bombs, since certain moves only make sense given bomb timing and positioning. Also not sure how they handle moves that become impossible at the very top of the screen -- if line timings are different, the replay ends up trying move to a place that a real player actually can't get to.

Edit/Note: If you're playing someone live, it'll say so under your names -- one of you will have 'host' and the other 'live.'
cute idea. add rating/liking of ideas... the top list might surface some interesting ones.
> Phase 2: Small number of patients with the disease of interest to test drug efficacy.

> Phase 3: Large number of patients with the disease of interest to test effects of new treatment in comparison to those of existing treatments.

I'm not sure phase 2 and 3 make sense for a vaccine though. Vaccines are only useful for healthy people. I guess the testing is done on healthy animals which are then transmitted the HIV virus, unless some people would accept to go through that kind of testing, not very likely but I'm no specialist so I may be wrong.
I wasn't aware there was a personal quarrel here? Again it seems there is an assumption of malice, reading through my comment I can't see anything that would indicate any malice or intent to quarrel at all.
This is pretty amazing news if true.
Imagine the flow-on social effects of aids being reduced (or even eradicated!) in africa. Less orphans brings less poverty brings higher education, less violence, it really is going to be a big deal when someone finally makes an aids cure
Show HN: My first Rails app, LinkRawr, Twitter-esque way to find cool links
I'm getting my feet wet in programming again and wanted to learn Rails. So I followed railstutorial.org (you'll recognize the similarity if you've gone through it yourself) and changed a few fields around and created LinkRawr, a simple site to find and share links. It's here: http://linkrawr.heroku.com

It works like Twitter, you follow others' links and people follow your links. You can follow me here: http://linkrawr.heroku.com/Justin

I created this over the past couple of days and I'm a relative newbie when it comes to programming, so it's far from a polished project, but I thought I'd share it with you all to see what you thought of the concept. In addition to posting links on LinkRawr, there's basic sharing on Twitter, Facebook, Instapaper and Delicious.

Part of my inspiration was John Gruber's linked lists on Daring Fireball. I thought it'd be interesting if everyone had a linked list commentary like he does.

I'd love to hear what you think about it!
Not as bad as the major one that keeps making the search box disappear completely, although that might be a Chrome dev build issue.
This is actualy what i want to know.
i'm asking it here because i've done some search localy and the legislation don't tell anything about this.

I'll go to an athorney maybe but i would like to have some rough ideas on how it work elsewhere before.
Just what I am looking for, installed node a few hours ago. Does anyone have any express.js resource recommendations?
This would be a bit more beneficial to me if my idea could bounce around getting feedback and other ideas on it. Or a searchable feature to find all ideas about x. Say I am good at arts and crafts but can't think of anything to make, i'd like to be able to search and find ideas.
Ask HN: Why are so many programmers also musicians?
What is the similarity between playing music and writing code? It's not scientific, but it seems a huge percentage of my programming friends are also musicians. What are your thoughts?
This is definitely not a solution intended for hobbyists. This is a solution for big HFT players that have optimized already all their trading components, from exchange proximity to fine grained application optimization.(and everything in between).

The competition is leveling out because most players have gotten the basic tricks; this is just the next logical step in evolution. It has been proved in practice that fpga based trading systems consistently edge out normal cpu based ones(atm anyway). Most likely, in the future, companies will be forced to move to such a solution or get left behind.
One of challenges of doing this in high school is that the student body is like unenriched uranium, pretty much everyone has to go to school and so the mix is broad. One of the things that colleges do is that they typically have the kind of student in mind who will be successful there, and they have depth in various programs, so they create a selected population out of the total possible population, thus creating a more highly enriched entrepreneurial ore.

As you don't get the benefit of that selection process by the high school (unless perhaps its a private school that lots of people have been competing to get into) you're best bet are places where such self selection is done. For business folks there is DECA, for engineering folks there is FIRST, for musical folks band, for future CS and math majors there is chess club :-). But all those share the property that they are a self selecting group, if there is a club or extra curricular activity you find interesting, and its voluntary, chances are better you will find like minded individuals participating in that activity.

So depending on your Co-founder needs check various clubs in the space that meet in the Bay area.
Depends on the vaccine. There have recently been a number of vaccines that claimed to work after infection as well.

I said elsewhere in the thread as well, but that was my question to him, and he indicated that it was intended to be marketed as a vaccine, but his trial was as a post-infection cure.

I do believe it was the same product.

Edit: It was said above, but the word I couldn't think of at the time was 'antiretroviral'.
This is a great read. Exactly how I have approached hiring developers.
Microsoft offers two free eBooks if you download IE9
That's normal. HIV, the virus that causes AIDS, is now easy to treat. It hasn't killed many rich people for 15 years.
The case of Erlang is more or less a matter of preference. I haven't seen any piece of Erlang code with the separator first, except in the case of the if expression:

if Cond1 -> Exp1
; Cond2 -> Exp2
; ... -> ...
; CondN -> ExpN
end

Other than that, meh. I think Erlang just needs to read/write code differently. My blog post on the issue: http://ferd.ca/on-erlang-s-syntax.html
What percentage of users input garbage just to hit the "swap" button?
How good do you need to be to get accepted? Do they only want A students from CS courses, sort of thing?
While filling out my profile it struck me that I'd love a friend finding service: Find me programmers within 50 miles of my stated location who share interests and experiences in some of the many tags I chose for myself. I'd like to meet them and have a beer.
would you appreciate knowing that she had looked at the same page and approved it? I know I would

Why? For a topic like that, I'd trust Google's general algorithm better than any friend or relative.

And even if recommendations can improve the results, why would the recommendations of my friends be any better than those of strangers? There are a few things like music where I might care what a few particular friends think, but I wouldn't be using Google to discover things like that anyway. The only time I want to see links from my friends is when I'm taking a break and not looking for anything in particular.

If Google actually wants to become a discovery/recommendation engine, it's going to be orthogonal to search. They will have to train people to use Google in a new way -- the way they currently use Facebook. This idea that goal-seeking and passive entertainment can be merged into a single activity seems really unnatural to me.
If they offered something like Russinovich et al's "Windows Internals 5th Edition", I'd take them up on this offer!
I'm confused by your goal.

If your goal is to "teach beginning investors how to invest", then why not set up a paper trading system? Basically, you can build a simulation engine that lets people try to trade with paper money.

If your goal is to "teach beginning investors how to invest with real money", then you need to go through all kinds of legal hoops:

- Lets say you are just giving investment advice (there are a bunch of companies that just generate trading signals). You need to pass a few Series tests in order to be legally authorized to give advise e.g. Series 7: http://www.finra.org/Industry/Compliance/Registration/Qualif...

- Lets say you just want to be a broker, allowing others to trade through your platform. This is not a bad idea, so long as you can ensure that investors seed money before they start and that they dont short. There are a few snafu's regarding SIPC compliance (your operation will be considered an investment activity, and as such investors may expect protection).

At the end of the day, though, you can find discount brokerages with low costs to trade. For example, Zecco Trading has $5 trades.

So that gets back to the question: What are you teaching investors?
If you are teaching general signals that can be implemented in an all-active strategy (i.e. if your signal is strong enough, you can afford a penny slippage costs), then DMA does not matter. You can do it with matlab hooked against IB or some other platform.
If you are teaching specific execution mechanics (market making, rebate capture) then it makes no sense to run the system from a proprietary infrastructure [the investors have to be able to use it] unless you make it accessible for them to use after the learning period is over. In that case, see the discussion about brokerage.

The main regulatory body is the Financial Industry Regulatory Authority (FINRA).

Sucks that HN has no private messaging feature.
I think they are feeling pressure to do something though. If they don't, how are we to keep them on their pedestal?

Is something better than nothing here? Also, remember they have shareholders to keep drunk on the gogglejuice.
Even if you manage to maintain a side project, there are plenty of valid reasons (legal and not) to not release the code in public view.
If you request an original copy from your retailer they have to (are supposed to) give it to you and can only charge you a fee for the media, which is usually $10-25.

This applies for the first few months, thereafter you can call Microsoft and within a few prompts they will send it out to you, often for free.

Should work in most countries, and is a bit of a backdoor way of getting original install disks.

There is also a way in the EU to get a free linux distro disk if you request it, which was part of the EU antitrust settlement but I can't remember what that was (all of these consumer rights features were part of one settlement or another)
Still valid argument on the meaning of the like or recommend verbs in certain contexts. Eg someone may write something I disagree with and I don't want to like or recommend it but I may +1 for being articulate or a point well made. Geek in me and maybe too many q&a sites but I think +1 works
For vaccines you test against a population and compare disease rates between the people who received the vaccine and those that did not. In situations like this I would guess that they will select a high-risk group and then compare infection rates over time between the two groups to see if the vaccine has any effect.
Why? For a topic like that, I'd trust Google's general algorithm better than any friend or relative.

Google has an algorithm that effectively ranks the quality of recipes?! Neat!
How to back up your online data
That's really awesome. I live just a block away from the Hack Haus.
In the specific case of Python string concatenation, you don't need the operator at all:

>>> x = ( "abc"
... "def" )
>>> x
'abcdef'

Erlang also works this way. Note it only works for string literals.

But that's just FYI, it obviously doesn't affect your point.

It's actually slightly strange to me that for everything else Perl does that this doesn't work in Perl.
I had a chuckle at this. The use of "pointy-haired" was at least creative. And yeah, I believe parents have the right to spy on their kids, especially when it comes to the net. Largely, I'd add, because of people like you (trolls).
"Pre-pealed bananas" +1
To clarify: the HRD sacrifies some consistency, but the sacrifice is limited. It still maintains consistency within an "entity group", using the Paxos algorithm for distributed consensus. Consistency is sacrificed only for queries that span entity groups. Retrieving individual records, or queries within an entity group, are strongly consistent even in HRD. The primary tradeoffs for HRD really are cost (because you're maintaining more replicas of your data), and write latency (because you're updating multiple locations). For those not familiar with App Engine terminology, each database is partitioned, by the developer, into shards called Entity Groups -- see http://code.google.com/appengine/docs/python/datastore/entit... for details.

Some additional details on the HRD tradeoffs are at http://code.google.com/appengine/docs/python/datastore/hr/. The technical underpinnings are described in http://www.cidrdb.org/cidr2011/Papers/CIDR11_Paper32.pdf (warning: this is not a light read).

[Full disclosure -- I used to work at Google and was involved in some of this work.]
I've never (almost never) posted a link to one of my sites in an HN comment. I'd rather not have naked links in this venue. Apologies.