skysight-inc/HackerNews huggingface dataset:
I think this is a case of two ways to hear "write all the tests first."

If you read that as "write every single one of your tests, then write the code", then you see it as a strawman and not the point of TDD.

If you read that as "before you write any specific line of code, you write the test for it first", then you are likely to see that as the same as TDD.

I intended the second reading. I can see how both are accurate ways to read it, though. Apologies for the confusion.
TDD is about creating tests for your requirements, and then writing code to make them succeed. The reason it doesn't work is because most medium/large feature changes don't fully realize their scope and requirements until they're well along into development, making the earlier tests an unnecessary drag.

Writing unit tests at all is independent of TDD. After you get the feature working, you write those to verify the program does what you think it does and to think through failure scenarios. Most importantly they make sure that future changes do not break the functionality you just implemented. I think asking for unit tests is important for any true bit of functionality in a large system.
It would help, but messages are sent to the API first. We aren't sending messages directly to Kafka from the Internet, of course.

So we can get duplicate API submissions regardless of whether or not we enabled transactional productions into kafka from a producer.
Might be an adblock issue? (some blockers treat direct access to a website and loading an anlytics snippet as the same)
SQS is not "exactly once", so might not meet their requirements.
On Swedish rotary phones the 0 was on the other side (one pulse)
While not affecting humans directly, an indication of the far reach of Chernobyl is that sheep farmers in parts of Norway still have to medicate the herd.
Whatever - the point is, not everyone is as enamoured with the CIA and its purpose, as most Americans appear to be ..
You are probably blocking this site in your hosts file. Since it's a tracking tool.
How "its creators" designed it to work, and how I find it to work in practice, are pretty different. I've found that having two people understand a spec to the level where they can reason about it (and that the best artifact for demonstrating that reasoning is a test suite) is the most straightforward way to build reasonably correct code.

(I mean, heck. Theoretically, Agile's "creators" designed it to be useful and helpful to developers. Cue sad trombone sound.)
They are normal people, who follow normal psychological patterns.

In your root cause analysis, 99% of the time the answer should not be "human error". An error that one human makes will be repeated in the future by another human.

The problem is setting up patterns and processes in the working environment that are aware of these human limitations and that work around them. The air travel industry is a _great_ example of what happens when you don't simply blame the human, but look to fix the true problems that caused the human to make a mistake.
I'm trying to figure whether they would start with the main trilogy or the prequels.

The trilogy has super frequent cast changes. They might be able to do a season per book, but even then some of the books go through way too many characters to be comfortable for a format like that. Maybe do like a three-part episode per section in the books, in a sort of mini-miniseries? That condenses the dialog-heaviness and allows for some emphasis on the "action", although it would still be very cerebral compared to most series these days.

If they start with the prequels, they'd have a more stable cast. Not to mention, the prequels have a lot more action-y scenes and are a bit more fast-paced. The main downside is that they might lose audience if they go through the prequels and then do the main trilogy; many people would find the later seasons excessively boring, I think.

So I dunno. I can see ways where it might work, but it would have to be well-executed and planned out thoroughly. I think I'm going to try to be hesitantly optimistic, haha. We'll see what happens.
A couple thoughts:

- Why did you copy/paste this on the bug tracker (https://bugs.launchpad.net/ubuntu/+source/base-files/+bug/17...) and find/replace 'Ubuntu Community' with 'HackerNews community'? Doesn't that seem a little bit patronising to both parties

- Why didn't you actually address the issue? You said a lot of words but at no point did you say whether or not you would be removing this "feature" OR keeping it.
FWIW, this isn't universal usage. When I took physics in college we used "visible light" to refer to the visible spectrum, and "light" to refer to EM radiation generally. I know that others have had an experience similar to yours, though; this seems to depend a great deal on the preferences of the people who taught you.
If the OP doesn't mind expanding a little on this bit, I'd be grateful.

> If the dedupe worker crashes for any reason or encounters an error from Kafka, when it re-starts it will first consult the “source of truth” for whether an event was published: the output topic.

Does this mean that "on worker crash" the worker replays the entire output topic and compare it to the rocksdb dataset?

Also, how do you handle scaling up or down the number of workers/partitions?
Sure, if the relationship has reached that point, she probably wouldn't be wearing a ring. I'm just curious what everyone thinks.
> [I]t’s pretty much impossible to have messages only ever be delivered once.

IIRC, it's provably impossible in a distributed system where processes might fail, i.e. all real systems.
Somewhere out there is a girl spamming the hell out of online dating services, looking for this dude. Let's hope when their bots meet, they're programmed to exchange numbers.
A brief history of the iPhone
Launch HN: Feather (YC S17), painless furniture rental for people who move a lot
Feather (https://rentfeather.com) is a furniture rental company, setting out to provide stylish, affordable furniture to people and startups that move frequently.

I've moved 5 times in 6 years living in New York, and each time I spent an overwhelming amount of time at IKEA buying, schlepping, and assembling furniture I didn't exactly want. And at the end of each lease, I found myself with furniture that didn't travel well to my new apartment, and often had to scrap it, only to return to IKEA again to furnish my new apartment.

It was a cycle of buying things I didn't really want, that didn't really last - and I'm sure many of you have gone through the same trouble.

That gave me the idea for Feather. Click a few buttons and your furniture is delivered, fully assembled, and placed in the room of your choice. And importantly, when you're ready to move, tap a button and we'll come and pick it up.

We're excited to help people live more free and flexible lifestyles - and would love the feedback of the HN community!

Thanks all,

Jay, Founder & CEO
"But I challenge your assertion that we'd need 'big growth just to survive'"

You say this while literally telling me that your big hope was to get a pile of money so that you could "bend" your growth curve towards reaching bare profitability after about another year. When would a realistic assessment of your actual growth curve say you'd reach that point? Was there enough customer base that you could actually reach to get to that point, much less beyond?

I won't call your plans "dumb", but the whole startup approach is one that almost always fails, even compared to starting other businesses. It's really hard to call it "smart".
All the comments I read here — like most of the discussions that involve speculating the intent of alien civilizations — make the assumption that an entire civilization can only ever have one agenda...

I mean just consider HUMANS finding an alien civilization first; Do you think the outcome will be the same whether the US gets to them first, or the Russians, or the Chinese, or the Japanese or Indians?

Will every nation on Earth have the same reaction and the same plans for dealing with the alien civilization? No, right?

..I think a civilization capable of interstellar travel will have EVEN MORE factions and subgroups with conflicting interests.

Interstellar travel implies a high likelihood that they have already colonized multiple planets, and it’s very unlikely that the governments of multiple planets would agree with each other on all matters, even if they could communicate fast enough, let alone on how to deal with alien civilizations..
That's great. In my experience, most TDD has looked like "We're going to need a function or class to do this, so let's write a test that calls all those methods first." Which is absolutely ridiculous when we could just be using languages that have concise semantics to describe what they actually do.

For example, the last HTTP API I wrote in Haskell has no tests. The proper request/response is ensured by the types alone. I've had multiple jobs where I spent weeks writing tests to do the equivalent thing with a nodejs API (the body should contain this, the headers should look like that, etc.)
This sounds somewhat ominous ... will Manning keep the option of DRM-free individual book purchases going into the future?
I've always wondered about US health insurance -- why can't the physician give me quotes about my personal obligation for various treatment options? It's frustrating that as soon as it's time to come up with a bill, poof there it is but prior to the bill being generated all I get is shrugs?

Is it because the insurance coverage algorithms are too complicated? Because the different entities involved in a single treatment plan is too complicated to navigate? Because physicians feel that cost is orthogonal to medicine and they prefer not to be involved/prefer to recommend the ideal treatment based on a predicted outcome? All of the above?

It feels like if there were a particular hospital group / physician group that had this feature, they would attract a lot of attention. Just imagine, "Your initial differential diagnosis will not exceed $150 and we'll discuss treatment options or more conclusive diagnostic tests afterwards."

All I've heard so far are physicians who don't accept insurance but instead have a straightforward "menu" for common items, which is interesting but not what I think most people want.
(edit: incorrect, my bad, see thread)
I used to like embedded DSLs a lot too, but then I realized they (mostly) were just the builder pattern + a lot of "extra" syntax (never written anything large enough in a Lisp or Haskell). The builder pattern feels more readable and has fewer context switches when writing code.
"Exactly once" model of message is theoretically impossible to do in distributed environment with nonzero possibility of failure. If you haven't received acknowledgement from the other side of communication in the specified amount of time you can only do one of two things:

1) do nothing, risking message loss

2) retransmit, risking duplication

But of course that's only from messaging system point of view. Deduplication at receiver end can help reduce problem, but itself can fail (there is no foolproof way of implementing that pseudocode's "has_seen(message.id)" method)
Good. Now the tiny minority (https://www.washingtonpost.com/news/dr-gridlock/wp/2016/03/0...) of insufferable NIMBYs who spend all day lodging airport noise complaints have something real to complain about.
"150 dates without success" --> what happens when engineering meets the red pilled world of dating.
Yammer cofounder Adam Pisoni just raised $7.5M in Series A funding for hi
sqs has fifo queues which claim to be exactly once
These points are relevant to health insurance, but in the second footnote of the article, he explicitly states that he is talking about property and casualty insurance.

In a pure sense, what we call health insurance isn't really pure insurance. To give a simple example, in property insurance, I pay let's say 2% of the cost of the item per year to protect something that the insurance companies deem to have a 1.5% chance of getting destroyed. That 0.5% difference is their expected margin.

But in the case of health insurance, I get that coverage for catastrophic events, but I also get discounts on healthcare for being on a plan. Insurance companies negotiate better rates with providers, which makes the market vastly more complex.

So that's why the author of this post says explicitly that he's not talking about health insurance.
Likely I don't know enough about the components involved, but I've wondered for years about the viability of a solar cell as the bottom layer for AMOLED screens since those don't need a white/reflective back layer for lighting behind an LCD panel. Even if the diode electronics blocked a big chunk of the light I suspect there are plenty of places where a low usage always charged phone might be desirable.
Draw Together with a Neural Network [Google Magenta]
https://news.ycombinator.com/item?id=13069775 was posted as the nature of the problem began to occur, and has many interesting discussion on the underlying problems involved.
Out of curiosity, do you use many pieces of software regularly that you last updated in 2007? Would you use IntelliJ 2007 for work today?

I don't know: $3k for ten years of updates to a key tool I use for work -- that seems low. Like, well below my budget for coffee.

$2k/yr total does seem high. That's higher than my costs for my various work-related subscriptions. But if that $2k provides tools you convert into 50x or 100x that in income... I mean, it seems like money well spent.
> I guess Google can choose to comply, what benefit is there for Google in that?

Because the court can impose sanctions that restrict Google's ability to earn revenue in Canada?
I think this is probably a stock photo just used to add a photo to the article.
If there's not trickery involved then they wouldn't be wearing a ring, surely?
" have seen the "old" way do nothing but fail and the "new" way do nothing but succeed."

When I look at TDD I see a lot of success but also a lot of fail once people start pushing it too far. To me a fail is when the mock becomes more complex than the real system or a system can't be refactored because the refactoring of the tests takes too long or the tests are just so complex nobody wants to touch them.

This reminds me a little of the situation with OOP. It solved a lot of real problems but then people said "only objects" and you ended up with stuff like replacing a simple switch statement and 100 easy to read lines of code with command patterns that had the implementation spread out over 10 different files.
An overview of FLP Impossibility

http://the-paper-trail.org/blog/a-brief-tour-of-flp-impossib...
Some airlines (e.g. Lufthansa) also install GSM microcells in their planes.

They allow you to completely disable flight mode, once you're at cruising altitude -- and therefore out of range of the terrestrial cell network.

(Whether your cell provider will actually allow your phone to associate with the in-flight microcell is a different issue...)
`O` would be whatever the type of the reducer is, so for `list` in the lisp you're using (is it Clojure? The function params look wrong) has a type signature `(A, B?, ...Z?) -> A | List(A, B, ...Z)`.

So the transducer in this case would have the type `List(A, B?, ...Z?) -> A | List(A, B | List(B, ...etc))`

It's not three different types, but it is necessarily recursive, which seems tricky.
What is a cyber weapon? Knowledge of a vulnerability? Exploit code? How do you propose regulating it? Much of this has been tried before and ended up hurting rather than helping.
As far as I know, there is no strong relationship between race and lifetime insurance expenditures. Hypothetically though, yes, insurance companies should be allowed to make optimal decisions based on full actuarial information. Anything else, besides being sub-optimal and confounding the effectiveness of market mechanisms, would amount to the effective intentional transfer of wealth based on race, which is morally much worse than rational actuarial pricing that incidentally involves race as a predictor.
This is the best feature of Simkl, it recommends new stuff to watch every day and helps you know that new episode of your favorite show has aired.
Fastcgi is pointless?
I wonder why I don't see more about electric hub motors. I remember seeing Protean Electric get 937 hybrid miles to a charge in 2006 on a converted Mini Cooper (http://www.autoblog.com/2006/07/21/pml-s-mini-qed-boasts-640...), and they later showed that you can use this on a pickup truck (http://inhabitat.com/protean-demonstrates-that-its-electric-...), and they were supposed to bring this technology to mass market in 2014 (https://cleantechnica.com/2013/04/17/proteans-in-wheel-elect...), but I haven't really heard anything from them.
Is nobody wearing rings just for fun?
What really annoys me about Django migrations
Now that Trump threatens the free flow of cheap immigrant labor, now the giant tech corporations care about American children. Funny how that works.
Disclaimer: You may not agree with this. A downvote does not change that. A comment and intellectual conversation goes much further, however.

A quote from the article: The insurance industry is built on mitigating downside risk.

Maybe they should have everyone agree to use computers with sensors which can create accurate maps of everything people have ever done, might do, or should do. Citizens will be so much better off with this new system of fairness. We'll call it insurance instead of goverment.
Any bad implementation of something is bad. Sounds like immutability in JS is just badly designed and implemented, in a way that makes it difficult and slow to code with.

Don't generalise you're experience of a thing if you've only tried its bad implementations. Like don't judge Monads until you try them in Haskell. Don't judge immutability or DSLs until you try it in Clojure, etc.
I thought about that when I read the book. How weird to write about such grandiose ideas as interstellar travel and then go on and describe the wreck of Titanic as something marvelous and mysterious.

Has he written about Titanic in his other books too?
You need to do something destructive to study the scale of real world disruption resulting from such offensive and to motivate victims to report infections. They could probably go with the old-school format c:, but ransomware seems to be all the rage nowadays.
I was not aware that docstrings were controversial in Python.

Out of inspiration from Python docstrings, I have been occasionally working on a JavaScript structured documentation format that I call Pliny: https://github.com/capnmidnight/pliny

It's all about creating a database of documentation that can be rendered to arbitrary formats. The documentation pages on the website for my big project are all completely generated by Pliny.

I made it executable code rather than comments because I could iterate faster on the idea if there were a simple syntax to construct the database structure at the same time as writing the documentation, as well as by including the right setup script, I could have the database live-queryable in the REPL without any additional processing step.

Unfortunately, there's nothing to verify that the documentation matches the code. There is a lot of type information there that would be super useful to exploit to statically analyze the code, but that'd be a big project to add that. It'd almost be easier to convert all of the code to TypeScript and recreate Pliny to extend a generated .d.ts typings file, so the doc gen could use just the typings file as the database.
In France some new players come like https://blog.alan.eu/alan-the-first-digital-health-insurance...
Sometimes we get so wrapped up in could, that we don't spend the time to ask if we should.
151st date is the charm.

This is a bit like living in NYC for both parties: there is so much volume that you can't get past the first minor disappointment.

I think the volume prevents you from focusing on one person to figure out what you want.

You might want to focus some kind of algo on the second part of the dating: selection.

Don't just go on your gut or how you felt after the date. You need multiple dates to figure that out.
There is always the chance of counterfeit books. No Starch had that problem, mentioned here a while ago:

https://news.ycombinator.com/item?id=13924546
How a female tech entrepreneur reverse engineered a way to combat sexism
Just wanted to add, I absolutely love manning tech book's quality. After buying few books from packt, I'm never going back to them.
Bad idea.

I have not interviewed many people yet, but already during one lunch (!) interview (where I don't ask any questions), a guy was so proudly talking about his achievements at his previous job in quite generic terms, that I've got an impression he was teached the whole story, rather than actually lived it.

Later he was not hired. According to (trusted) others in the interview loop he did not know how to do any basic shit.
I did have bad experiences with bad lecturers as an undergrad (hello, here is a handout, now I will project the handout on a screen, now I will read what's on the screen without any elaboration, goodbye), but they were the exception. Obviously this depends hugely on the exact institution in question. And yes, many are now increasingly functioning as blandly corporate battery student farms...

> Yep, and if you're not on that track, the access isn't there.

Actually I'd also be interested in such a scheme, now that I'm exploring ideas far away from my original research area. Although if you have a bona fide interest to discuss something technical and specific with an academic who has the relevant expertise, I've found they can be pretty approachable, even if you email them out of the blue to ask for a chat... but I do have the right sort of background to do that I suppose.
Did everyone already forget how hollywoodization of "I, Robot" turned out? Nothing good will come out of this, methinks.

Not every good book needs a movie made out of it.
I am not sure if others share my experience, but by spending some time on Clojurians and talking a bit about what we do, I often get polite "interest" - like "we are a nice company, offer free food and gym, why don't you come visit and say hi" - so my feeling is that there is an interesting market for senior Clojure positions. YMMV.
The Princeton Coursera class has an entire section on it
Didn't think the first comment went through. Oh well.
I’m a fat, bald, short guy whose only quality is that he isn’t an ax murderer.

Cart before the horse. Also, smiley faces are kinda creepy in your first message.
I can't seem to find any studies on Chines-American or Chinese-in-the-US views on the Chinese government, but my anecdotal experiences are different than yours. I find a more typical view of, "It's a difficult situation, and there's not much we can do about it" and not "The Communist party is the best and democracy is terrible".

And on the spectrum of Complete Communism->Complete Capitalism (no country is completely on either end), I'm not so sure China is too far off from some completely western countries. According to the Index of Economic Freedom, China is only slightly lower than Croatia (EU Member), South Africa and Italy[1].

[1]http://www.heritage.org/index/ranking
Whether or not the energy is "clean" now should not keep us from working toward advancements in this area. We all know that we want "clean" energy, and many people are headed that direction, but this is a massive object to redirect and it will take time. Be patient and keep encouraging the production and use of clean energy. It will happen. :)
I might bombard you with some questions if you're not swamped with work. You don't happen to have any plans to attend Defcon 25 this year in Las Vegas by chance?
I also wonder what percentage of phones actually get put in airplane mode. I don't think I'd bet that it's as many as 50%.