skysight-inc/HackerNews huggingface dataset:
The TL;DR: I did a quick read, no evaluation here, just what's in the paper.

1. Unit tests only work in "functional" code composed of easy-to-reason-about components that support other similar components. The OO storm introduced a style of code which is impossible to inspect unless it is running.

2. Because Turing machines you need as many bits of test code as bits of real code.

3. Code coverage requirements can only lead to tests for their own sake, i.e. wasted lines of code.

4. If there are many more lines of tests than production code, your developers are quite possibly paranoid about what they're writing, and that's bad.

5. Tests that have not failed in a long time don't convey information, they only provide noise. Optimize your test suite to provide information.

6. The reward of seeing a green bar in an IDE encourages appeasing the test gods instead of designing a good system.

7. Assertions are better than tests.

8. The Agile culture has turned unit tests into something worse than what they could be without it.
> This is an often repeated statement that is a myth. Los Angeles is the densest urban area in the US.

Source? I would think both NYC and SF would be dramatically denser. A quick google supports this assumption. LA is ~5000 people / mile^2 and NYC is ~27,000 people per mile^2.
This argument that "they're building a narrative" really rubs me the wrong way.

Yes, they're building a narrative - by pointing out the crap the CIA has been doing. This is not unlike how the US used to point out human rights abuses by China, Russia, and so on.

If the "narrative" is accurate, then that's on the CIA.
I'm curious, what police force is it that reports the ISIS videos? Is there once in particular that seems to be hunting for them or do you get notices from a bunch of different ones that have had the videos reported to them?
My Latin isn't nuanced, but I'd want a really thorough list of contexts in which cogitare appears before chastising Descartes on that one :)
How did you know my name is Baloney Bam?

You must not live in Los Angeles. If you took a lane away on every freeway the mayhem you'd create would be indescribably. In some places you can't due to the topology of the roads.

Besides, buses will guarantee that it will take three hours to move a handful of miles because they would have to get on and off the freeways at regular intervals and brave street level congestion while then making stops at non-existing parking lots (they don't exist now) to pick-up and drop off people.

There are no good mass transit solutions in Los Angeles. I've lived here long enough to see and analyze what is happening from multiple vantage points. We lived by the beach, desert, inland and in a couple of valleys. It's a mess. This megalopolis did not evolve to be mass transit friendly.

I say this with sadness because there's nothing I'd like more than not to own a car. I am simply being a realist on this one.
A Career Retrospective–10 years working in tech
The real problem is how impossible it is to get remote work in LA, employers here demand onsite even when it hurts the project, its very hard to get remote work living in La as most employers are looking for remote employees in cheaper cost of living areas.
I don't expect anyone to have red-black trees memorized. But I do expect an engineer at any level to be able to, say, rebalance a binary tree through brute force.
You should check out Alice, developed at cmu. It was a programming environment designed to build interactive 3D stories.
This study on this very concept was written over 52 years ago:

http://www.imdb.com/title/tt0734633/
I have to travel 6 hours a day to get to work and back but my employer doesn't let me work remote, not even 1 day a week, attitude is its hard for everyone to get here and the harder the location is to reach, the better.
Hidden browser would be good for establishing a "history that the ISP would see" as well.
This is a far, far cry from the kinds of quality journalism that Wikileaks does. It appears that the claim the password was 'password' wasn't a story in and of itself but an anecdote relating to the weakness of Podesta's password (which is true).

Compare that to Clapper, Director of National Intelligence stating for the record under oath that national intelligence does not have a surveillance operation targeting Americans in the homeland. That was a lie and one intended for testimony.

Assange here is just saying: Podesta's password is weak. It's hard for him to qualify that it was spelled "p@ssw0rd" rather than "password" during an interview.

The fact that you think saying "password" rather than "p@ssw0rd" disqualifies Assange as a lier goes to the heart of the anti-body reaction that nationalists have about hearing news that doesn't validate pre-existing opinions that they have about the nobility of their nation and its leadership.

The difference between "password" and "p@ssw0rd", while technically true, it is so pedantic it does not apply to the spirit of the conversation.
That's still creepy as fuck.
What are the dependencies to C# 7? Is it only available on dotnet core and on some future version of full .net?
Groovy. Did you write this for actuarial work or something as a replacement for spreadsheets? The philosophy aside, what did you expect the use cases to be?
The problem is that mixed use doesn't necessarily lead to any of this. People want to live where they want to live, which is not necessarily next to work. Exhibit A of this is Tokyo, which despite being very dense, very mixed-use, extensive public transport, tolled highways, expensive vehicle registration, etc., is still commuting hell.
This is that world. Lots of subtitles are added to all kinds of content for $0. All you need to do is provide the means.
It's not about traffic, it's about comfort. In car, I'm comfortable even when I'm stuck in a traffic jam.

Also, it takes 39 minutes to go to my office using public transit, and 18 by car, and that's the worst case.
That doesn't apply to any of the code examples posted so far in this thread: they would all require documentation about side-effects, shared state, immediate vs. delayed effects, etc.
> Why? All the office buildings are in one central place.

No! The defining feature of the LA megapolis is that the offices and workplaces are not all in one central place. Just within LA County, there are major business districts in Hollywood, Santa Monica, Culver City, Burbank, Pasadena, Warner Center, Playa Vista, downtown, Westwood, Century City, … it goes on and on. As Human Transit says, Los Angeles is a "vast constellation of dense places." [1]

This feature actually makes Los Angeles a prime candidate for mass transit. In highly centralized "hub and spoke" metropolises like Chicago, packed trains rush towards the city center all morning, while no one travels the reverse direction. In the afternoon, the situation is flipped. This is an inefficient use of transit infrastructure.

http://humantransit.org/2010/03/los-angeles-the-transit-metr...
I haven't used F# in a while, but it seemed pretty clean for OOP with a couple of caveats. You have to explicitly implement interfaces and do a lot of casts to use interface members, which is ugly compared to the rest of F#. It's also difficult (impossible?) to have circular references between types unless you cram it all into one file.

It's probably possible to convince me that the limitation on circular references is actually a feature, but implicit interfaces would be really nice to have.

If I ever dive back into to F#, I think I will treat it as "procedural first with a neat type system" and limit the use of both OO and functional features to where they markedly improve the code.
Microsoft seriously needs to rediscover the value of simplicity. I don't need to install some third party library to use tuples in python. Tuples being part of the language means it just works.
> A toll however is a far better solution. A toll applied only on specific routes on specific times will directly change the traffic pattern and will have much greater consequences over longer time.

That's a good point. I'm trying to say that it needs to be combined with additional policies (that may not even be transportation policies) that are all aimed at reducing the NEED to travel, especially long distances.
> All sources have bias

Some are more biased than others. I think that's actually what people are discussing: how biased is Wikileaks? How heavily curated is the information they are releasing? Throwing up your hands and saying everyone is biased is a lazy answer to a difficult problem.
> the "class" keyword was a huge mistake. There are no classes in Javascript, there are only objects

That's true if you define the word "class" to not include JS classes, but in that case, you can use the keyword and still "embrace" prototypal inheritance, since as you say, it's all just objects (even if you use the class keyword).

Alternatively if you use a more flexible definition of the word class, then your assertion is not true, because JS does have classes, they just are implemented via prototypes.

Either way, I don't see how your comment is correct. Is it all objects, or not? :)
There's no easy fix. Americans pay more than enough money in taxes alone for the problems to be handled better. The issue is political, legal, and cultural; and it's systemic. There are plenty of countries that treat their mentally ill populations more humanely while also maintaining much cleaner and more comfortable public spaces.

I don't see what's wrong in pointing out the obvious. If public transit organizations are prevented from even recognizing the issue because of misguided shaming, they sure as heck won't lure more drivers to public transit. And we can't expect people to fix all the world's problems before we allow them to address their immediate issues.
>Taking it as far as saying that they need new features just to serve ads, wow.

I'm agreeing with the GP comment - and that forcing updates on users that don't actually need to happen is for tracking/ad related purposes.

Few sites need the new features and many are abused for tracking/ads - which is largely why the Battery API was removed. It wasn't being used for its intended purposes.
This ideology makes laws optional and completely open to interpretation. I don't have a problem with being compassionate. Our immigration mess almost demands it at this point. I am merely pointing out the irony in wanting laws to have consequences while, at the same time, wanting certain laws to have no consequences at all. What's a law then?
I'm from the UK and it's not something that has ever bothered me so possibly a cultural thing.

That said I don't have a TV License anyway since I have no requirement for one, the few bits of TV I do watch are handily covered by Netflix.

Broadcast TV is horrible the few times I watch it when I'm at the GF's, after 4 years without it you forget just how bad.

Ironically I consume vastly more content from the BBC via their radio content (BBC Radio 4 is heroin) which is all free without a license anyway.
I failed a technical interview recently. I was asked to write a rule engine, so I opened up Google and read about all the best ways about doing that for about 15 minutes of the interview.

They weren't a fan. In the rejection email, they said I wasn't technical enough to fit in. I replied with my offer letter from Google.
always carry a sharpie
No.js do simple DOM manipulations without writing a single line of JavaScript
Here's a javascript library I recently published.

https://ifedapoolarewaju.github.io/nojs-site/

(what it does —> Helps you do simple DOM manipulations without writing a single line of javascript)
Nowadays you should do it the readable way and let the compiler detect problems for you. If you use -Wall on any modern compiler, this will be caught.

There are some weird use cases when you actually want assignment in the condition statement, but all those cases could be added with an extra line, e.g. the valid statement:

if(Foo* someFoo = getFoo()){

could just be replaced with

Foo* someFoo = getFoo();
if(someFoo){
Chicken and ribs are awesome in the pressure cooker. It only takes about 15 minutes to make really good BBQ ribs.
Yes, you can install Chrome extensions and test them but when you close Browserling, your extensions will be gone.
The number of times I've had perfectly reasonable ideas downvoted immediately on reddit...
This (references) happens usually when you need sponsorship. It is part of the visa application process so they need it anyway.
My experience in NYC was that the medallion taxi drivers were much more willing to violate traffic laws. I've been hit by a taxi, never by an Uber.
Ok fountain and venice are not going to save anybody from the free ways. People know about side streets, they're not really that much help. This problem isn't going away just like the cities revenue problem which is the only reason this is happening.
> with prototypes you don't use inheritance

That is 100% wrong. Prototypes are inheritance. Quoting from wikipedia:

"Prototype-based programming is a style of object-oriented programming in which behaviour reuse (known as inheritance) is performed via a process of reusing existing objects via delegation that serve as prototypes."

I have no idea what you were trying to say, but what you wrote is nonsense.
The US has a well-known policy of not paying ransom for kidnapped citizens abroad, and apparently doesn't even allow families to pay ransom [1]. Other governments huff and puff about it (nobody wants to encourage terrorist kidnappings), but by and large tend to bail out their citizens.

Furthermore, if you get in trouble with terrorists, I think the US passport is probably among the worst to have.

It would be very interesting to get some hard facts on this from international insurers or so that deal with these things. It's unclear to me whether that eigenvector's (fairly prevalent) opinion holds water outside Hollywood movies.

[1] https://www.bloomberg.com/view/articles/2015-06-04/u-s-ranso...
> If you want to reduce your test mass, the number one
thing you should do is look at the tests that have never
failed in a year and consider throwing them away

And that's how you get regressions. I get the rationale that these tests cover code which probably never changes, and tests are most useful for code that changes a lot. But if the guy who wrote the code left the company a year ago and then you have to change this code... it's going to be a lot easier if there are good tests.
Wikileaks seems to be supporting Trump as the lesser of two evils. Why they see the other side as more evil, is not entirely clear, or on what information it is based on. it could be they know more than we, and can't release it. Or it could be something like getting revenge for the apparent assassination of DNC leaker.
Hey DMarlow, could you clarify your question? A C# 7.0 program should run on pretty much any version of .Net after 2.0. Similar to C# 2.0-6.0.

The only thing we ever really adopted in C# that needed a new runtime version was Generics.
Oxford Street is packed with black cabs, they always seemed smellier to me. I used to work in Zone 4, and there'd be lines of them outside the station, with engines idling all day, next to the "Buses must switch off engines while on stand" signs.

The new taxi regulations are a welcome improvement [1], but they're weaker than they should be. Why are Euro IV cars still allowed as new taxis? Why is it only voluntary for >10 year old vehicles to be replaced? No doubt it was the best deal Kahn etc could get, but it's disappointing that London/Britain can't do better.

The buses[2] at least, are all Euro 4 standard or better, with the majority Euro 5 or better, i.e. made since 2010.

[1] https://tfl.gov.uk/modes/driving/ultra-low-emission-zone/tax...

[2] https://tfl.gov.uk/corporate/publications-and-reports/bus-fl...
What languages are on the road map?

Also, really really well done!
How Should We Teach Science?
There are a lot of cars on the roads. Why? People live far away from their work. Why?

Because they're not paying for the cost of the road capacity they're using.
From your link:

"a staffer tells Podesta that his Windows 8 login on what appears to be a new work computer is username: jpodesta and password: p@ssw0rd."
I assume we are limiting things to just software developers which tend to make above average salary's in most areas.

Anyway, some combination of cash on hand, liquid assets, credit, or just friends and family should be able to cover next months rent or something is very wrong with your finances. If you just mean need income at some point then sure most people are in that place, but any specific interview should not be all that important long term.

Further, for the vast majority of people retirement is based on personal savings. If you don't have several months savings by 30 that's a really bad sign that something is very wrong.
That doesn't really answer OPs question though?

He's asking about why manipulating prototypes directly is better than doing so via the class keyword sugar, and your response seems to explains why you probably shouldn't do either one.
It is only so fast, because the rest of us are in the tram though.
The general idea (open-access busway) works well, but guided buses specifically do not, since you combine all the disadvantages of rail (expensive, compatible vehicles) with the disadvantages of the bus (much lower capacity, much higher labor requirement, etc.) Brisbane is a much better example of this: http://humantransit.org/2009/05/brisbane-a-short-tour-of-the...
Most of these have to do with inefficient use of land, and ultimately can be aided with the big kahuna of fixes: a land value tax.[0] It would work to push back against restrictive zoning policies (holding costs of land go up), and would create a virtuous cycle of land values being invested back into local infrastructure, resulting in higher land values (you can get transit for free).

Donald Shoup (the author of "The High Price of Free Parking", namechecked below), has written extensively about how LVT would improve urban land use, as has Chuck Marohn (of Strong Towns, whose "Growth Ponzi Scheme" is namechecked below.)

In fact, few things seem to have a stronger consensus than LVT among economists and urban planners. Then why don't we have it?

In short, it shows the limitation of Pareto Optimality―to enact a LVT, the returns to landowners would be limited, which creates a very active special interest. Sob stories result when land is used more efficiently―people are generally moved by tales of the Old Poor Widow who can't possibly consider moving out of her ranch house that she's lived in for 40 years.

[0] https://en.wikipedia.org/wiki/Land_value_tax
Congress Is Trying to Roll Back Internet Privacy Protections
Israel has frequently evacuated its citizens, too (during Operation Solomon, they flew out 1122 pax in one B747!).

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

https://en.wikipedia.org/wiki/Operation_Solomon
I think FileVault 2 [1] has been doing full-disk encryption, not just the home folder, since OS X Lion.

[1]: https://support.apple.com/en-us/HT204837
Detailed Prisma App
Um? What? I don't own a car. Do you mean that "no one is forcing me to cross the street in front of my house?
Looks great on desktop. On my android though, it's slow, low-contrast, and a bit janky.

The desktop experience, though, is better than comparable stuff I've seen. Nice work.
> I know it 100% functions as a tax

You wish. Taxes are mostly proportional to the payer's income, or wealth, or to the value of some owned good. Instead, so called "tv licenses" are fixed, such that the poorest citizen, owner of a 10inch tv found in the trash bin, is bound to pay as much as the richest taxpayer, with his multi wall-sized home cinema devices.

In this respect it works exactly as the annual subscription to a TV service (it's actually called "subscription" in some countries) and it's clearly a remnant of the times when TVs were rare, expensive objects that were in themselves a proof of the wealth of their owners.
Nope. It's fast because the local government decided to support individual transport for once and built the tunnel complex.
It is complex and interesting. I am a novice database user. But I do know many databases use 'gettimeofday' quite a lot. Just strace any SELECT query. Most databases I have used, including Postgresql, also have to implement MVCC which mostly depend on timestamps. Imagine the hypervisor CPU and memory pressure induced time drift, or even drift in distributed cluster of database nodes. It hurts my head to think of the cases that will give me the wrong values or wrong estimate for getting the values. It is an interesting area.
Quantifind Unpacks Costco’s Q2 Earnings Miss
Looks like a very interesting and well-written essay. I'll try to read it tonight and get back to you with some thoughts. Thanks.
Perhaps have a society without insane inequality whilst we are drawing up a wish list...
djb half-proposed IM2000 as a replacement for SMTP and POP and IMAP.

Briefly: you send a message from your user agent (mail program) to your own mail server. Your mail server sends a notification to all the destination mail servers, a notification basically consisting of the headers.

The destination mail server lets the recipient know that the notification has arrived, possibly doing filtering and sorting and prioritization and stuff.

The recipient fetches the mail body from the originating mail server, and then does whatever.

The big change here is that the notifications are store-and-forward but the mail itself is not. The originating mail server needs to be up and functional in order to get a message body delivered.

Spammers are severely impeded: the message body can't be sent unless they have a reliable, traceable machine up when people get around to reading mail. Botnets won't work. Yet anybody who can run a reliable server can run their own mail server.

Mailing lists only send the full body to people who request it. Unsubscribe is actually worthwhile for any legitimate company to implement. Mailing list servers can easily implement archives by just keeping mail available.

And finally, the holy grail of Outlook users is actually implementable: you can cancel an email after you sent it and have that actually work, as long as people haven't pulled the body down yet.
Why is this slipping down the front page faster than other articles? It has way more votes in less time than the other articles.

I noticed the same thing happened last week with an article about stupid hiring practices. Is some moderator penalizing these things?
Thank you for posting this abstract. I agree they were using a very different definition of HIIT when I read the PR article. By most standards this looks like a medium intensity cardio 3 times a week with a low intensity 45 minute walk/run twice a week.
Greg sounds like me. Usually gets taken advantage of by people writing articles like this.
Air is processed differently (see: less "goodly") when taken in by mouth.

It's not too much of a stretch this could affect cognition the same way pollution does.
If you want to debate changing the role of the CIA, and if or if not it should exist, that's a different set of questions. But given what their job is, why would they want to turn that funnel of information off? It's not in their interest to do that.

However, the CIA is still a part of the US Government, and as such it still should have a responsibility to work towards outcomes that are best for the US overall. When this appears to be in conflict with their direct mission, in many cases the correct response should be to punt the decision upstairs.

You wouldn't expect the US Forestry Service to take decisions harmful to the overall country even if it made their direct mission easier, would you?
It's an advantage for the transit agency. It's a disincentive for people who wish to structure their daily life around public transit over the long term. Thus, a rail line will usually bump your property value much higher than a bus line.
You aren't going against the grain.