skysight-inc/HackerNews huggingface dataset:
I have to to disagree.

Tests _promote_ good coding behavior. Yes, people can circumvent them. Yes, people can write terrible tests. Yes, people could theoretically write great code without tests (but most won't).

But if you're doing TDD with the intention of doing it right, you'll find code smells early, you'll tend to write things in a more change-tolerant way the first time, and you'll get some extra confidence in your code.

There's a reason switching to TDD from not using tests takes time and effort (general estimates say 6 months before you reach previous productivity levels) - this is the time in which you learning to code better. After which, your productivity tends to exceed your previous values.

I went through this a couple of years ago when TDD became something that moved from "it sounds cool but I don't have time for that" to something I could really do. It was hard to learn, but in the end I found that instead of writing code to pass tests, I wrote code that I liked, and the tests promoted those skills/behaviors.

Much of the pain people have from writing tests (in my limited experience) stems from:

* They are trying to write their tests after writing the code, and while their code may be "okay", it's not as free of side effects and external state as it could be == hard to test.

* Poor general education as to HOW to write good tests. I recall a few weeks where I tried to reconcile advice from person who said "don't have tests for simple existence" and another that said "write tests as you code". Eventually I figured out that the red/green/refactor cycle means you CAN and SHOULD delete redundant tests, but there's no reason not to write them as you start.

* Tests can be hard for exploratory code. Again, this experience. Once you find the proper balance, tests are not only NOT a cost, but a BENEFIT.
You miss the point. It's easier to stop prisons being built then to set people free. But it would probably be easier to deal with the whole problem if in fact we were a lot stricter about ensuring proper prison capacity, construction and staffing were followed.

But then again, doing any of that is a lot harder then egging on the narrative that prison is actually meant to be a mad max wasteland, and pretending we're totally not responsible for turning a blind eye to the rape, murder and gangs we let happen there.
No, they consider your sex and gender to be determined by your brain, not by your body. Traditionally, society thinks that they have a choice. They have told us that they do not.
> victim-less crimes

I think I found the double-think.

But absolutely, incarceration is used as a tool of suppressing "undesirables" according to the writers of law. The co-conspirator of Watergate is making waves online again this past week for having talked about how the Nixon administration planned the war on drugs as a means to destroy hippie and black communities through mass incarceration and prosecution.
It was a joke, I'm not sure what garlic would be added to a password.
That headline really is something.
Thank you for this -- it will be put to almost immediate use.
Taxi Dispatch Algorithms: Why Route Optimization Reigns
You could setup an IFTTT "Do" button [1] with the Maker Channel, which allows you to make an arbitrary web request. Then have a server running locally that can receive the request and trigger the recording. Nodered [2] would make setting that server up pretty simple.

[1] https://ifttt.com/products/do/button
[2] http://nodered.org/
Shrinking it all and putting it on the coffee table was a nice trick.
These are two murderers who decided to kill each other. There are good reasons to leave people like that in actual solitary, so that they're unable to hurt others, but killing each other was never a human response. Nor, given their history, can I glibly conclude that prison made them that way, when all evidence is that the causal arrow points in the opposite direction.

I may be somewhat biased. My mother was murdered--brutally and deliberately. The man responsible also threatened grandma. He's serving life in prison now. I have good reason to fear for myself and grandma if well-intentioned people let him free.

If intentional, cold-blooded murder isn't a good reason to keep someone away from others, then I wonder just how society is supposed to integrate that behavior.
Those are the ones you hear about. Then tgere's the ECI level Snowden leaks on US companies "SIGINT enabling" their products. It said the FBI "compelled" those that resisted. SIGINT enabling is backdoors. The method of compelling isnt revealed. And Lavabit case was similarly expected ti keep secret of it all.

So, you are told that it happens as you describe. We cant be assured of tgat given leaks.
Ah...I misunderstood your comment and I misunderstood how it works. I thought human sperm had no mitochondria. Turns out that is dramatically not the case, but the sperm's mitochondria is killed off by the egg, and that's exactly what you said.

I had thought you were saying the sperm had mitochondria and the egg killed THE EGGs mitochondria off.

My mistake.
Some of the reasons why I delete unit tests from time to time:

- Often the quality of unit test code is a lot worse than the production code.

- Some times people test too much in a single test (ie. more than one unit) making it very hard to change the design of the application.

- Some times a unit test misunderstands how the application is supposed to work or the requirements change.

- Some times a unit test tests something too little or too trivial.

- Some other test is already covering the case.

I personally don't weight 100% test coverage as critical. Often other aspects of QA in application development are more important (i.e. integration test or documentation).
How come there aren't any Intel Atom based single board computers at a similar price point? These are basically phone or tablet class hardware, and if you go to any of the chinese stores, like Ali express or Banggood, there's plenty of cheap Atom tablets with Windows and Android dual boot. Wouldn't an x86 board be much easier to use with Linux and all sorts of drivers?
An alternative to npm, written in Go
Huh, it's almost isomorphic to the problem of old code: total rewrite, or careful maintenance and update? One's a lot sexier and more interesting for the people doing the work.
That's pretty standard in most game engines, Lua is a nice intersection of fast + memory efficient.
Does look cool. But a bit pricey. And last I checked, they didn't let you have access to your data on your watch.
> How openly racist does a person have to be before they are no longer welcome in polite society?

Apparently more openly racist than "wrote things under a pen name 17 years ago".
My full time home internet connection is a grandfathered Verizon unlimited data plan (I work full time from an RV). Unfortunately, some websites (like Netflix) try to be "nice" and limit quality or provide the mobile only version of their sites based on knowing that my IP is on Verizon's cellular network. This makes for a terrible experience for me on some sites (not many fortunately). There should never be throttling like this without an option to select quality.

As data becomes cheaper more and more people are going to ditch their cable/DSL companies and just use mobile data and websites need to be prepared for it.
Entire industries have profited from BSDL licensed code without contributing anything back. This is the point of BSDL.
A fund that is closed to the public, yet whose results are made public, fueling other mediocre funds. Some woukd suspect there is a catch. ;)
Thank you for your response. I would like to take back the inferences I drew re: centralizing supply. I'm a bit sensitive over some governments making rainwater collection illegal & ecosystem-friendly landscape design; due to some of my affected law-abiding friends having issues with it.

> The same could be said about building reservoirs, or even collecting rainwater.

That's true. Responsible water stewardship requires systemic discipline that is case-specific.

One of the principles of regenerative agriculture & similar philosophies (i.e. permaculture) is to create edge effects to create the context for a more robust ecosystem. Pooled water, especially when designed to maximize edge effects (i.e. increasing the circumference of the shore), is a tech that contributes to creating robust ecosystems.

Harvesting fog seems to fit in many circumstances.

> These things are practically the definition of a decentralized technology.

Well said & I agree. Harvesting fog seems like a legit tech option in concept.

> And, cool video, but your proposed "better solution" seems nonspecific and naive.

I was illustrating an example of how a small change has ripples. If history is any guide, tech (technology & technique) has unexpected benefits & drawbacks. Every ecosystem is different. As you said...

> The problems are different in every ecosystem, and therefore, so are the solutions.
'NO PLATE' and 'NO TAGS' are taken but 'NO TAG5' is available if anyone wants to take their chances.

-edit 'MI55ING' is available too.
>in most other apps you specify values by touch actions and the crown does nothing

This was only a minor point in a much bigger comment, but I can't help thinking this is going to change. The alarm app works differently than new third-party apps because Apple made it, and Apple is way better at making Watch apps than third-party devs -- even aside from limitations on the Watch API, it's not surprising that the UI from developers is inconsistent and (right now) favors basically making a little tiny version of an iPhone app, touchscreen and all. I bet this changes in relatively short order, or at least improves to the point that you can get as consistent an experience on the Watch as you'd get between apps on the phone.
That sounds insulting to the scientific research itself. Comparing the huge amount of research Microsoft Research division does to whatever Apple does to produce their consumer devices is really ridiculous. You can hold back on a 1-inch increase in screen-size until it's "market-ready" but you can't apply that to the real research areas.
I wish they would throw a dialog or interstitial that would let people know about it.

The more people asking why they have a "reduced quality" video in 2016 despite paying $90 for their phone plan the better.
The problem we are seeing this election cycle is the undemocratic consequence of first past the post. The American republic has degenerated so direly that, as is par for the course, the American people will once again be given only two choices for president (and likewise, at most two choices in every other ballot position they are eligible in this November, besides the most local of elections) of which very few non-hardline party members will be in favor of.

It should also be very alarming how many primaries in the Democrat primary this year have demonstrated extensive systemic corruption of the party. Be it 7 "random" wins in Iowa, to past presidents using their authority and influence to shut down polling locations in Massachusetts for hours, to just this past week Arizona having its polling locations cut by 70% that produced waiting lines over five hours long, on top of mass relocation of voter registrations and many voters losing their party membership recognition in a closed primary.

While of course I will still vote for every position I can for the person I want to win (and never for the lesser of two evils as I am provided by the establishment) the system is not orchestrated to enable the people to actually do anything any more. It would require a tremendous amount of public action, and for almost all issues - including the ones this article brings to light - Martin Niemöller's quote "First they came ..." rings true moreso today than I could imagine possible. There is tremendous apathy in America, as people only become aware or active when it is too late and their liberties and freedom have already been taken, and for the rest as long as it is not impacting their lives they will ignore it because it is "too much work" to do anything about.
Your statement is not accurate in business terms. The valuation for an acquisition is not directly related to the revenue generated by the company/product acquired, but also by market conditions, cost of building it in-house, time-to-market cost of building it as opposed to having right now (this also gives a strategical advantage with competitors), and the quality of the team who will now join SnapChat, among other factors (like, but not limited to, multiple acquisition offers at the same time from different companies which in turn triggers an auction, thus a higher price).

Edit: Plus the company has probably been acquired with an almost all-stock deal, which given the current valuation of SnapChat at 16B (imho inflated at this current point in time, but with potential to grow in the future), makes it very cheap too.
Unfortunately those settings affect all devices and all connection methods. That often isn't desirable.

Newer versions have a mobile data saver option, but I don't think they have rolled this out to everyone.

It is a pretty annoying problem and I've never understood why they don't just provide the user with some simple options in the client.
That's not the point you were making, actually. At least, it's not the interesting one. I admitted checks and balances are imperfect, and that's not really controversial.

To say otherwise, I believe, is to try detract from the actual implications and make them seem more benign and less dangerous

That's your point. And I think it's a bit silly. Saying "the FBI wants to break into the iPhone" instead of "the government wants to break into the iPhone" is just more precise. It doesn't imply there's any less of a problem. The fact that you have other parts of the government to appeal to, and which may disagree with the first part of the government, is important! If you're involved it gives you a hint as to how you might proceed. It tells us which parts of the government we might have to restrict or promote.

What, pray tell, is the advantage of thinking of all these different and differing institutions as one monolithic entity, or of calling them "the government" as if they were?
Punching up or down doesn't matter in this case, as long as someone's punching.

Fascism is not something which should be left to fester.
Fun to see state of the art algorithms juxtaposed with 90's internet aesthetic (auto playing audio ;)).

Hopefully lightfield cameras / camera arrays will become more common in the near future.
well, if you order a fishmac and you don't get it, you get to the manager..
These could've come in handy after my JavaScript Fatigue post blew up (I called it the "Abramov Effect").

Instead, I just declined to read a single response, and ignored as much Twitter noise as I could.

Like many others, I post to document my experiences or write something cathartic.

The feedback of respected peers has already happened by then. After the impact, the signal to noise ratio is too low.
Remember that social skills beat technical skills everyday of the week. If you want to have a high-paying job that is the area you should focus on.
UNPAYWALLED: http://pastebin.com/raw/KTF69Jja
then you get a interesting, new, prisoner dilemma puzzle.

if you are the leader of a big gang, and still have power on the people outside, you can make enough gang-newcomers go to jail until you are free.
A two-centimeter demon named Azazel
Has magical powers that dazzle.
But those who would strive
To get them derive
Nothing much and are beat to a frazzle.
I have a Palm IIIxe and it lasted months on a pair of AAA (not AA) batteries. (Still have it but don't use it. Can't believe I used to keep it in my pocket. It's huge by today's standards.)
In the job itself is fine... unless you want to version control it. This is a historical Jenkins weak-point. The plugins that exist to try to solve the problem are clumsy.

This Jenkinsfile is their solution to the problem. I'm saying it's not a very well thought-out solution, because now they're forcing us to put this thing that's not part of the project in the project, if we want it version-controlled.
The original intent of incarceration was to remove those from society who we could not trust to peacefully participate in it.

That intent is naturally lost today - the mass incarceration of drug users being only a portion of a larger pie of injustice and horror committed on a daily basis in the US that includes other atrocities such as police brutality and civil asset forfeiture.

Obviously in cases where prisoners kill one another, in a sane world, the constable and other administration of the prison would be held accountable, as would any officers who betrayed their duty to let it happen. It is always someones fault you put individuals who we deemed untrustable in the presence of others to be placed in circumstances to harm others again.

Unsurprisingly, the reality is that locking people up is incredibly expensive. We spend more per prisoner than we do per dozen students in public schools each year. The practical costs of incarceration are huge, let alone the social and economic ones. It should be unsurprising the people are less receptive to tremendous taxes to pay for, by far, the highest incarceration rates in the world.
Hey, this looks pretty impressive. It also makes me want to imagine some of the video game uses of the technology, like say, how cool a Five Nights at Freddy's game would be based on this tech...

To some degree, it also reminds me a bit of a certain villain from Teen Titans...
> Seems like you are missing the point of pipeline and the Jenkinsfile concept, namely that the pipeline is part of the SCM.

I guess I missed that Jenkins is heading that way. It's what Concourse does and I'm a fan of having CI/CD live in the repo.

> For me the real advantage in pipeline is the organization folders support. You can tell Jenkins to scan all the repositories in your GitHub org and automatically create Jenkins jobs for any branches of any repositories that have a Jenkinsfile... PRs will automatically (subject to basic drive-by hack protection) be built and the commit will be tagged with the result.

For PR-building on Concourse, the resource I'd recommend is: https://github.com/jtarchie/pullrequest-resource

> we are providing some opinionated defaults (which is a change from the 1.x series)

I see this more and more in the Java ecosystem and I think it's a good thing.

> I might have a different view on that claim, but hey I'm significantly biased.

Me too! :)

> OTOH my personal view is that for the 99% of jobs pipeline is overkill

I am starting to head in the other direction. We've historically fallen into creating "big ball of mud" build systems because it was just too hard to easily decompose and manage them as smaller units that could be rearranged quickly and safely.

Concourse makes it so trivial that the gradient for what is easy points in the other direction. It is less painful to lay out a pipeline (a graph, really) of builds that are composed of small pieces, than to have one gigantic Build To Rule Them All.

In Pivotal the practices around Concourse are evolving extremely quickly, because teams are discovering that it's really easy to delegate more and more to it. You start with a simple git->unit->feature->deploy pipeline, but soon you realise it's easy to assemble all sorts of things. The best is yet to come.
“Pendulums”
You may be underestimating the overwhelming power of spam. That is, you're attributing a fear of negative attention. That might be true, but I suspect the concern has more to do with abuse. Don't underestimate the power of abusive users who have disproportionate power.
Same with Ruby. So hard to understand what is going on - and unlike Scala there is not even any and typechecking to help.
Have Apple’s rivals finally stopped copying the iPhone?
For remote work, what are the advantages of this over a good video conferencing/screen sharing type of setup.
Sell software pl0x.
Don't forget Baidu
Once we get there anyone will be free to re-enact Kingsman at will
When this tech bubble pops so many people are going to be screwed. 20-30bn for a business that spends more money than it makes, riiight.
As a runner I can say that the Garmin is not pricey from my perspective because it is optimized for running. I got a new Garmin Forerunner to replace my old one even though it's about the same cost as an Apple Watch. I have no interest in buying Apple Watch because I would need to carry an iPhone while running, and I have no interest in strapping this big clunky phone to my arm when running.
Though it looks like the cool kids these days are reading Samuel L. Delany.

Edit: chirality error, Samuel R. Delany
> but will send screenshots as well as videos once I do.

Sweet! Thanks for following up, I'll keep an eye on this thread.
https://m.reddit.com/r/netflix/comments/2fkylx/hidden_netfli...

Works on many devices. Try also: the konami code.
I've heard a couple stories about telecom companies having good results buying defunct natural gas rights-of-way and leaving up the old signs that say "Warning: underground gas pipe"...
The concept of 'antifragility' really seems to be popping up a lot in the media I consume via HN. I can't tell if antifragility is trendy, or really a novel, valuable idea of systems analysis that, until recently, hadn't converged upon a single descriptor.. Likely parts of both!
Adding unit tests is often hard to do with legacy code

Especially if you have to write them in COBOL.
Creating Startups to Change the World w Spring's Keith Ippel – TheLaunchcast E20
Yes I will sell you a t-shirt. How many would you like?
One that I wrote a while ago, which might or might not do what you want: https://github.com/jsnell/json-to-multicsv

Note that the mapping from nested / hierarchical JSON file to CSV file(s) is not as obvious as it is the other way around. There's some configuration involved. I wrote a blog post about that particular aspect: https://www.snellman.net/blog/archive/2016-01-12-json-to-mul...
Build once deploy anywhere to six different platforms sounds too good to be true. Code existing on King servers sounds super sketchy. I do like that you script in Lua, which is pretty standard in gaming. Still, I'm probably going to stay away from early adopting this.
I see they learned from their previous campaigns, where they focused on the ability to "work from anywhere" and were criticized[1] for creating a strange, dystopian vision of all work and no leisure. Now, they are focusing much more on the personal aspects in their marketing, even though their primary market is fairly likely to be business.

[1] https://signalvnoise.com/posts/3683-microsofts-dystopian-pit...
Open source code is a bit like having a child.

It will not always go in the direction you expect, it may even run away from you to live with somebody else, but it is still your child.
readability is always more important. The "magic" is just a sign of bad code or code that is too heavily abstracted. why have everybody learn this so called magic when you can be more explicit? this is all religious programming views but i personally am pretty tired of things being way too abstracted. it makes getting shit done take too long.
If only they had just looked for the whole key:

ts = parseInt(jsonstr.indexOf("\"ts\":")+5);
Not just audio, but an autoplaying 219MB video file no less.
Not to mention that blockchain entries (at least for bitcoin) are anonymous but unique to each user. This adds metadata, and could allow an adversary to unravel your connections.