skysight-inc/HackerNews huggingface dataset:
> Why is there no ORM that works like this?

Because no one wants to write a SQL fragment parser. You would have write a parser that:

a) Could be started at an arbitrary place in a query and figure out what it needed to do.

b) Would be SQL-dialect aware. (Maybe -- it might be possible to skip this.)

Were it not for (a), I'd imagine you could quickly build this by using some kind of debug feature of the database -- sending it a query to parse and getting back a parse tree.
Yes js-csp is awesome and there's various advanced operations implemented like pipelines
I'm fine with the legality foreign intelligence (even if I'm not sure it's the best policy). But what does that have to do with anything? The Snowden disclosures show that they're doing far, far, more: essentially indiscriminant eavesdropping of every possible form of domestic communication.
Premature optimization: still the root of all evil.

One of the better takeaways from the article was the notion that being data-driven means you're aiming for average, and you might not even hit it. Aim for the moon, you might only achieve orbit instead.

I watched a CEO make arbitrary layoff decisions based on what the numbers said should be the size of a development organization and the the ratio of developers to QA. The actual software being built was irrelevant to his figures. He used numbers to justify grinding the dev organization into the ground.
In Texas, that would be pretty skimpy. Perosnally, I tip 25-30%, but things are cheap out here.

BTW, I also don't tip based on service quality; I generally won't go back to a place if I don't like the service, but it's kind of expected that you're tipping... to the point where it's an ethical mandate.
this yc thing is just a big party
I'm really excited for `React.cloneElement` and inlining of `React.createElement`! `React.cloneElement` makes a bunch of tricks that used to require hacks much cleaner, and finally promotes cloneWithProps to non-addon API and removes the confusing magic. And if `React.cloneElement` starts getting compiled into object literals it's going to speed up large render calls significantly, and make the overall React API feel a bit simpler (to me).
It's true that ES6 classes don't cover all existing use cases yet, which is why I specifically mentioned in the blog post that we're continuing to support React.createClass fully. The main Facebook site is still using React.createClass everywhere, though we are starting to use ES6 class components for some smaller projects here.

As I mentioned in another comment on this thread, many mixins can be implemented as higher-order components that we call "containers". Many others relate to data fetching, so we're looking at adding first-class support for data subscriptions which can replace even more uses of mixins. (And in my experience, it's rare to add mixins to a component after it's written.)

ES6 classes aren't suitable for everyone yet ("Ask your doctor if ES6 classes…") but they're a new API which is more convenient for some use cases, so we chose to add it now instead of waiting until we're at perfect feature parity to give people the chance to use the new syntax.
I've known bartenders who had issues related to this. Not from the IRS. They rarely seem to bother with service employees who report a "reasonable" percentage of their sales as tips.

The issues were with lenders, when the bartenders wanted to buy houses. They had enough income to easily afford the mortgage, but no records that indicated that. In the end, they dealt with a local lender that understood the situation, but it was definitely a hassle.
Maybe if a lot of talent moves from where I am to the US, I can negotiate higher prices where I already am. Sounds like a plan. :)
The ES6 class system is literally just syntactic sugar for prototypal inheritance.
> And while it was taken as gospel for decades, it's not clear that on today's hardware you necessarily need to compact, ever. (Cue flames.)

Yeah, my (theoretical) designs skipped compaction as well. I would have different arenas for differently-sized objects instead (akin to e.g. TCMalloc), which could be reused very efficiently (although that's probably a common allocation technique by now). Although you could still grow a huge heap in very specific situations, if the program behaved at least somewhat consistently (kept allocating objects of roughly the same size), you wouldn't need compaction at all.

Again, this is just theory, unfortunately :) I'll check out Sapphire!
As callous as it sounds, be friendly and "open" with co-workers, enough so they will are more likely to let you know that you make a mistake rather than going than directly to HR.

Everyone makes mistakes, but so many HR departments have zero tolerance policies towards perceived sexual harassment, and if it goes public you're doubly screwed... if you can get someone to talk to you first, you have a chance to identify and learn from the mistake, without being hung out to dry.

After having my own extremely negative run-in with HR about this kind of issue, I am very gun shy about expressing anything even remotely resembling a personal opinion around women.
> That's what this proposal is.

Perhaps you're right, and I merely remain wholly unconvinced, though I acquiesced in the OP that perhaps it will be necessary. Optimizability dictating language features to this extent is the tail wagging the dog. I think this would undermine the ecosystem by creating a subset that is neither Java nor JavaScript, neither safe nor dynamic; a lowest common denominator of sorts that may do more harm than good in the competition with native.
Micro ORMs usually works very much like this. There is a problem when you want sub records, they are handled differently in each library or not handled at all.
See your doctor and explore all the options. You might discuss drugs, counseling/therapy, prayer, meditation, diet, exercise, hobbies/diversions, any number of things depending on your specific situation. You might choose to try any of those or other options. But see your doctor.
> All things social belong to Facebook, so using a calendar that isn't linked to Facebook events is a non-starter for me.

Can't you just sync your Facebook events to your Google Calendar?
The thing is that I would like to use ES6 classes. There are some situations where it just feels so bad to do "if (this.doFoo !== undefined) { this.doFoo(); }" because you can't really define empty interfaces in mixins.

Subclassing would help a ton here.
I have similar goals of coding on the go. I used to use the method of carrying an extra battery, but now I use a chromebook running linux for my portable coding. It has great battery life (~10 hours, though battery not replaceable) and is quite small (I use the HP Chromebook 14).

My issue tends to be the lack of internet. When I'm going on a trip and have a project in mind, I try to make sure my dev environment is ready and download all relevant code/framework references for offline viewing using wget.
This was the first thing I thought of, and to be honest I'd be interested in seeing how this circle is supposedly squared.

I'm working on something pretty awesome for which, for the first time, pitching it to YC seemed like it could be a good idea; to be honest, I wouldn't feel right doing that now with YC talking out both sides of its mouth.
Ask HN: Should education apps have open protocols?
I have two kids under six and one has a school mandated app to use for maths. But it's crap. Pedagogically it might be sound but the usage, interface, lack of thought is terrible.

My son will happily spend an hour on something like onebillion apps learning similar stuff.

I think the market capture of the crap app (mathletics) is based around covering the whole syllabus, and more likely providing useful admin sites for teachers.

I would expect that the good app (onebillion) could send it's "score" to the mathletics servers in some fashion - and so the app used would not matter to the overall recognition of effort of attainment.

However it's not doable - they own their ecosystem.

But we could invent "Open Marking Scheme" - but am I am just frustrated and whaling against the world, or is there a sensible idea in there?
Pretty on the screenshots, but I had troubles getting it to work, too (on Windows).

Lots of scheme loading failures at first, then once I tried another recommended way to install it, I got plenty of visual quirks.

I'm sure there is a way, but if I can't get a text editor theme to work in a couple of minutes, I move on :)
I think got most of it, but I missed the connection between "people who are sexually attractive to you" and "people who are uncomfortable with glamour photos of models".

Or is "people who are sexually attractive to you" just a lawyer term for "people of a sex you might want to have sex with"?
I know this is just one side of the story ... but if these facts are even remotely true, Kleiner is really a terrible place for women.

This married dude just harassing co-workers left and right. How gross.

Not inviting women partners to events. WTF?

Who are these guys? Is this 2015?

This guys webpage is almost a bigger crime than his alleged sexual misbehavior:
http://www.ajitnazre.com/
Well, you can always look to past behavior, such as with SPDY[1]. Once something like SPDY was adopted as HTTP/2, Google decided on dropping SPDY support for Chrome. Their core complaints with HTTP were addressed in a new standard, so there's no reason for them to keep their specific variation alive and cluttering the browser landscape.

1: http://blog.chromium.org/2015/02/hello-http2-goodbye-spdy-ht...
Tipping should go away, since it is a classist holdover tradition, but not until wages in tipping countries increase significantly, and that depends on overall economic health and structures.

I think people consider not tipping mostly because of depressed economic conditions or situations and then they rationalize it.
I don't have the foggiest idea what you're on about. The subject was bitcoin "cold storage", which is the idea of storing the private keys to a walled offline, out of the reach of network-enabled attackers.

You're just saying that recovering a private key is mathematically hard, but that's not the attack vector in question. You still need to store the private key somewhere, and that storage is subject to attack. Network-attached storage is subject to lots of attacks, thus there's interest in storing this stuff offline.
Even with PL/pgSQL, there is no way to build a SQL statement dynamically _and_ safely -- it's all just string concatenation there, too. However, using `CASE`, `WITH` and `LATERAL` you can have a root `SELECT` that returns one of a few different queryable code paths, and `WITH`/`LATERAL` allow you to reuse definitions.
Depends. Is somebody who decries the extension of franchise to women because they don't adhere to libertarian views somebody that you'd willingly associate with?

Personally, I wouldn't, because I like looking myself in the mirror, but your mileage may certainly vary.
> "Asking someone a quick question is really, really quick."

Ever wonder why that someone then complains about distractions and lack of productivity? This is why
They don't write if they looked at other databases. I think there are a lot of alternatives that might have worked better for them than MongoDb and even Mongo 3.0 might have worked better.
Regarding the schemalessness for simple new properties they should probably have fixed that in the ORM layer, it can add default values if needed. That something is null can actually happen in sql also.
I am interested in your story then?

Did you incorporate in US and move your family to the US? Did the pressure to do long hours cease once you finished the YC programme and got funding?

> Our lives, and the lives of our kids are much better for it.

This implies some level of financial success from your participation :-)
> food to me is just a necessity, not a source of pleasure

Right, that is exactly my point.
They do if they allow you to do seamless software installs and payment chains. More than obvious, if you've been thinking about it.
JavaScript has been in the throes of an identity crisis since its inception, and IMO we're just now starting to get to a point where developers are leveraging its power and dynamism in its own right rather than trying to cram into a statically-typed, OOP box.

To that effect, it seems like strong mode and SoundScript are a step in the wrong direction. I noticed the very deliberate and self-aware FAQ entry "Are you turning JavaScript into Java?" along with the canned denial, but that still doesn't change the fact that strong mode and SoundScript aim to remove dynamic typing and prototypes from a dynamically-typed prototypal language.
utf8 is not really utf8 and doesn't support 4 byte characters that exist outside the BMP (you'll need the separate utf8mb4 type for that, assuming you're not running on a legacy version that doesn't support that either).
The vision is to use bitcoin to enable automated micropayments between devices. One example that Marc Andreessen has talked about is sharing your network connection with neighbours:

http://www.wired.com/2015/03/opinion-bitcoin-may-gets-us-rea...

21 aims to provide the tools and build the full stack infrastructure to make that happen.
> The failure is the failure to generate novelty or adequately explore alternatives.

Perhaps you value novelty more than the average person. What might not be "adequate" for you might very well be adequate for a huge portion of people.

Throughout this comment you mention several potential goals of content producers (being memorable, advancing the art, changing someone's life, etc.), but you make no argument for why those goals ought to be prioritized over other goals, other than the implication that you personally prefer those goals.
You didn't refute a point to which you replied.
Full details on CVE-2015-0096 and the failed MS10-046 Stuxnet fix
> I've been in situations where people are obviously gawping at me and it's incredibly uncomfortable and it's a much, much different experience than when they're idly looking around a conference room because they're bored.

it is your internal interpretation. It may be true or may be not. The point here is that actions - specifically eyes movements - of one persons are supposed to be judged based on interpretation by another person. Thus the same actions with different person doing interpretation may result in different judgement.

To "Frondo" below: "incredibly uncomfortable" - is an internal interpretation as well as "gawping". Objectively there is only one physical fact - physical configuration of the eyes of the person resulting at some points in time in the girl's image on the retina with that image being transferred/processed through visual cortex. Everything else is interpretation. It is just common knowledge, which we use to generate the interpretation, that a heterosexual male would supposedly "gawp" - well, for such an interpretation to have minimally valid basis one would, for example, have to establish that the male is heterosexual to start with. Without asking directly the sexual orientation is again best guess and interpretation of clues. So one interpretation is based on another...

To "zem" : exactly my point. We can only believe in what she says about her feeling. "Believe" in "feeling" - the basis of judgement in these cases. To me such basis seems to be too weak vs. actual practical consequences to the people the judgement is passed upon.
Pi in Programming Languages
What do investors want to see?
We're just starting our initial raise, and I need help understanding what investors care most to see. I don't have time to produce these long ass decks of information while managing our entire team. Need some tips for good starting points & available materials.
Cool new way of looking at hiring
Who here on hacker news doesn't need something like this in their life? What are they doing, I don't know! But I'm super excited about it.

This sounds like it's perfect for the startup that needs to hire talent or entrepreneur that get's leads all the time.

signup.friendsume.com
Hence the reason he said "implicit."
SQL was often combined with Cobol (might still be where they have Cobol).
Note that nobody seems to know the "correct" spelling of Giovanni Paolo Panini's last name.

Edit: Looks like he's spelled Panini.

"Arisi showed that the spelling Pannini was a corrupted inscription identifying the artist, rather than a signature, as all of his known signatures read simply Panini." - Mary L. Myers, Architectural and Ornament Drawings, p.40
You could say the same applies to any top-tier consultancy firm. Many professional occupations require people to be away from home/family for extended periods, people do it because it's necessary for the career they want to have.
I always browse with the WorldIP extension on, showing me AS number and name of websites and it's SCARY how many are behind Cloudflare now.

I'm sure the guys behind Cloudflare have good intentions, but nothing good can ultimately come from such massive centralisation. It's the opposite of how it should be.
It is, what I like about crashlytics it's that it also comes with a distribution platform and engagement analytics
If @errozero can recreate the ReBirth [1] app in javascript, then imagine what can be made in a few years time.

1: http://www.rebirthmuseum.com/
I ate at a restaurant in Berkeley a few weeks ago that doesn't accept tips, but instead automatically adds a 20% gratuity to your bill. This is a good first step, but I wish they would go one further and increase the price of menu items by 20%, rather than separating the prices.
Don't candidates give employers "employer challenges" all the time? It's their product. I won't work for a company with a sucky product unless the founders acknowledge the suckiness and their attitude is "That's what you can help us with", not "Who the hell are you to tell me my product sucks!"
I have no problem with a society that tips regularly and normally. My problem is what happens when you don't tip.
Libertarianism is extremist politics in my view, and a lot of his views seem to align with anarcho capitalists.

The only issue he appears to lean left on is conveniently the one that personally affects him.
Friend Su Me? ;)
25-30 year olds smart enough to build their own business wouldn't waste their time with YC. Most of the information and knowledge YC provides is openly published for free online. Aside from that the partners are always open to emails and communication. So why waste your money?
Agree with all of your points. The thing that perhaps annoys me the most is that people seem to assume that nosql is magically fast and that sql is slow... Sure, a key-value pair lookup runs like shit off a shovel, but as soon as you want to run anything more complex than that, it's likely faster with a relational database and a few indexes...

Usually the same people that think running an application on a cloud platform magically makes it fast, when in reality a VPS would be cheaper and faster.
I'm looking forward to deleting all the annoying `.toJS()` conversions everywhere I've used an immutable-js collection rather than a js array. (PR: https://github.com/facebook/react/pull/2376)
> Second, no "hostile environment." That is, you should steer clear of even the appearance that you are making the workplace uncomfortable for people who are sexually attractive to you. Decorating your desk with a calendar featuring glamour photos of models, unless that is your duty in your occupation, is not a very good idea.

+1. I've personally never really gotten the whole "bonding over women we mutually find attractive" aspect of hetero male culture (and I guess there are parallels for other genders/orientations) but those who are into it really need to understand how off-putting it can be to other people. I'm a straight guy and I often find it a little off-putting, but I can clearly tell from facial expressions how much more uncomfortable the women in the room become, and I am not particularly socially perceptive. This stuff really has no place in any setting connected to the office.
> The waiters have a huge incentive to give you a pleasant meal experience.

This is not true, in my experience. I have dined extensively in the USA and in many other countries and have not noticed any difference in the level of service provided.
Mainly to support ClosureScript and other languages.

There are ways to go around the need for a mixin, usually through composition, so with a certain coding style you might not need mixins at all.
> you're never going to receive a set of rules that you just have to follow like a checklist, because the same behaviors can be consensual and encouraged between one pair of people, and non-consensual and creepy between another pair of people. That's normal.

And awful. That's one reason that this problem looms larger in technical circles: we're already far more likely than the average to be socially awkward or otherwise ill-equipped to navigate these waters. I can be a fun and flirty person in the right group, but at work I do my best to act as though I am completely without sex/gender and as though everyone else is, too. If sexual, gendered, or racial topics come up, I say nothing on those topics and try to extricate myself from the situation. If the situation is around my desk, I quietly dive back into work. This is the only way to have an acceptably low risk of late night realization that I said something that someone could have taken as harassment.
That's Google's way of demanding you sleep at least one hour per day.
The Unix Room is generally scathing of Linux.

e.g.
By amateurs, for amateurs - Dave Presotto

Linus once stopped by on the plan9 mailing list in 2004

https://groups.google.com/forum/#!topic/comp.os.plan9/VUUznN...

Boyd Ronin is Boyd Roberts, sadly now passed away - http://www.freelancers.net/freelancer/boyd/

Some of the others on there you can google yourselves.

Sadly for me, I'm not qualified to evaluate their arguments.
It's true that it is mvarner's interpretation, but once you have something to stare at, it is obvious when people are looking in your direction, and staring at that.
Reservoir Dogs was what popped into my head when I saw the title.

https://www.youtube.com/watch?v=Z-qV9wVGb38
It happens a lot for me. Basically you have to choose between copy-pasting a lot of sql code or trying to reuse parts when the business logic has multiple cases that are similar but not exactly equal.
Yeah. Calendars are something I only look at when I need to immediately do something. Any lag kills the uX.
It doesn't matter if you are attracted to them or their gender and it doesn't matter if they are offended. Having a calendar of models in swimsuits is not going to fly. The rule must be something else.

But, honestly, if you think you might not understand where the line is, get a cat poster and be done with it.
The office I work at has several married couples. Some of who have been working there together since before they became couples. Some are at significantly different levels in the corporate hierarchy. Supposedly there is or was one person who "reports" to someone that has nothing to do with their day-to-day work or the rest of their team, because otherwise they'd be (indirectly, a couple levels apart) reporting to their spouse.

I think -- but don't have the employee handbook in front of me -- that corporate policy is limited to requiring that reports-to relationships be disjoint from screwing-eachother relationships.
I have a tendency to focus on people who are talking to me to the point that the eye contact makes them uncomfortable. It's a really strange feeling having to remind myself to look away in appropriate intervals.

And boobs ... yes I am a human male in his sexual prime and not glancing at boobs is literally impossible. It's like asking me not to breathe.

I have recently been informed that human females have a similar problem with bulges. Not glancing is impossible.