skysight-inc/HackerNews huggingface dataset:
Well, it's concise. The main problem is that the error action is "return" - you have to bail out of the entire function.

What happens if you use "?" within a lambda? Does it bail out of just the lambda, or the entire function? What about nested functions? (Can you have a named nested function which can access its outer scope? This StackOverflow post [1] says no, but may be wrong or obsolete.)

If this works with nested block structure, it's more useful. Having
a "match" for Err/Some around a lambda with with lots of "?" clauses would be useful. That provides a way to get the error from some complicated chain without leaving the function.

[1] http://stackoverflow.com/questions/26685666/a-local-function...
Well, to be more specific about what I mean is, Google's algorithm is successful if it finds the pages that people find valuable. It's sort of baked into the value proposition that the end user will be able to gauge the quality of results, so there is a sort of feedback loop. The problem with misinformation is there is no in-band signal for Google about its truthiness. I suppose there heuristics you can use related to fact-checking quality of certain publications, etc, but it's much trickier than general perceived quality.

Nevertheless, I agree that if anyone can do it algorithmically, it would probably be Google.
There used to be a feature on Twitter for viewing other people's feeds[1], but was removed[2].

I made something to replicate that via Twitter Lists[3][4], but it seems like making one for Facebook is much more important.

[1] https://twitter.com/twitter/status/73833309163110400

[2] https://news.ycombinator.com/item?id=12117218

[3] https://otherside.site/

[4] https://gist.github.com/0x263b/7b391a1617fcbbabc57fb1e705884...
Aren't tests supposed to be a tool to help design API? in that perspective a test should be written first. The problem IMHO is the choice of methodology as there is several kind of tests. Some may be more time consuming when it comes to the set up.
DHH said that there are really hard and big problems waiting for being solved. He lets the unhappy cubic folks working for big corps solving this hard and big problems and makes his living by solving small problems. He seemed to be happy. And seems to have power to contribute to OS.
The Macbook (2016) itself does come with a USB-C cable for the power adapter right...? Does it?
So because Trump was elected, it was shaped by marketing. If Hillary was elected, it was their will alone. Even though the Clinton campaign spent twice the amount of money.
Having a good type system would be a good start :)
>The urge to turn everything into a set of rules or a narrative can be a kind of sickness

I agree with this, and I think that's the root of many of the social malaises Japan has that the OP was getting at: lack of intellectual independence and hikikomori, for example. Many of the Japanese folks I've met through work are very attentive to protocols and rules, and supremely uncomfortable without well defined sets of rules. That's a kind of sickness, isn't it?
They'll be contributing the design to Open Compute so, we'll find out soon if it's not already there.
Junk. Rambles on about "TDD" without ever saying WTF it is.
>However, it's susceptible to vote-buying, which is a major part of the current election system's threat model.

This isn't the only issue with making votes public. There's an issue of political discrimination as well. For instance, a Hilary supporter could be found and attached, or an employer could fire all of his employees for voting for Trump.
You should try using a microscope.

Your tone is understood though. Calling me an idiot is childish and only hurts your credibility.
You can also write "Methodology X doesn't work always". All methodologies work well for some situation and for others they don't. In my view TDD is great for a lot simple things and algorithms and you can structure your code in a way that most of the code is inherently testable. But when things are so complex that you don't even know the correct architecture upfront, TDD is a killer.
How to Scale an Organization? The same way you scale a system
I can't believe he skipped over the real elephant in the offshoring room - the time difference. All of those countries have almost no overlap with any part of the United States. If we schedule an 8 AM CST meeting with India (which is super early for some of the people here), it's already 7 PM at night there, and they're completely exhausted and ready to go home. And that's _if_ you can schedule a meeting far enough in advance that somebody else hasn't already taken up that precious 8 AM spot... usually you'll have to go out later in their day, sometimes as late as 10 PM there. Which really hurts when you consider how many of them rely on public transportation... which stops running before 10 PM. I've been told that some people have ended up sleeping in the office rather than push back on a very late meeting request.
Tried to look up an actual number, but got distracted. http://pitchfork.com/features/article/9628-how-much-is-music...

Seems you're correct though, it varied.
It's much easier to make a buck if you're not held accountable for negative externalities.
If Trump stories are making it to the front page (which I haven't seen much of personally), isn't that because people who read HN find them interesting?
One of the hardest things about using Core is finding compatible libraries. Giving a cheatsheet for viable data solutions is a step in the right direction.
I'm curious how you think one can understand without spending bandwidth.
I had almost the same conversation with my wife years ago, about direct deposit of my paycheck.

Me: "I don't want to use direct deposit! I program computers; I know how much can go wrong!"

Her: "I've worked with data entry personnel."

Um, yeah. We went with direct deposit.
I attempted to load something and realized the extension I had just previously been using stopped working. [screenshot of the disabled extension](http://imgur.com/jBmnwf4)
I'll just leave this here.... http://mjtsai.com/blog/2016/10/27/new-macbook-pros-and-the-s...
I'm confused, so PHP 7 today does not have a JIT yet its performance is already on-par with HHVM (which has a JIT).

Are you then suggesting that PHP 8 (with a JIT) will be significantly faster than HHVM?
It really sounds like you're using the "studies have shown" fallacy.

What I see with "free trade" agreements is exploitation and creative accounting. Send your manufacturing one mile across the border to hire cheap labor through "third parties" that have much weaker workers' rights laws, no healthcare, and lax environmental oversight.

Then send those products back to the US and reap tremendous profit, while having your hands clean of any environmental or human exploitation because it was done on another "set of books" across the border. Same amount of damage, but we reap massive profits while keeping our noses clean. What's not to love about that ?
Really interesting and well written article. I don't think China will be an outsourcing destination for long.

In India your slowly starting to see agencies that aren't merely code factories but places where you can do actual product development. Its early days though.
No, it's more the fact that I have been involved in hiring rounds in SV and seen the insane amounts relatively speaking crappy devs are demanding.
> Another example is you don't really have a way to verify your vote was counted / tallied.

At least for vote by mail, in CA you can verify that your vote was tallied, but not how it was tallied.
>I find that I'm WAY more productive when working closer to 6-hour work days than 8-hour days.

I'm glad someone else has noticed this. The fact that I still end up feeling burned out if I constantly work 8 hour days has made me feel very lazy. It's weird, I feel like I can work at top speed all the time if I work 6 hour days, but if I try to maintain that same pace with longer days then I hit a wall. In effect, I need to pace myself to work 8 hour days.

The only time I feel like I need a day longer than 6 hours is when I'm in meetings all day. Meetings and working seem to use two different kinds of energy. So I could meet for 3 hours about something and work for 6 hours just fine, but I'd be wasting my time if I was attending 3 hours of meetings each day.

The thought above pretty much reinforces my belief that the hours we work have nothing to do with productivity, and everything to do with an illusion of fairness. My boss spends more than half his day in meetings. It probably wouldn't look good if I was working 3 hours less than him each day just because I don't have as many meetings to attend. The issue is even trickier when I consider the fact that many of my coworkers need less concentration to perform their roles, and would be perfectly fine working 5x10s by their own admission.
When I knew people who supported Romney, I felt no need based on that to exclude them from my life or my social media circles.

One's ability to support Trump tells me much more about a person. There are too many things that are good and should be fundamental about a functional, enlightened society that one must reject in order to support Trump. Prejudice, fraud, bullying, and sexual harassment must all be accepted.

People who would accept these things are not welcome in my life. It's not because they're on the other side. It wasn't like this in 2008 or 2012. This time it goes deeper than that.
Loved the Indian head shake video! Watch it if you can.
That's not counter to regulation - add a regulation about large company mergers, remove regulations on CO2 and NOx producers. Done.
I grew up in Vancouver and I think this law is necessary (maybe). The big question here is...how do they tell if the house is unoccupied or if the owner is on an extended vacation? Can it really be enforced?
No macros needed!

use std::cmp::min;
min(a, b);

https://doc.rust-lang.org/std/cmp/fn.min.html
He is in charge of the EPA now but he tweeted that global warming is a conspiracy created by the Chinese. He is in charge of the State Department but he thinks that Mexico will pay for a border wall. He is charge of the FDA and he thinks that vaccines cause autism. Some of his views are deeply disturbing on a level much deeper than just "orhodox liberalism"
> by changing the security settings on the computer

Sierra has disabled the "install from any source" option (although you can re-enable it with some terminal magic). How long until they disable the identified developers option too and leave a system like the iphone?
I think there is a similar issue in Geneva.
I believe the term you want is "discretized", not "quantized". They're quantized too, but that's about there being a finite number of shades rather than a finite number of subdivisions of the image.
They have to be convertable though, because the function must have a single result code.
Isn't there an ongoing concern that a lot of what is sold on alibaba is counterfeit?
I find that automated tests shine pretty much all of the time, provided they're relatively cheap to build, cheap to maintain and not buggy.

Where they fall down is when they're more expensive to build than the code under test and they produce false positives/negatives.
Oh this is nice. The guy who helped create a firm for the sake of spying on people (Palantir). Yeah, totally not questionable in the least. Also, he's probably being used to cover Trump's other nominations which oppose LGBT rights and support gay conversion therapy (even forced when it comes to children).
The answer seems obvious; it's the same behavior "return" has, i.e. it returns from the function it's currently in, not something a few levels up.
When was this ever the definition of popularity.

I'd like it if it was, but I've never witnessed popularity that embodies that statement.

Popular opinion is usually informed by the most often repeated narrative.
Our perf work in the 7.1 cycle hasn't shown any significant gains on real applications (we have some improvements for computationally intensive code -- like arithmetic inside tight loops).

Whether or not the JIT will bring a major improvement for applications is not yet clear, but the hope is obviously there.
There have been a lot of hoax hate crimes in recent years, I wouldn't be surprised.
> Does it bail out of just the lambda

Yes.

> What about nested functions?

It returns from the nested function, not the outer function.

> a named nested function which can access its outer scope?

No, functions don't close over any scopes.
You're speaking of their open source mechanical design of a rack-mounted PC? Yeah, relatively speaking that is entirely unsubstantial.

The mere fact that you're comparing this to the amount of research that goes into radio/network protocol design by the big companies is hilarious, I have to say. But also cute. Do stay ambitious :).
My Complete 3 Week Itinerary to Italy
Agreed, there's often not enough incentive for companies to not do it, and people don't quit often enough - both were true in the cases where I've worked lots of overtime.

That said, productivity during extended 80 hour week crunches may well dip below 40 and be a net drag on the company, but it probably still wouldn't matter. Game studios in particular aren't asking themselves whether it's worth it to crunch, they don't know whether crunch is more or less productive and they don't care. They look at a looming deadline that appears to take 3x more work than there is time left. Publishers attach bonuses to being on time, and fees to being late. Crunch is often seen as the only option. That shouldn't be true at the huge game companies, but it still is.

Plus, it is really hard to measure true productivity in a non-factory setting like software. Nobody actually knows if 80 hours per week sustained equals 50 or 30 or 70 or 10.

All that said, a true 80 hour work week doesn't leave enough time & energy to eat properly, see your family, or even watch TV, let alone job hunt. I'm the kind of person that always does extra work, or has side projects going, but I realized at some point during game crunches that I was trading money for my entire life, and nobody can pay me enough to work 80 hours a week.
Compose.com (old MongoHQ) kidnapping data?
Well, without previous warnings, in one month they stopped their free service and archived the data of the users.

Now, if you want your data back, you have to pay.

Is it a blackmail strategy?

It is terrifying to know we trust our data in a company that do this. Well, not anymore.
On a societal level, your guess is good as mine. Perhaps increased infrastructure spending so that high-skill, high-pay jobs are more evenly spread out and ideological segregation is reduced?

On an individual level, being active in (non-political) hobbies and volunteer groups can help, especially ones that attract both people from the cities and the countryside.
CTPaint – MSPaint in the browser
Are there any more examples?
If you are offshoring a project because you can't afford local prices then the project may not be feasible at all within your limited budget, even at outsourcing rates.

If you have a limited budget, realize that means your requirements will be limited. Never select the vendor with the lowest rates. Always evaluate the actual people on the team.

The idea of line items for features is unrealistic for software development. It's X hours, days or weeks for each person, which needs to be re-evaluated every week or two.

If you don't have a good developer you trust before aside from the outsource team to look at the code on a routine basis then don't bother making the software at all. If you don't have a budget that allows for automated tests to be developed (20 percent of devs will do this automatically anyway) then cancel the project. If there is no budget for refactoring then please cancel the project.

If you plan on using thinly veiled racism to blame foreign developers for your inability to specify coherent requirements or comprehend the complexity of software development, then please cancel your outsourcing project.

If you follow this advice, 8/10 outsourcing projects would never start and everyone could spend their time on better things.
The link from Ben Hollis's site, https://jsonview.com/, to the Alternative/Unofficial JSONView for Chrome 404's.
I'm just as dismayed as you, and already researching damage control.

I have a CPA investigating how to use the ITC tax code to partner those with a tax liability to solar projects. You would estimate your tax liability, make a payment to the solar project, and their tax credit would then flow back to you when you file your taxes; whatever dollars you would've sent to the US government, you end up sending to a solar project instead.

If its doable, I'm putting a Django site together and starting to market it. The best renewable is the one that gets installed as soon as possible.
As someone I know likes to say, write better code?

It's a given that software needs to be tested. The processes around that are a classical "it depends" question.

Most likely any software you deploy will never be "correct" (whatever that means). The quality of that software depends on many variables and it's up to you to try and tweak them while optimizing for things like cost, time etc. Whether it's worthwhile to write the tests ahead of time or after the fact or to do them manually or automatically or any other permutation is just not a question that can be answered in a way that applies to all situations.
There's alternative inclusive scouting organizations that don't include a focus on religion.
There are known methods of vote verification and auditing that prevent the actual vote from being disclosed, voluntarily or otherwise. See Punchscan or Scantegrity for examples.

Pretty interesting stuff from a comp sci point of view.

[0]: https://en.wikipedia.org/wiki/Punchscan

[1]: https://en.wikipedia.org/wiki/Scantegrity
I think it's the contributions merged in master that are in the 1.13 release but not 1.12.

However, the timeframe for that is the same -- it is a different period of 6 weeks, but still a 6 week period.
You've enjoyed it, but those hours cost your business, and is that really worth it?

Some beliefs which are frequently displayed in these parts:

> Money on chairs / desks / PCs are no object because developers cost money, not those things

> Ship quickly and iterate

> Make it, make it work, make it fast

> Write code your successor can maintain

And then HN goes ahead and upvotes a boast about spending their (expensive) time unpicking libraries from code.

The point of "you might not need X" is to encourage package maintainers to keep their sub-package footprint small, not that end-users shouldn't use X.

I'm sure you'll be back to suggest that you've delivered "500% speed-up" or some other nonsense metric and I look forward to that.

Ultimately, custom business owned code which attempts to deliver the value of angular is just a future maintenance nightmare, and I say that as someone who really doesn't like angular.

If you really replaced angular with a "javascript one-liner" I'd like to see that line!
The semantics are very straightforward: `?` will return as per the `return` keyword. So if you use it in a lambda, it will return from just the lambda, like returns in lambdas always do (Rust hasn't hewed to Tennent's Correspondence Principle for a long time now :P ).
The site is currently down, but http://www.opencompute.org/wiki/Networking/SpecsAndDesigns#F...
The Mean Startup 2 – The Paradox of Speed
> Political affiliation is also not a protected class under Federal law.[1] Perhaps it should be.

Probably, but I would guess they would have to exempt the government itself (or a massive subset) since each election has the potential to change what affiliation is going to hold the positions.
They can just form a group of truth checker, a ministry of sort, who's job is to inform people of the truth. They can call it the Ministry of Truth, where busy citizens who have no time to research can get their truths from.
Linus probably had easier time handling incompatibilities with the hardware. Most of us are not such proficient Linux hackers.
>I'm no Apple fan boy, but those Lenovos are not IBM Thinkpads anymore.

Are you saying the quality is down? I can't agree with that, I have kept buying Thinkpads and my X1 Carbon (2nd gen) is fantastic.
So what do they propose? To hire more human editors/moderators to evaluate/censor links and stories?

FB already has too much power and its moderators affects 'politically undesirable' content too much.

One week ago, FB blocked an event page of Independence March, which traditionally takes place on November 11th (Polish Independence Day) in Warsaw. This is the biggest mass event of Independence Day, having more than 100k participants each year.

FB also blocked or removed pages of NGOs and political parties, which are organizing or support the march (some of them had 80k or 170k followers) and personal accounts of people involved in these organizations.

Then FB went full rage and started to block personal accounts of everyone who invited or even positively mentioned the Independence March, including for example the personal account of editor-in-chief of the second largest daily newspaper in Poland (https://twitter.com/sjastrzebowski/status/793001362070052864).

The most extreme case was the personal account of a MP, who wrote on his timeline: "I will be [on the Independence March] along with my family, whether FB likes that or not." (https://twitter.com/jakubiak_marek/status/793497135954202625...) His profile was blocked for 24 hours after that.

Another case was a personal profile of a retired Intelligence Agency officer, who revealed in a FB post, that a local coordinator of an anti-government liberal-left protest movement during the communist period was a colonel of Soviet-dependent military intelligence agency.

All of this happened just within the last month. FB actions generated a huge pushback and hit the headlines. Deputy Minister of Justice qualified FB actions as "censorship". Minister of Digitization tweeted that she "asked FB management for a talk". Many people started deleting their FB accounts in protest.

FB got frightened and reactivated the event page of Independence March, but many nationalist/conservative organizations profiles still remain blocked.
Same here. I value the readability more over the "oh no it's 20 extra key-strokes" drawback.
Compiler cannot determine intent, so it will not be able to produce correct, user readable error message, in user language.
It must stop its operations. That is too much.
It might seem obvious, but Ruby, for example:

def lambda_test
lam = lambda { return }
lam.call
puts "Hello world"
end

This will print "hello world". But this:

def proc_test
proc = Proc.new { return }
proc.call
puts "Hello world"
end

Will print nothing, as the 'return' returns from proc_test. Examples taken from here: http://awaxman11.github.io/blog/2013/08/05/what-is-the-diffe...
You are correct. My use of the singular "you" was more directed toward people in their own projects. For the purposes of a team at a company, you can think of it as a collective "us". We do not use TDD.

I would say that the most successful teams i have been a part of focus not on automated testing but instead on other collective practices: informal code reviews, diff analysis of every commit, group discussion of database changes and collective manual testing of other's code. Many people point to the refactoring (or initial code organization) as a benefit of TDD. I find these other practices tend to inspire a more collective ownership of the system. Additionally, and more importantly, they spur a lot of conversation around how and why to organize code certain ways. These learning opportunities are probably the most valuable among young and growing teams.
Wow. That seems very complicated for an implementation of map().

It seems like this is a perfect example of how generics are a productivity feature.