skysight-inc/HackerNews huggingface dataset:
I defined rape as the kind with the (bad) screaming and the blood, or tried to. I am aware that some people steal because they are starving but most theft I have seen was somebody who wanted to prove that they could do it. In the same way, I know some people rape in other complicated situations, but the rape I have seen in my life was individuals who just wanted to prove that they could do whatever they wanted, and nobody was going to stop them.

My reading does not suggest that all rape produces irrefutable physical evidence, nor do I feel confident that reporting rape to our existing justice system would save me from further humiliation and other professional/personal consequences while providing safety. If you have evidence to the contrary, I can't tell you how excited I'd be to hear it.
Another way to do it, assuming that the list can be mutated: find the largest number in the array, store it somewhere and remove it from the list. Do this a second time. Then add those two numbers.

It evades sorting the array, but you have to search it twice.

a = [7, 9, 2, 8]

highest = max(a)
a.remove(highest)

nexthighest = max(a)
a.remove(nexthighest)

print highest + nexthighest

Optimisation: just scan the array once, and keep track of the two highest numbers.

a = [7, 9, 2, 8]

highest = None
nexthighest = None

for item in a:
if not highest or item > highest:
highest = item
elif not nexthighest or item > nexthighest:
nexthighest = item

print highest + nexthighest
You're example is the perfect example of what not to do and why React, Angular and such exist: STATES. You want your view to be data driven.It means that your component should be STATELESS.

There are other issues such as event delegation,cleaning up event listeners,... that will make your solution hard to scale past simple widgets.And before you know it,you'll be writing your own complicated framework that does less than Angular or React.
Found this on Reddit and thought it belonged here as well... I actually wanted to do this some years ago but gave up as I couldn't figure it out.
As our team has been transitioning to Go for some services. We've built a few awesome open sources repos for Go lang. We would love any feedback and help. You can view all of our Go projects at http://maxwellhealth.github.io/#/Go
not actually any machine learning in the article. It would be a stretch to even call it AI.
Isn't the price being held at an unsustainably low price by OPEC? If so, then any accounting problems would be short lived. Once OPEC cuts supply, the prices will bounce back to ~$100/barrel, I would expect.
Uh, no? For the time when I was employed there, they weren't "elsewhere." They were sitting right next to me.

(The presence of incompetent engineers was certainly a factor in why I left that job.)
7/8. Number 5 got me, but also helped me get the last ones correctly. I would probably got more errors if the answers were all given at the end.
In case anyone forgets that it can go too far in the opposite direction: http://en.wikipedia.org/wiki/Enron_scandal#Mark-to-market_ac...
Why would you say Haskell is academically useless?
I personally think the semantic web was a solution in search of a problem. People weren't concerned about ontology and mappings. They were concerned with making the web more approachable. I think, therefore, money was invested into Mobile Apps / JS frameworks instead of tools for semantic web.
It's easy to blame this on hiring when in reality it's a complex combination of employee oversight, team building, scheduling, budget, "culture", etc...
I'm really sad this got downvoted off the front page (this article is only one hour old with 9 points, things 3 hours old with 9 points are still on the page). It's cool if not everybody is interested in talking about this, but I feel like the entire point of this article was that making whistle-blowers harder to hear is not good for society.
My fave nonsense title at my old university is "Provost and Associate Vice-President Strategic Relations Management" who is paid $300k/year with full housing benefits and guaranteed 5 year term.
You see this a lot in these kinds of discussions, but I can guarantee you will overlook a lot (most?) of excellent developers as many can't open source code (due to employment contract) or just don't really want to be coding 24/7 when their jobs fulfil and challenge them already and they have family/friends/sports/whatever to do outside work.

These seems to be a trend from younger developers from what I've seen, which assume every developer will have a GitHub account to show (like young non-developers nowadays can phantom people that don't use facebook or don't have a smartphone ;)
No they don't. What UB do you think they invoke?

They do invoke implementation defined behaviour, but not undefined.
There is a non-zero amount of reporting that would be improved by algorithmic and model driven story generation.

Quite a bit of reporting has become thinly veiled rewrites of press releases, what could be improved by an algorithm that actually had background context and a consistent model for a type of story like a simple preview of a coming game?

The amount of statistics in reporting that lacks any context for the numbers spewed out? Why couldn't a machine do a better job in enforcing context for the numbers?

For example -- "there is a %50 murder increase in the first six months of this year" (common problem with human reporting) vs "there is %50 murder increase from 2 in the first six months of last year to 3 in the first six months of this year, this is down from 20 in the previous year" (an algorithm that automatically enforces context)?

I realize this is a complex topic but wow the average ;) news story is soooo bad that...
Or you could just code correctly the first time...
Why would you respond to a troll?
That (c) honestly sounds to me like it ought to be a web standard, signed authenticated javascript.
The entire premise of that sentence is wrong and he contradicts himself two sentences later. Apple has always relied on being viewed (and therefore priced) as a premium brand. The Watch is an extension even further upstream but it's hardly a VW Phaeton headscratcher type of thing.

This is just a uncomfortable realization that your favorite brand wants to go _even further_ upstream than it is today. But that's only because you've misunderstood the brand to begin with.

EDIT: The two sentences later part. If you take out the disparaging tone it boils down to "we were fine paying much more for an Apple machine than another brand" -- "We knew our $2000 laptops were incredible for the price, even while people mocked us for not buying cheap, creaky Windows machines."
Show HN: 1 Growth Hack a Day for +150 Days
Credit goes to Kevin Hale for the turd on the back side. Really pulls the whole site together ;)
Based on personal and anecdotal experience, both as an interviewer and as an interviewee. Nothing scientific, unfortunately.

I'm not saying that dressing casual would improve your chances; I'm saying that you are very likely to be the only one who cares what you wear to your interview.
> firing a lot of administrators

As a data point, the university I went to grad school at has an administrator:faculty ratio of 1:1. This is not unusual.
It looks like the reverse; OPEC stopped holding prices up.
Any chance that you will come to Melbourne, Aus?
while researching the blog post it crossed my mind that a technology capable of judging aesthetic value may also therefore be capable of recognising when it (or a sister technology) has generated poetry / literature that has aesthetic value. in other words they are complementary.
i was only incidentally aware of the computational literary criticism movement, so obviously this will now inform my continuing research. thanks very much for that, and for the pointers.

it's true what you say, there is a danger of isolation from both communities. i'm optimistic though. the traditional divide between science and humanities (with computation leaning towards the former) is, in many ways, a false dichotomy.

i hope over time to demonstrate why this is so.
The example is written in a strange way. You're supposed to assume x is initialized ("for most values of x").

I think it's just pointing out the difference between '&' and '&&'.
Who’s in Early to Y Combinator’s Unicorns?
I don't even think it really makes sense to talk about Gruber as a "techie" blogger. He is interested in the way Apple designs and markets things, and the movements of those markets generally. He almost never covers actual technical topics.

If you don't have any interest in the manner in which technological goods are sold to the public, that's certainly your prerogative. But some people do.
> But I was under the impression that we were Apple fans in the first place because they made best-in-breed products for everyone, not just the elite.

Another take on this quote: the watch has the same functionality regardless of whether you buy the most expensive model or the cheapest one. In that sense, it's very egalitarian. Let the people who want to buy a more expensive model buy one; all they'll do is subsidise development costs for the rest of us.
"Borg?" I had to look that up. It's Google's in-house cluster manager.
Is it a local? I think the int declaration is for showing the type of x. It's just a code fragment as is.
I don't expect consumer electronics to increase in value for the simple reason that they decay. The batteries decay, the transistors decay, the capacitors decay, etc. The watch will become non-functional and non-repairable.

Just look at what people go through trying to keep older computers running.
Maybe the point was about specifically "trivial" questions. The article's author may have been attempting to draw an analogy between the questions we ask in interviews, and asking a doctor to state the normal range for human body temperature (e.g.), which probably only happens once during early-stages of training.
Ha! I didn't even notice until this comment - that is hilarious.
> I have seen folks coming highly recommended

Who did recommend those useless candidates to you? A recruiter, perhaps? Read this horror story: http://bostik.iki.fi/aivoituksia/pages/recruiter-anxiety.htm...

The good developers generally have no trouble finding jobs, and therefore don't need recruiters' help. With the best and the brightest taken off the pool, the recruiters are mostly left with merely the mediocre and the bad ones. This in turn has collateral effects: any developer coming in via a recruiter already carries the stigma of "not good enough to find job on their own".
Instant (zero latency) networking.
Are you saying that the government should put a cap on tuition costs? So instead of a student spending $40k on an English degree, that degree might be capped at $20k or something to that effect?
And here's why we never talk about the source code licensing model Epic Games has implemented, or any other non OSD-compliant models.

UE4 is possibly the most powerful creative software suite ever built, shackles and all. You really are missing out.
The problem is not that these people "cannot code", the problem is that they cannot implement even the simplest things when it cannot be done by using existing libraries and frameworks they already know of with designing any kind of problem-specific data structure or algorithm being completely out of the picture.

For example I've been told that iterating over list of objects and aggregating (min/max/sum) some of their properties would involve introducing dependency on local installation of SQL server.
Building PDFs with XCode Storyboards
We need to move beyond the algorithm bravado to engage more fundamentally with the craft. If people are wired for engineering logic and have programmed in some capacity in the past, they almost certainly can get up to speed in any other part of the field. Let them learn, or even better, help them learn.

What you want are people who are able to perceive the functioning of the entire group, and act in ways that optimize that. Bands of highly talented musical savants that don't like each other and don't "gel" can still sound worse than a group of friends with "pretty good" talent who have become really good at playing with each other.

After having interviewed and taught, I now realize that interviewing and teaching are involved and deep disciplines, that take significant insight in order to do them well. (Including some personal insight.) Most programmers haven't been concentrating in the areas that would make them good at either. In fact, my experience suggests to me that a great many programmers use the occasions of teaching and interviewing to vent aggression against "the stupids" of this world.
Market Spiral Pricing of Cancer Drugs (2013) [pdf]
Right on, great piece.
"Normally a language of this type is too slow to do signal processing."

That is one of the founding principles of many current sound synthesis programming tools. In light of the recent developments in JIT-enhanced languages (I'm thinking of LuaJIT), it should now be possibles to work with less layers and more freedom, directly with the samples, in a high level language.

And now comes the plug: This is exactly what protoplug allows you to do, and as a VST plugin it works inside modern music-making software:

http://www.osar.fr/protoplug/

Obviously the design goals are very different from something like Vivid, and it doesn't have the SuperCollider features to back it up.
I've interned in big, international company, doing finite element analysis, a method for structural analysis on computers.

As an intern, I didn't get the formal training on the software suites used, I came in with a bit of experience on another software, and a bit of theoretical knowledge from school. I managed to pick up enough in 4-6 weeks using tutorials, manuals, and the engineers around me that I think I was as productive as you could expect an entry-level engineer to be (fwiw, I had a job offer on the table before finishing that internship).

I clearly remember two guys there. One was contractor, late-20ish and I think had started not too long before I did. The other was middle-aged and I think had been working for the company for quite a couple years. Both quite incompetent. At first I thought it was me, if I couldn't explain something to them there must be something I'm getting wrong right? By the end of my term I had picked up enough, underhandedly, from other engineers, that these guys were incompetent. It was never openly admitted though. But these guys were given only the most basic, boring, tedious work requiring absolutely no actual engineering analysis.

Don't get me wrong, these were 2 guys out of 150ish people doing FEA there, and all the others were absolutely brilliant and I learned a lot. But there are incompetent people everywhere, I think. In my graduating class there was definitely a 5% ish of people which everyone else knew were not going to be doing engineering work. These people often end up as production supervisors and such, never get their PE.

Even in grad school, they are tougher to find, but there's definitely people graduating with MSc's and PhD's who couldn't engineer their way out of a bag. Generally recruited by bad profs who do all the actual thinking and just give them narrow, grunt work to do. There's safeguards in place at the University level to prevent that, especially for PhDs, but it does happen, unfortunately.

I should probably have taken that job offer, but I really wanted to see what academia/research was like.
Ah. 9/10. Failed nr. 3
That's like writing a book "correctly" the first time without drafting (there are a few authors that does that, but not many). Or drawing a picture without sketching.

Much of the coding process is gaining knowledge of the problem you're trying to solve and discovering patterns as you go along.

Also typically features are tacked on over time, and it reaches a point where new patterns are needed that wasn't needed before.

I agree with you in some sense though, some patterns are low-cost and high-reward in versatility & maintainability. Like using events rather than explicit references, and you should use them from the start as a matter of "good habits".

Some more overreaching patterns like factories, modules, plug-ins etc etc only make sense when the code reaches a certain scope.
You play "proper computer games" with the trackpad? Suit yourself: https://www.apple.com/magictrackpad/
If you are offering elimination of credit availability as a solution to the oversupply of professors, fine, but let's be clear that you believe wealth of parents is a good metric by which to decide who does and doesn't get to be a professor. Let that sink in.

If you believe that colleges will lower costs to meet the lower supply of tuition money, then we'd be looking at an even larger oversupply - more people would be able to afford college.

Also, let's keep in mind that when you dump every liberal arts major into engineering and computer science, engineering and computer science graduates stop being hard to find and become worthless.
I wonder what this guy would have thought about Dustin Moskovitz when he was learning to code while launching FB in the early days...
Fair point, we don't have context.
Empty alt tags? Because that is what should be on spacer gifs. Of course, using spacer gifs is kinda 2004.
No.

http://lightlike.com/teleport/
The official date for the launch of WhatsApp calls
But, if the algorithm is written by a human, isn't it a human writing the text?
I have a thought that I will forget immediately once somebody asks me what it is.

Now I am an artist, yay :-)
Mozilla has been working on Emscripten (the compiler that helps port native games to the web), which is bundled with Unity and Unreal now. That is, it's part of their tools and not part of the browser runtime.
Any college offering an engineering degree that wants to maintain their ABET certification also has to graduate a certain number of their students; pumping unqualified or uninterested students into these programs leads to watering down of curriculum - further making the degree worthless.
You are acting like a fool through-out these comments. I get the feeling that you are projecting your own women hating feelings onto everyone else. If your reason for "believing" someone is only their gender then you sir are sexist.
you're most welcome. hearing this encourages me to continue on my journey, to tinker and explore. thank you for the feedback. it sounds like you had fun, and perhaps you could pick it up again... there's certainly a shortage of people exploring the field.
This is the company which made having white wires hanging out of ears a fashion statement.
Sure. Except that in real life things are rarely that clear-cut.
The Humane Interface, by Jef Raskin, goes into the basics, with examples and tests, including synthetic usability measures that can go a long way.

There aren't a lot of good tools or frameworks, unfortunately; you have to do the math yourself.
Could someone confirm what "professor" exactly means in this case? In Europe it is very prestige academic position. Professor at four universities would be something like winning Nobel price.
> Resorting to union representation is the sign of

organizing to get fair compensation.
"This note is about a fizzy buzz that went away to become a knight. No one shall now what the rabbit ate tonight."
It seems to be something that is clearly inevitable. We've been trying for decades to construct the perfect interview process to weed out people, and while we've had some fair success, people always manage to slip their way through.

Much as successful security involves "defense in depth," I suspect that good HR involves much the same. It's not reasonable to build a strategy on some sort of ultimate impenetrable barrier.

Most organizations have two actual levels of membership that often exist outside of the formal rules. The reason it works this way, is to sequester the "net negative" members and protect the contribution of the "net positive" members. This must be what Valve is aiming for with it's hyper "flat" lack of structure.
Obviously that is the solution. I know that now, I didn't then. (As I wrote: "I did eventually fix it by switching to forms.")

The whole thing about POST vs GET that everyone knows today for read only vs write was not that well known back then.

Back then you used GET for things with a small number of variables, and POST when you expected enough data that it wouldn't fit in the URL. It was all about the URL, not about the effect of the request.
Well, the internet. That was easy :)
"Look at past experience, and ask the candidate to talk about that experience to verify that they aren't lying.
If someone has 5 years experience working at Google, and they can talk coherently about technical aspects of the projects they worked on, there is no reason to ask them to code on a whiteboard."

I always argue for this, and about 98% of the time people look at me like I'm sort of crazy man and our company is going to go down in flames. Everyone has an anecdote, "well, there was this one time ....", yet I'm convinced that there's roughly 0 real value add from all of the hoops and hurdles most interviews provide in terms of accurately identifying strong candidates.

I always try to make the argument that if someone can talk intelligently about a wide range of programming knowledge in an actual conversation - for instance, knowing that data type X would be a logical segue from the current point, and do that throughout the interview, personally I think the likelihood of them being an idiot are slim. However, most people I argue this to are always afraid of this, afraid that some interloper will sneak through unless we put them through a gauntlet of questions regarding things they'll never do in their day to day life.
What's up with 5.5?

>Your program produces output to be read by another (eg: a browser)

This is a problem?
Current oil storage is nearing full. With present condition, they will be full sometime in April. It will take some months, maybe a year for storage to empty out enough to support high prices.

http://blogs.wsj.com/moneybeat/2015/03/05/the-newest-commodi...

http://www.forbes.com/sites/christopherhelman/2015/03/04/u-s...
Listings in the Bay Area are absurd. I can buy 6 (larger, better maintained) houses almost anywhere else in the country for the price as one house that would be a "starter home" in those same places. The opportunities and culture in the Bay Area are better, but not 6x better than many of these other places.
Haha. Because Apple has ever used the volume of sales and its twelve digit war chest as a justification for reducing its profit margin, consistently recognized as the highest in the industry?
> So what's your point other than (I'm guessing) to cast aspersions on her for speaking out?

Cast aspersions? I haven't faulted her for speaking out at all[1]. Nice try though, just try another smear-angle next time.

The point is that prejudices stop being OK or "understandable" when you take them out on other people. A person can think that all men are potential harassers if she wants. She can even hate all men if she wants to. But what is not cool is to take it out on other people.

But as long as prejudice stays only in the mind, it's fine really. But it can be hard to not let it seep through.

[1] https://news.ycombinator.com/item?id=9166504
It makes me sad both links to the old messages are broken. This post is only 6 years old. The internet is too fragile.
> 1.4 "Yo-Yo code" that converts a value into a different representation, then converts it back to where it started (eg: converting a decimal into a string and then back into a decimal, or padding a string and then trimming it)

An important exception: many abstractions for data passing end up creating exactly this, but are good practice if you can afford them because it means one side of the yo-yo can be changed without breaking the other.