skysight-inc/HackerNews huggingface dataset:
> it's possible to over-simplify things in a way that obfuscates instead of clarifying

While this is true, I think it's important to keep in mind that a big benefit of being able to handle a situation programatically in different ways is that you, as a programmer, are more able to accurately describe intent.

For example, I think it's foolish to always catch exceptions instead of checking beforehand (look-before-you-leap). However, being able to do either allows me to more accurately represent the intent of a statement. Blindly following rules is almost always sure to lead to poor decisions.

If I'm retrieving an element from an array and I know that for the majority of possible application states there will be an element there, I can just access it, and handle an exception (because it's an "exceptional" case). However if I'm expecting that it could go either way in typical circumstances, then I might more explicitly check the index in the array to illustrate my intent that yes, there are two distinct paths here and that is how the program's control flows naturally.

Of course all of these things are only worthwhile if the reader can see and interpret them as purposeful decisions rather than coincidence. Conveying that is something else entirely.
I like list comprehensions and to me dict comprehensions feel like a natural extension of this. It means that you can do things like

{k.upper(): v ** 2 for k, v in zip(keys, values)}

Or generally

{f(k): g(v) for k, v in zip(keys, values)}

I find this very extensible. In terms of conciseness, they both fit on a single line and I like the whitespace inside a dict comprehension.
"In spite of increased income inequality, our political process is becoming more hostile to the rich than it was historically."

Is it? I don't know about the state in India, but here in the United States, you hear a lot about "hostility" but I have not noted any real changes in behavior.

Breaking a Google bus window is pretty lame, as such things go. I'll start believing in "hostility" when someone sets Mark Zuckerberg on fire or I have to start paying for security forces (which is more likely, I suspect).
It's kind of interesting thinking about this from a historical perspective considering that most people who give or associate their sovereignty to a (nation)state body pretty much treat (or have at some point treated) their nation state neighbors as active enemies, but people more privileged than others who are multiple degrees away from such externalities don't have to worry, and such attitudes only help exacerbate such situations which then turn not having to worry status quos to heads on block ones…
You will note of course that their legs are significantly different to ours. They're much shorter, they're less optimally-shaped for full upright standing (when do you ever see monkeys, apes, gorillas, etc standing tall like a human?), and their feet are differently-shaped. I think the comparison is flawed.
Because 1) they likely have the actual recording on file 2) they are the service company that wants to convince us to continue using them.
Well there are these things called Treaties that can cover this sort of stuff . A few years ago there was one signed in Kyoto and...Oh - I see your point.
Official Sass support is great! Looking forward to testing this out on a new project. Big thanks to the Boostrap team for such an amazing project.
> People are not poor BECAUSE the system is stacked against them.

Yes, they (often) are.

> But if they are poor (by birth, by screwing up royally, what have you), they have much less of a chance to become not poor, because the system is stacked against them.

But then that means that there children are very often poor by birth because the system is stacked against them; specifically, the same features by which the system which made it more difficult for X's ancestor(s) to escape poverty by circumstance mean that the system is stacked against X in a way which produced X's poverty.
I agree, it seems that new facebook strategy is to spread the use of their platform using mobile apps. This will increase their mobile ad presence. But, I'm curious if this is an indication of the weakness in their mobile ad exchange because other mobile apps which use facebook platform doesn't seem to satisfy them.
In this particular case, you want to write

name is None

since None is a unique distinct value

edit: didn't notice at first that you wrote an assignment, not a comparison
Official Sass port. That's pretty big news.
Your comments tell me more about you than they do Gentoo users.
Funny for this to come up now. I'm reading Cadillac Desert by Marc Reisner now which is all about water policy in the western US.

The short answer is that we consume WAY more water than all of the precipitation on the entire region can support so we end up depleting the aquifers. Eventually (likely within my lifetime) those will dry up and they we will have to either start diverting water from Canada and Alaska, or decrease the population in the west.

Edit: Changed entire country to entire region. The Great Lakes area will do just fine for a very very long time.
Seems strange that the interviewer would be so pedantic while showcasing their own lack of understanding... for example:

"How they choose to center content inside the overlay is also revealing. Some of the candidates might choose to use CSS and absolute positioning, which is possible if the content is a fixed width and height. Otherwise may choose to use JavaScript for positioning."

First of all, JavaScript... just... no. Stop.

Secondly, hey, you don't need a fixed width or height, you just use:

position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);

I would really challenge the writer and anyone else interviewing for any position to consider that maybe they don't know everything.
When did a democracy or a democratic decision imply moral absolutes? That would be my question.

does not mean that the state which implements high tax rates will achieve its desired results, and this does not speak to the morality of the average voter either.

Agreed! Every situation is different and that is by no means a silver bullet.

If people voted for increased redistribution to redistribute wealth than they are doing something to solve the 'real problem' as they see it. You are correct that it may not be the actual problem... But I do not think that you can effectively bring 'morals' into the equation of tax codes or being rich/poor.

Personal responsibility means very very different things to any given person. I do not think you can find many extremely wealthy people who think they have a moral responsibility to help out their lesser man (feed the poor), while you can find many 'poor' people who think it should be their moral responsibility ('if you have so much more than you can ever use why can't you help those less fortunate' sort of thing).
You are correct, I edited the post to include total effective tax rate for the top 1% and bottom 99%.
> When someone else gets richer and you stay the same (or increase at a slower rate), you're worse off. The increased average wealth/income increases demand and makes things more expensive for you.

I'm pretty sure you just made that up. One could easily argue that it makes things cheaper for you and everyone else, as rich people 'demand' things, e.g. a cellphone, economies of scale start to take over and make it more affordable for everyone.
Many cultures like the Chinese and Korean still squat a lot instead of sitting, it's funny for us to see but they seem to be enjoying it.
Would Twitter v1 count?
Why are there no y-axis labels on the first chart? That seems manipulative to me, so we just have to accept the author's own definitions of "rich" and "middle class." It also seems manipulative in chart 2 to label the middle quintile in big letters as "middle," as if just that 20% is the middle class. I'd love to see more transparency in these charts so I can make my own conclusions. It almost seems like the charts go out of their way to hide the absolute dollar amounts.
>> awesome UI design concepts for al long time, specifically in mobile

Hmm, would you give an example of the "awesome design in mobile" from facebook? I hope you're not referring to their "facebook" mobile app.
I'm a little dubious.

A significant fraction of our candidates demand a discussion of health benefits before accepting offers. They compare plans and copays with other jobs. They care about the level of benefits we provide, meaning that this pitch involves us (the employer) selling our candidates on the value of reduced health insurance benefits.

As I understand it, the full package of HSA benefits only kicks in if you're also on a high-deductible insurance plan. Meaning, to pitch a candidate on the idea of us funding an HSA, we also need to sell them on high-deductible insurance.

I have no doubt that most employees are better served by high-deductible + HSA. But that might not be a winning pitch for a candidate with a family; even if it's rationally the right move for those employees, it's still a complicated proposal.

Meanwhile, I'm very much not in love with compensation packages tailored for 23-year-olds.

Where am I going wrong here?
Would conservations (like people giving up luscious grass lawns) be enough to sustain the population in the west? (In your opinion.)
Actually Mexico threatened to take the US to international court during Nixon's presidency because the water coming out of the Colorado River into Mexico was so salty it was killing crops and un-drinkable.

The US agreed to make one of the biggest De-salination plants in the world just before the border and now the US pays about $300/ton to clean up the Colorado River before it flows into Mexico.
The issue is: obvious to whom? Both Newton and Leibniz independently invented* Calculus at about the same time. That may mean Calculus was obvious to Newton and Leibniz (and it may very well have been obvious to anyone in that particular community of mathematician), but it certainly wasn't obvious to the average mathematician at the time.

* More like discovered (don't want to imply math is patentable), but the point remains the same.
Hilarious! Doing x=C.getX() is bad, but if it is hidden by numerous layers of libraries and monstrous config files, somehow it becomes acceptable. Out of site, out of mind. The fact that global scope bean is essentially a singleton, doesn't seem to bother architecturally inclined crowd - they are too busy admiring sound of their own voice pronouncing words "dependency injection", "mutability" and "coupling".

The top answer is a perfect example of what is wrong with IT today. It takes a working solution, declares it wrong and starts piling up classes and interfaces to solve a problem, that was never a problem in first place (OP never said that their singleton-based cache didn't work, he merely asked if there are "better" ways of doing it). So in the end we have the same singleton cache, but hidden behind interfaces ("It makes the code easier to read" - yea, right, easier, my ass! Ctrl+click on interface method and try to read the code), thousand lines xml Spring configs, and other crap that is completely irrelevant, hard to follow and debug, but glamorous enough for SOA boys to spend endless hours talking about it.
Or I could just text them.
Google Cache: http://webcache.googleusercontent.com/search?q=cache:KJ58rS6...
>Singletons are always a lazy solution to the problem

The fact that you said x is always y in programming is troubling. Sure singletons are usually a lazy solution, but saying there isn't a single case EVER where a single is the proper solution is ridiculous.
Actually, the stuff the NSA doing is pretty old school for people in the ad space. Anyone doing online ads on social networks was doing this stuff even before Facebook started doing it.
Video by Mathias Verraes on using PhpStorm for refactoring PHP applications
But not in this case... which is why I asked. The parent has updated their post to show this.

The quoted number was only their income tax rate.
If attractiveness is based on facial symmetry and we wear an object asymmetrically overlapping our face, does it make us seem less attractive? Could that be the issue here?
See my response as well, but it depends on your intent.

None and '' are two completely different things, and could mean different thing sin the context of the application. It's quite likely that choosing either is a conscious choice of the programmer.
It's easy to stand comfortably for hours: just use the Captain Morgan pose. (get a small box to rest one feet on; alternate feet every few minutes) This is recommended for example by Kelly Starrett. Works for me awesomely.
Someone should just record a video of themselves doing it to their own account and post it online, that would be proof enough I'd think.
So, a site that shows alerts on it's home page with regard to SSL certs that talks about being secret, anonymous, isn't really encouraging.
If there is a simple condition I prefer "while condition" because it makes the code easier to read: I can tell (roughly) when the loop is supposed to exit without reading the contents of the loop and scanning for a break.
For an app that has anonymity as its big feature, it lost me at "give me your phone number".
OrderAhead is hiring a Growth Lead
OrderAhead is a technology startup that’s reinventing the way the world shops.

Today, we help people eliminate the stress and frustration of senseless waiting. Ultimately, we believe that we can provide an unimaginable level of convenience, transparency, and value to both consumers and merchants through well-designed software. To learn more, please visit https://www.orderaheadapp.com/learn-more

As the Growth Lead, you will develop and implement ideas that dramatically increase customer acquisition, retention, and engagement for our consumer and merchant products. In this cross-functional role, you'll work at the intersection of data, product and marketing to build scalable and repeatable methods for growth. If you're interested, please email Conway at conway[ at ]orderaheadapp.com

Responsibilities:

- Develop innovative and scalable growth ideas

- Design and implement experiments to evaluate growth ideas

- Optimize conversion rates for existing growth channels and product features

- Analyze consumer, merchant and product data to identify growth opportunities

Requirements:

- Insatiable desire to learn

- Exceptional creativity

- Experience with analyzing large datasets

- Agile and resourceful

- Not afraid to talk to customers

Bonus:

- Experience shipping product with real world usage

- Experience driving marketing campaigns from beginning to end

- Experience with A/B testing and funnel optimization

- Experience with Python, Ruby or MVC Frameworks

To apply, please email Conway at conway[ at ]orderaheadapp.com
I don't think you read the article. You misinterpreted the headline.
It's a form of natural unweighted squat that's commonly practiced in Asia as a rest position.

A crucial difference from how many westerners squat is that the weight is carried back on the heels. Westerners tend to squat with weight forward on the toes, which is highly fatiguing.

There's a vintage video on the topic:

https://www.youtube.com/watch?v=y76UbfBr5vo

(This was linked in the article, but it's since gone walkabout).
>"A Democratic decision is not 'coercion'."

So if a state decides (through referendum or legislative measure(s)) to compel slavery or imprisonment of one race or another, through police or military action, that would not be "coercion"?
Try again ;-)
It's a collaborative process between all three. There are a thousand different ways developers can prevent (and conversely, enable) scalability.
This reminds me of the debate of sovereignty in the context of mass surveilance. Ultimately, you can't keep a country from doing something that affects citizens of another country. You can only nudge them away from doing that with treaties, trade pacts and sanctions. China and the United States are Too Big to Care: small countries can't really tell them to stop doing something, and the effects of a sanction would be ridiculously small. The closest you can get to get a compromise from a superpower is to form an alliance of small to medium sized nations and then ask the superpowers to stop doing X.

But regional powers already have a lot of trouble keeping good relations with other countries and often have dirt of their own (see the UN), so these alliances are usually ineffective for anything but trade regulations.
I'm actually in the middle of a job search right now (in Chicago). Employers ask what my current medical is (100% covered, myself and my wife, BCBS PPO). If potential employers don't offer a comparable plan, I ask them to make up the difference with cash (and, of course, cash costs the employer more vs something you can expense like health insurance).

The problem is that the game is rigged until health insurance can be completely decoupled from employment.

EDIT: Keep in mind, I can still want excellent healthcare but not be a wasteful healthcare consumer. I needed a non-controlled substance prescription that was very expensive in the US, even with insurance, but its offered inexpensively over the counter in Canada, Mexico, etc. Guess where I bought it from.
That's the point: If the barber has a lot of younger customers, the reason that most of the bookings happen on the phone or via text message is that the barber doesn't have a good website set up with a decent booking system that the customers could use instead of the phone.

What OP could have told the barber is this: "We'll put up a system that enables your customers to schedule a time automatically - that way you'll only have to schedule times manually in the 20% of cases or so when a customer prefers to call rather than use the website".

It's not rocket science - plenty of barbers have such a system.
If it's a simple 5 minute change, why not implement it and use DI for a single instance? I imagine you would save a good amount of time by being able to run automated tests now rather than the manual tests you described in your other reply.
Show HN: Quick Fit – the perfect workout app for busy people
Fair enough, but that does not make inequality a 'first world problem'. Inequality is a thing in both systems, just because the difference is much more vast (or less so) does not mean that there is no inequality.
I like this idea so much that I built something very similar for the web two months ago. It's out there, but I never officially launched it.

App looks great, and the idea is great. Good stuff.
>Something which I've come to believe does not exist, the pattern itself is broken.
>Paraphrasing Mencken, for every complex problem there is an answer that is clear, simple, and wrong. Singleton is ever that answer.

Just because you haven't found a good use it doesn't mean it doesn't exist. And about Mencken... All he said is that you can't have Singletons without having a Global State (obvious) and apparently he has an strong allergy to global states.

Global states are fine. Sure, they will make your tests harder but there are a lot of software that don't use unit test for legitimate reasons and hence don't have that problem.
That means we must have the 'some_condition' variable outside of the loop.

I'm not sure what you mean by that, this works just fine. Though you would probably use range in the real world.

i=0
while i !=5:
i+=1

Instead of

i=0
while True:
i+=1
if i == 5:
break
I don't think you necessarily need to register to a trademark to have some protection.

http://www.uspto.gov/trademarks/basics/register.jsp
Seams to me that his cost calculation is way off.(one should be able to pull of a service as snap chat where data persistans is not that vital, for a fraction of the cost he wrote)

In my experience long term storage reliability is where the biggest costs is in most IT related stuff that i have seen.

Snappchat never has to store anything for more than a couple of hours at most in the majority of all cases.
Alright what is it. Now I want to hear it.
Its partly because PayPal's reputation precedes it. Paypal is a shitty company with often scummy policies. They also have a demonstrated history of employees making horrible decisions.

If PayPal didn't do anything wrong, they would probably be far more eager to provide their customer with assistance. In their initial communication they should have volunteered whether or not there is a recording of any conversation they may have had with the attacker. If there is a recording, they should have immediately volunteered to play it back for the victim in order to give him peace of mind. That's basic customer service.
Intel's Internet Of Things Is Changing Retail And Fashion
cool idea. looks well done. i can't keep thinking that the only thing i would read on here would be confession bear quotes, though.
Pump seawater to Nevada and cover it in desalination greenhouses. http://www.seawatergreenhouse.com/
Enigma.io raises 4.5M Series A from VC's, American Express, and New York Times
> ... analysis showed that it would cost half a million dollars to construct a water well into deep, but high-quality aquifer reserves ... led regulators to allow a uranium mine to inject more than 200,000 gallons of toxic and radioactive waste every day into the underground reservoirs.

Wow. The stupidity and nearsightedness exposed in this article is astounding.
Whole Foods? Jesus Christ.

If you want cheap, healthy food, try shopping in some of ethnic stores in lower income neighborhoods. That's what I do. I can walk out of the local Asian grocery store with enough food for 2 for a week and it costs me about $50. It's mostly vegetables.
Been using this for a while. I love the app, the idea, the community - I feel like it's somewhere online where I can actually be myself, instead of worrying about managing my public profile (Facebook/Twitter).
"Want to discourage people who aren't healthy and 21 years old from joining your small business? Pick 'budget' health insurance!"

The difference in premium vs out of pocket expenses makes sense in aggregate. It wouldn't think it would be convincing to an individual who has the slightest current health complication, who has a family history of complications, or who has a family or is thinking about starting a family.

Of course if you allow employees to choose which health plan (and thus which premium) is appropriate for them, that is different.
Doesn't this go against the Pythonic notion of handling exceptions rather than "looking before you leap"?
Imagine how misleading advertisements can be on this platform: since your friends won't be explicitly attaching their names to their posts, you would never know if something was inserted by an advertiser.
Blipverts? Just 20 minutes into the future...
I don't know the ins and outs, but my employer offers two health plans, both have the option to fund and HSA with pre-tax dollars, including the lower-deductible plan.
From https://en.wikipedia.org/wiki/Philosophic_burden_of_proof

When debating any issue, there is an implicit burden of proof on the person asserting a claim. The fallacy of an argument from ignorance occurs if, when a claim is challenged, the burden of proof is shifted to be on the challenger.

The burden of proof is a philosophical concept which extends into the legal domain. In fact, it's the only sane way to process assertions made by purportedly rational actors, it's hardly limited to 'social/legal' contexts.

But I'm not sure why you didn't go look this up in Wikipedia before you commented.
You aren't going wrong. I have been had chronic sleep issues, allergies, and similar problems for the last few years, and I am in my twenties. Being provided with a GOOD health plan has been a saving grace, and allowed me to continue concentrating (and producing) great work. If I was given a lower quality plan, I would either be paying thousands out of pocket for specialists and visits, or deciding not to go at all, and likely falling into a cycle of worry and depression about what could be causing the problems.