skysight-inc/HackerNews huggingface dataset:
This is such a lazy/defeatist statement. I'm hoping you still know that, in the midst of all this noise, facts and truths continue to exist -- so do well-informed opinions that can be fact-checked. Also, accepting this holier than thou persona from televised/printed "professional" media is being ignorant to their adoption of sensationalism and immediacy.
I see it the same way. It offers symmetry. The method name can be as long or short. At least the start of the code block and the end is easily visible since the indentation level remains same. Gives a sense of Python readability.
I hear what you're saying, but the analogy doesn't hold because we no longer need horses. In order to use Facebook, you have to sign up with an e-mail and typically a phone number (and in many cases, a photo ID, birth certificate, etc.)

If we need e-mails and phone numbers to sign up for social media, then we don't actually need the social media. We can go back to simply using the numbers and e-mails.
It will probably also kill the growth of the channel. I got into Forgotten Weapons and InRange TV last year, but if they hadn't been on Youtube I'd probably never have found them. It's a terrible shame, they make great, highly informative content.
> Citizens' right to privacy trumps startup creation.

You're assuming that regulatory capture protects privacy better than competition would.

The evidence is to the contrary. Debian and Open Whisper Systems are better at it than AT&T and Comcast.
Most languages with try/catch/finally don't have checked exceptions, so handling resource management in the those schemes is really brittle.
Ask HN: Whats the best way for a Software Engineer to learn finance?
Hello!

I'm a young software engineer looking to learn enough finance to get started in algorithmic trading.

What are some good resources for someone with a programmer's mindset to learn finance?

Thanks!
It's usually opt-in (if it isn't, a lot of jurisdictions allow you to sue or do other nasty things) but it's ticked by default and somewhat hidden above and below the ToS/EULA.
> pressure on hospitals to find ways to reduce prices

This might be the case if hospitals had to actually show their prices rather than sending bills after the fact for a price you aren't allowed to know when you consent to treatment. It might also help if competition were allowed, but for hospitals it is pretty much not in a lot of states. To open a new hospital in many states, you need a "certificate of need", which is basically a document demonstrating that you won't be competing with the existing hospitals. So much for "free market health care".
Read the domain + title, thought Stripe is launching Mailchimp competitor (...10/10 would sign up...)
> 91% of customers want to hear from the companies they do business with. It’s unavoidable in the modern e-commerce marketing world.

The quote is referring to email marketing. This seems pretty misleading. I can believe that 91% of people want to hear from some companies. But I'd bet that most people are not interested in hearing from most of the companies they do business with.

There's a simple solution to this. It's called opt-in, and it's not uncommon (although I wish it were ubiquitous). If I check a box (that is by default unchecked) saying I want marketing and promotional emails, by all means send them my way. But I abhor being automatically signed up for emails just by nature of the fact that I made an online purchase.
Not really, inlined RAII is just as fast as doing it yourself.
> nor get rich off of the bubble.

https://www.theguardian.com/technology/2001/jan/26/internetn...

> He didn’t hack anything

He claims to have, and I'm fairly sure he's convicted of doing so in his home country, but I'm not going to contest it because I'm not incredibly familiar with that part of the issue. I was going off of his Wikipedia page, which as always can be innaccurate.
Non-mobile link:

https://www.imdb.com/title/tt1268204/
At this point I consider my general-purpose email address to be an opt-in advertising receptacle. I don't mind receiving marketing, especially when the coupons are good. However, getting the marketing when I want it for what I want at a particular point in time is tricky. Filtering through the emails becomes tedious, too, as I opt-in to more email lists.
Doubly slow if you count hamburger menus.

First you load mountains of code and assets. Then you have to remember which collapsed menu is hiding your target, then you go there and look around and hit it, then wait another 15s to load the next pile of crap. Can't they at least use the real estate if you have it, instead of always hiding?

I'm tired of it. None of their thrash is benefiting me.
Here Is Your 2018 Career Outlook Based on Zodiac Sign – Astroligion.com
20% off on your first Heathrow taxi booking
That reduces hatred to a never applicable triviality.

Hatred at its core is causing others to suffer in service of the things that live in one's head. Emotions can be hateful, so can ideas.
I hate being able to configure stuff, I want other people to boss me around from anywhere in the world! Their opinion matters on my computer!
This is speciesism in its purest form. So if we took a Planet of the Apes style plot twist, and apes became the dominant life form on earth, I suppose you'd be OK with them strapping you in to some test where you will probably meet a horrible end, all so they can progress their technology?
'git show' does that too.
Trump derangement syndrome in full effect. Nobody cared until the link was made to the Trump campaign benefitting from analytics research. Now it's an issue.
Show HN: Double Gems – Like MoviePass for Mobile Games
I suppose its a matter of economics. Eventually raw materials will be too expensive to mine so we'll have to get them from landfills.
>Why optimize for the lowest common denominator?

You seem to be erroneously equating a coincidence with a preference.
I know this isn't specific to this particular domain, but the thought of psychology being used in a way to essentially herd cattle to consume leaves me feeling a bit cold.
A general rule in C++ programming is that time spent "perfecting" your code increases, the more difficult it is to change and maintain it, and the probability of using Boost approaches 1. Using Boost as a dependency makes your project very cumbersome for to users to compile by themselves.

I put perfecting in quotes, because I believe overengineered, verbose code is something that makes code worse for the reader, writer, and tester. This is why startups are able to accelerate faster than enterprise programmers while they are still able to do this sort of thing.

My point is that RAII is not for everyone, so much so that a popular modern language was developed which avoids it (Go) and includes `defer` instead.
Interesting, have you had success with this approach? I might imagine there could be some stigma associated with this since why waste time if there's no guarantee of full time employment?

In California, it is at will employment anyway but I get the feeling that contractors are easier to fire than employees. Correct me if I am wrong.

On the other hand, candidates who are actually good will do very well and get through without any problems. I feel like it would take at least 2 to 3 weeks to find red flags, then at least 3 months to determine if someone is a superstar, and at least 6 months for everyone else to shine through.
> ... makes case analysis easier ...

> ...making the code look less complicated than it actually is...

> I'd rather emphasize the underlying declarative intent, the state machines, and pre/post-conditions.

These statements are strange to me as I personally see early returns as attempts as achieving exactly these goals. I guess people unroll logic in their head in different ways. "flat" to one may appear "nested" to another and vice versa.
Susquehanna Confirms Bitmain Ethereum ASIC Miner
A set of utilities for building UIs with React
The world was better when people paid for communications. It's why the internet was better in 1995. Most of the people who had access needed to afford a landline and likely had to own a home or rent an apartment. The only way kids got online is if a guardian had access.

Nowadays, any kid can get online. The range of intelligence and character has expanded dramatically.
> When a gay couple gets married on the other side of the country, do you notice? Does your life change?

The word 'marriage' doesn't mean in 2018 what in meant in 1918, or even in 1968, or 1993. In large part, that's a good thing (domestic violence is no longer legal spousal rape is no longer legal, married women don't have a kind of legal-child status), but it's also a bad thing (due to no-fault divorce laws, marriage can be terminated by one party at any time; marriage is no longer the cornerstone of a couple's life, but the capstone to their lives; there's no longer social support for a reliable, lifelong marriage).

Many people who oppose legal recognition of homosexual unions as marriages don't have animus against homosexuals, but rather nostalgia for the previous meanings of marriage. They believe that a stronger concept of marriage makes for a stronger society.

Personally, I think we ought to go all the way and abolish the legal concept of marriage entirely: it's a religious state, not a civil one, and thus not the business of the State. But I understand the concerns of those who worry about how a diverse society which has lost all respect for marriage will survive — I just think we're already there, so we might as well be honest about it.
I've added gokrazy to my list of things to play with over the weekend (when I theoretically have time, hah). One question I'd ask in context of the other poster, can I easily run a Lua VM and tie it into the gocrazy env so that a Lua app would appear like a go app?
I've just installed NetGuard [1] and found both Facebook and Messenger apps to be very chatty. I guess I expected that. But what suprised me is that my SMS app, Textra [2] was making calls to graph.facebook.com. I have paid for the app so there should be no need to contact Facebook to provide advertising.

As it is just there for SMS, I've completely removed it's access to the internet which is possible through NetGuard.

1. https://play.google.com/store/apps/details?id=eu.faircode.ne...

2. https://play.google.com/store/apps/details?id=com.textra&hl=...
A Blockchain for Mars
Very interesting. This also seems related to this recent work that shows that networks can learn by updating only a fraction (10%) of their parameters, having the others fixed to their arbitrarily chosen initial values:
https://arxiv.org/abs/1802.00844
I'm waiting on the jury for Almost Always Auto...
> The new kids in urban centers don't care about caste.

Oh yes they do, maybe less than before, but its still present. To native, +-cast membership is usually very obvious.

When you are born into privilege, and you are told whole childhood that you are entitled to it and those less fortunate 'deserved' it by their actions in previous lives, it's hard thing to give it up, and say 'no, I deserve less'.
...until you do.

That's the problem with antipatterns. It's impossible to remain alert to the edge cases, and then they eventually bite you in production. Better to lint them away. But it's difficult to convince people not to do something really convenient if they haven't gotten bitten yet.
Sure, they'd eat you for food / out of necessity. They wouldn't mutilate you just as an experiment though.
Of course, my observations are limited to me and I don't have any numbers. My interactions are with people in Brazil/US/UK/Australia/India/South Africa/Kenya/Spain/Central America.

I know WeChat is more popular in East Asia, and I know a few Telegram/Signal users, but I can find about almost everyone on WhatsApp.
there needs to be ways to jump into code without being bogged down with installing compilers and tools and configuring minifiers and choosing frameworks. just code straight away.

something that works for kids but also scales all the way into enterprise.
That's covered by "all things equal".

The argument against placing braces on their own line is that this:

if (a)
{
print(a)
}

conveys exactly as much information as this:

if (a) {
print(a)
}

while taking up more space. The thing the brace tells you is already told by the indentation, so the brace is on a superfluous line.
Dijkstra's approach towards provably correct programs has changed my opinion on loops somewhat.

Among all types a 'while' loop gives the strongest mathematical guarantees. In particular it ensures a condition is true at the start of each iteration, and is false when exiting the while loop. Combining this with loop invariants leads to precise and straightforward to verify code.

Avoiding while loops to ensure an exit just seems to be sacrificing a lot of power in exchange for some pretty shaky guarantees that your loop will finish.

Although in the majority of cases where a while loop could be used you're simply iterating over some (implicit) data structure. In which case it's obviously better to make this explicit using a "for ... in" loop.
You wouldn't download a car, would you?
I would also argue that you should throw an exception early when the function cannot return what it promised to return.

When you break your application fast you generate less bugs.
South Korea's justice minister said on Thursday that a bill is being prepared to ban all cryptocurrency trading in the country. That news is a major development for the cryptocurrency space, as South Korea is one of the biggest markets for major coins like bitcoin (Exchange: BTC=) and ethereum (Exchange: ETH=). According to industry website CryptoCompare (https://cryptonewstrends.com/), more than 10 percent of ethereum is traded against the South Korean won — the second largest concentration in terms of fiat currencies behind the dollar.

Bitcoin tumbled more than 12 percent following Park's remarks, before recovering. It was down 0.7 percent on the Coinbase exchange. Ethereum tanked on the news and remained 7.6 percent lower on Coinbase. Park added that he couldn't disclose more specific details about a proposed shutdown of cryptocurrency trading exchanges in the country, adding that various government agencies would work together to implement several measures.

In fact, earlier this week, industry data provider CoinMarketCap tweeted that it would exclude some South Korean exchanges in price calculations due to the "extreme divergence in prices from the rest of the world" and for "limited arbitrage opportunity." The exchanges that were removed from the price calculation included Bithumb, Korbit and Coinone.
There is great irony here. These supremacists are the same type of bully they are seeking to correct for: people who abuse socially acceptable ways to oppress others.

In the Middle East accidental innocent casualties create more enemies and terrorists, such that the army often displays greater restraint than our police.

The animosity being generated in the 1/3rd of the population (white males), who also happen to own most of the guns, is already being politically leveraged. I worry that someone will find a way to harness it further.
Probably because it's too cold there?
Statement by FTC Regarding Reported Concerns about Facebook Privacy Practices
It's too late. If they wanted to, they could know tons of stuff about your life. Nothing you can do about it now. That is also why your answers to "security questions" should not be the real ones.

The question is, whether you can hide your private conversations from now on and the answer is yes.
> Same way you evolve out of one liners.

> Same way braces go on the end of the method/class name to reduce LOC.

For me, these are exact opposites; the reason to not use one-liners is the same as the reason to put braces in separate line: both improve readability.
New York is not part of the Roman or Incan empires last time I checked.
Pragmatic programming has lost. If you aren't a zealot about being pedantic, just move into the old-folks home.
All of this seems to be very alpha, but it's described as a standalone password manager and as far as I skimmed the docs, the firefox account doesn't necessarily seem to be a requirement. It might be something the extension requires, though.
Huh? My emacs auto-indents both styles in exactly the same way:

void foo() {
code...;
}

void foo()
{
code...;
}
The comment could be read to imply that due process is something to be earned with good behavior, instead of something to be afforded as a matter of law to all accused, even the most heinous criminals.

I personally am not a fan of "why talk about this one example when there are so many other examples" type comments, because it's literally impossible to talk in any depth about the topic generally if we insist on finding the best example first. We'll spend all our time debating which person is the better victim instead of talking about whether our criminal justice system is working properly.
I agree with you, friend.

Most everyone understands that people are not their actions. You can believe a behavior is wrong without hating the person behaving in that way.

It's a very simple formulation.
Going for the expensive toy niche of the market was really brilliant. Technological teething problems and high cost don't matter there as long as it is fun to drive.

German car manufacturers used to advertise their hydrogen/ electric car experiments as 'green'; targeted at eco-conscious young people and young families. Neither of them had the money for those low-volume cars or could live with the constraints of low range and a sparse network of charging stations. So they concluded that there wasn't a market at all.
React Scenes: Test/Create your components isolated inside your App
Löve has only one limit - it's 2D. Other than that, you can use build anything you want, in simple and cross-platform way. Löve is easy in terms of API size and tooling, but it's more low-level than other engines and therefore aimed at developers that like to build their own tools along the way. It feels very liberating and productive, plus you are not stuck with sub-par editors (unless you make them such).
What to expect from Apple’s Chicago education event on Tuesday
In order to get lucky with something you have to give luck a chance. There is no way to win a lottery when you don't buy a ticket in the first place. The more tickets you buy (the more involved you are), the greater the chance you'll win (luck). What's more to it?

Btw, what is luck? Some things that make you happy in the short term can easily destroy everything that's dear to you in the long term.
Show HN: Pelican Facebook
Yeah, that's how I feel too. When I get an email such as:

> Hey {{ first_name }},

"Hey" isn't a salutation I want as a customer. We aren't friends.

> We miss you.

Bullshit. This is an auto-generated email. Computers don't "miss" people.

> It's been a while since we've seen you. We know you get busy ...

Yes, and now you're interrupting my busy day

> ... but we'd love to see you again soon. In fact, come back and visit us in the next 5 days and take 15% off your order.

If you did a good job with my last purchase, I'll come back when I need something.

50/50 chance at this point that I hit the spam flag.
I recommend the American Life episode about Alex Zharov, stranded on a desert island in New York City.

It really gives a vivid insight on how some people find themselves lucky when others do not.

https://www.thisamericanlife.org/307/in-the-shadow-of-the-ci...
People deleting their data everywhere leads to reddit threads like these:

Person A: "I have a problem X that I need help with"

[deleted]: [deleted]

Person A: "Thanks that worked!
Hack your WD Greens (2015)
As for point (2), technically it's on the consumer to pay use tax on an item that they did not pay sales tax on. Amazon was operating in a perfectly normal manner; it's just that interstate sales like that weren't common before the internet. The laws are still trying to catch up.

https://en.wikipedia.org/wiki/Use_tax

https://en.wikipedia.org/wiki/Streamlined_Sales_Tax_Project
Show HN: Track signals from social media activity of public companies
'I've done a number of informal tests on friends and family'

You should have a pretty cool family!
Step functions have a lot of good use cases - strong guarantees, concurrent, distributed, good at recovery in all the right ways. It's a terrific queueing layer abstraction for complex business processes. I suspect there are a lot of businesses out there with adhoc state machine definitions in queue workers that would benefit from formalization.

I had a closed-source proof of concept for a little framework for building these in Python while at a former employer that worked out pretty neat. The gist was arranging / building them more in pure code and automatically generating/deploying lambda tasks and state machine.

@task(name='foo')
def some_lambda(input):
....

state_machine = StateMachine(
{...define_some_steps}
)

then it was able to take advantage of Zappa to immutable deploy steps as lambdas and build new state machine definitions with a little bit of python magic. Was pretty nifty and not particularly tricky to make it work.

Amazon would do really well releasing a maintained open-source lib / docker container that would be able to emulate state machines locally. The definition language is pretty simple, but it's something that you definitely want to be able to test end-to-end. I at one point did a little PoC for that bit too (https://github.com/bpicolo/local-step-functions).

The one big miss for me in step functions right now is that Tasks can't just POST to an HTTP endpoint for request/response to take advantage of existing infrastructure/http services easily. That'd be a real killer feature. They're currently distributed in nature requiring lambdas or polling daemons, which is powerful but also requires a lot of operational / configuration / deployment overhead where a simpler model would suffice for many use cases - seems like there's no reason you shouldn't be able to just deploy a monolith and get a lot of use out of step functions in that regard. There are ways you could sort of shim it with lambdas but the overhead is pretty high to do that (you'd need to carry / edit routes in the task data which would ruin the declarative nature of task definitions)
> The comment could be read to imply that due process is something to be earned with good behavior, instead of something to be afforded as a matter of law to all accused, even the most heinous criminals.

That is a pretty deliberate misreading of my comment. I'm very obviously saying why does his legal process continue to be news, not whether he deserves to have legal proceedings. Nothing even close to that.
They abstract most of it away. Marketers can set specific targeting criteria and can get a high level estimate of how an ad will perform. Beyond that it's tracking impressions, clicks, split testing, etc.

The app API was different until 2013(?). App developers only needed a single user's permission to access all of that user's friends' information. Both Obama and Cambridge Analytica came out of that period. Now, users can only authorize the release of their own information.
close:

https://thedailywtf.com/articles/The-Speedup-Loop
If I could, I would. I'd love an open source electric car design that can be printed on home 3D printers. We're still a way aways from this, but it doesn't seem like the realm of complete fiction :)
I lived in Malaysia for a few months and I learned the local population is extremely skeptical of their government and there is not much trust. There have been many cases of massive corruption at the highest levels (like most governments). However this seems to be an attempt by the government to censor the people and stop any anti government propoganda. While the elimination of false content being shared is important, it cannot be done at the expense of freedom of expression.