skysight-inc/HackerNews huggingface dataset:
I believe that it's a useful conversation to have -- if we are all just trying to ship code, when are we going to have the discussion of what makes code readable? What makes code reliable? What makes code quicker to deliver?

Further, as a automated test advocate (whether or not it's TDD or unit or mocks or stubs or whatever flavor you like) I want to walk into projects where I don't have to deal with changing code without having a good and fast test base to minimize the potential defects. If TDD gets us to that point, I'm all for it.

I don't care how you create software unless I have to use it or inherit it.
Is there any evidence that this has already been exploited in the wild?
I have great respect for Gary Bernhardt. I think he is missing DHH point here, which as I understand it, that:

tests can be an end in itself

I think this is reasonable argument on DHH part that we want to spend more time writing actual code, instead of going through movements of TDD. That doesn't mean TDD is not valuable.
Did you just propose a disk encryption scheme whereby PBKDF2 is called on a sector by sector basis?

Later: FWIW, it looks like the parent comment was edited after I wrote this.
Humorously, I already did create a software tool that does isolation automatically. It's called Dingus and it's five years old: https://github.com/garybernhardt/dingus.

It was a terrible idea. It only worked well if you applied the same discipline that you would've had to apply when doing it manually, but it lured you into a false sense of security when using it sloppily.

(Dingus is fine when used as a standard mock/stub/spy library, but the automatic isolation features are dangerous and are documented as such in the README.)
Considering we don't have any industry standard bodies of knowledge, yes it probably is a good idea, because we don't have anyone who can lay out a definitive answer on many of our preference based arguments.

i.e. these arguments will never end if there is no definitive answer, or body to pick one.
Have you checked Rogaway's AEZ? Its core could probably be repurposed to disk encryption, being an AES-based tweakable wide block cipher.
I still use Screen every day. I tried to switch to tmux, but tmux's copy mode isn't as good as screen's. For example, in tmux you can't search case insensitive in copy mode, which is really a must for me. I think that's probably the biggest reason I didn't switch.

Am I the only one who extensively uses the copy mode?
And in the early 60's there was the Dean drive (in Analog).
Absolutely not, that would NOT SCALE.

Again, you're making accusations, shifting the conversation without providing evidence. Talking with you is pointless.
I don't understand. It's BitcoinWisdom's default chart, and BitcoinWisdom is used by many traders in the Bitcoin community. What relevance does logarithmic scaling have here?

I wasn't saying the price was going to continue to linearly trend to zero. That would be impossible. I was saying I was an idiot for gambling that it wouldn't trend from $1100 to $400.
> A few things have been proposed: verification projects, and grace periods.

Is glorifying (and sending grants to) data collectors on the list?
If you expressed it in terms of computation, information and entropy, there presumably is a value that could be put on the processing required to outcompete the evolution of a given population of bacteria.
Whilst the concept of setImmediate is nice, the current implementation in IE isn't properly integrated with the rest of the event loop — resulting in broken behaviour when you use it in combination with setTimeout [1], DOM events, etc.

In contrast, using MutationObserver results in correct behaviour on all modern browsers and relatively minimal delays — between 0.002ms and 0.007ms according to an OS X only micro-benchmark I did last month [2].

And, yes, it would be great if we could call a builtin instead of hacking on top of MutationObserver, but it isn't that ugly:

if MutationObserver
$div = root.document.createElement 'div'
observer = new MutationObserver tick
observer.observe $div, attributes: true
scheduleTick = ->
$div.setAttribute 'class', 'tick'
return
else
scheduleTick = ->
setTimeout tick, 0
return

In conclusion, I agree that a feature like setImmediate would be great. But given IE's broken implementation and a viable workaround in modern browsers, I see no need to rush it. I'd rather they focused on: new features like Object.observe; improving the performance of old features like Object.seal; and finalising some of the ES7 ideas like exposing the event loop!

[1] http://codeforhire.com/2013/09/21/setimmediate-and-messagech...

[2] https://gist.github.com/tav/9719011
Yep. Most product groups still have individual offices with doors, though new hires are usually doubled with someone else until they have a couple years' tenure. There has been a recent migration toward team rooms in a few high-profile groups. Meaning ~12 people together in a bigger room, as opposed to "open plan" with dozens or hundreds in one huge space.
Drug resistant bacteria (by the articles own numbers) has killed less people per year than if you were to amortize the cost in lives of Germany's very-powerful state (and then you can add the 49-78,000,000 people killed by Mao). I, for one, am proud that Libertarians look for ways to avoid coercion and want to promote voluntary means. Bans don't work for drugs - I hope people have realized this by now...

Sorry, but I find the "its such a good idea! lets force everyone to do it!" mentality quite irritating. Most solutions come from outside government. Instead of throwing huge capital at a fruitless ban, we should instead use the money on useful research. (such as the link about bacteriophages below: http://www.metafilter.com/134210/Imagining-the-Post-Antibiot...) Or even an educational campaign.
It's an acquired skill, and it requires a team that is willing to do it - the trick is to lower impedance toward writing good tests.
do the words "callback hell" mean anything to you?
So when I "derive a new key" for a sector when it gets "rewritten", that key comes from...
This is likely to get traction because generally:

- people have already signed up with Facebook

- people don't trust app developers with their FB data, and don't trust app devs not to post crap to their timelines

- people hate signing up for another service again with email and password (you have to give out your email, you have to create/reuse and remember a password)

The more open question is if it will cannibalize FB logins or get incremental people to sign up with FB (people want to do this anonymously but didn't have the option and gave up).
My company (Surge Forward) is 100% telecommute, so an office can be whatever you want it to be! Some days I work from home, or if I'm having trouble concentrating I might go work out of a coffee shop. It works perfectly for me.
Ironic that your reply to a piece about strawmen is nothing but a strawman. Of course he is not meaning what you're saying, he's talking about context switching. If I have to wait 15 seconds for my tests to run, I start doing something else and my thought process around the problem is gone.
What are the legal issues around this? If I rent my hard drive and someone puts child porn or pirated movies on it (even encrypted), could I be liable?
Is there another example of amazon doing discentive pricing?

Every example of their pricing I've seen has been cost plus, cost plus, and/or cost plus.

Thus it seems at least an order of magnitude more likely that the $.03 reflects some cost.
SAS (As in the analytics company) tries its best to give offices to everyone (not just devs).
Okay, this is beyond silly. Still ignoring tape.

Explain how BDXL, a new format, which has never proved itself beyond a few years, which costs $45 for a few hundred GB, which AFAIK has very little data on re-writability (which is probably terrible and close to one-time use) could be any more profitable or reliable, or useful than tape.

I don't buy it. Tape would be the logical short-term choice to get started, because Amazon could just go buy an off-the-shelf tape library and add tape as they needed from Oracle, versus again, engineering their own BDXL library on the expectation that it would cost less than tape, taking into account factors such as:

1. Reliability and degradation
2. Supply
3. Cost
4. Reusability/Re-Writability
I don't understand. Are you not continuing to think about the problem (or the next problem) while tests are running, regardless of how long they take?
Why don't just learn algorithms and other computer science "direct" approach by analysing problem and solving it in most officiant way?

This doesn't really say anything; your statement amounts to "Why not do it properly, instead of using tests?" - it should be obvious why that's invalid.

In particular, unit testing protects against "minor changes with unexpected consequences." This happens all of the time. "analysing problem and solving it" will not make a bit of difference. Do you expect that people who use unit tests are instead "ignoring the problem and not solving it?"

A test ratio of 2:1 isn't a big deal. It serves as a record: "Here's a specification of what my code does. You can automatically verify that it does what it says." Think of it as part spec, part test.
adobe used to give every employee an office. don't think that's still true today though.
Google Drive Realtime API developer here.
https://developers.google.com/drive/realtime/

If you're trying to build your own Google Docs, you might want to consider using the Drive Realtime API, which is based on the same technology as Google Docs.

The Drive Realtime API has a wide range of mutations built in for common data structures:
- Maps (last writer wins)
- Lists (insert, delete, overwrite)
- Strings (insert, delete, overwrite)

We also support arbitrary data structures including trees and graphs.

For modeling cursors, we have "Index References" which are effectively pointers to a specific element in a string or list. You can move them around on the client side and we have all of the transformation logic worked out so that concurrent edits don't make them point at the wrong position.

Because the data is stored in Google Drive, you can create, share and organize files using the standard functions in the Google Drive API. There's also an easy-to-use REST API for importing and exporting data as JSON.
There are multiple kinds of antibiotics, right? Couldn’t one globally rotate the different kinds of antibiotics so that germs have a harder time adapting to it?
Promises are good solution to tackle call back problems. But once you spend a little time with Functional Reactive Programming, You never want to go back to any imperative solution.

Functional Reactive Programming eliminates every scenario where you need a promise. FRP models "past, present & future" in a sense that you never need to use any "promises" library again. It brings such a higher level abstraction to your "time" dependent code, that you don't have to maintain state in your code.
BaconJS is one of the simplest FRP library which brings simplicity & power to your JS projects.

http://baconjs.github.io/
Basics of Securing against Cross Site Request Forgery in PHP
Ask HN: Will I Regret Choosing Python Over Clojure?
Because I've delayed learning a high-level programming language for too long, I have not developed a strong bias toward any in particular. I will code a web app for my current project whose main function will be a search engine for a local index of profiles. From preliminary research, I'm convinced that Lisp or Python are great choices. I've begun learning and will become proficient in both (I've chosen Clojure as the dialect of Lisp). I've found a lot of very good resources to get me started with Python, and therefore I'm leaning more towards Python with Django for my web app.

Some smart hackers evangelize the power of Lisp over other languages. The main advantage, as I understand from my novice perspective, is the ability to create and use macros. Is there anything I should be aware of that may cause me to wish I hadn't chosen Python over Clojure to code the prototype? In my ignorance, I may be asking that you infer too much before answering. If you need more explicit info for my specific situation, then please ask. Thank you very much for your time.
well the .com and the twitter account is taken, those are usually the first things I look at when deciding on a name.
Show HN: Life Goes On, my side project game that turned into a release on Steam
>Most commercial office space seems to be set up in the open office/cube farm setup.

There are exceptions. The previous startup I worked for (in SOMA) used conference rooms as two-developer private offices in our first building and gave all developers two-person private offices in the second one. I don't think the offices were chosen for the purpose of having private offices either (specifically I think the second office was chosen by the company that had just acquired us.)
Can you clarify why state machines are easier to debug?
CircleCI - I signed the lease on Monday :)

https://circleci.com/jobs - see also http://blog.circleci.com/silence-is-for-the-weak/
"If we run out of phosphorous reserves, we can just dredge the rivers of the world to get it back!"

Yup, that sounds sane to me.

"If we run out of easily accessible gas and oil reserves, we can just destroy the arable farmland of the world to find more!"

Yup, perfectly sane.

"If we run out of fresh water, we can just recycle sewage and run solar-powered desalination plants."

Says the economist who has never looked into the power required to desalinate sea water at the scale required to support a city.

Next he'll be saying, "oh, we can just power the desalination plants and hydroponic sheds with nuclear power" (which just means we'll run out of fissile material faster).

No mention of 'sustainable production' in his screed at all.

There is absolutely nothing sane about that essay. You can't live on money. You need food and water, and for the sake of food security you can't rely on power supplies other than the Sun to grow that food and bring you that water. A nation dependent on its power grid for food and water is ripe for terrorism, industrial sabotage or corporate oligarchy.
It's really that simple.

That's stupid. It's an interesting discussion about software best-practices. A bunch of well-respected people are writing about what they do, what they see as the upsides and downsides of both approaches, and arguing for why their approach is best.

This is content which is appropriate to the audience, reasonably interesting, and technically useful.
If you'd ever seen Gary code, you'd know that he is a very quick thinker (almost nonhuman like) that requires very fast feedback loop to keep up the pace.
If you move on to the next problem, then your test finishes and forces you to move back to the original problem then you just had to do 2 context switches. If you never had to wait for the test result then you could have eliminated those.
A new way of working | Cosmin Harangus
DHH's complaints certainly aren't without merit, but they are naively formed.

I did a conference talk called "Boundaries" on this topic, and how a particular type of disciplined functional style can mitigate it to a large extent (https://www.destroyallsoftware.com/talks/boundaries). I think that we can probably have (most of) our cake and eat it to, just as we have so many times before: microprocessors reliably perform computations; TCP reliably delivers over unreliable networks; etc. But we're not going to get there by throwing up our hands.
Sorry for assuming C++ or C#
The quote Gary references is:

> "The classical definition of a unit test in TDD lore is one that doesn't touch the database."

So nope. Not confused. ;-)

That said the conference he referred to happened in 2000 (http://martinfowler.com/articles/xp2000.html) and his claim is that Mocks didn't take hold until long after.

There's a big swath of time between the rise of the xUnits and the modern Mock fancy he doesn't cover (or provide citations for).

Considering the early TDD mantra was red-green-refactor, saying you could do it with all Acceptance tests is a bit of a stretch. I mean tomato tomatoe I guess, but that's certainly not a definition I've ever come across (and it would certainly run afoul of Uncle Bob's 3 rules of TDD).

edit: BTW, c2 has a wealth of information on the subject: http://c2.com/cgi/wiki?TestDrivenDevelopment

Try looking for how many times "design" is mentioned on the page, and in what context. That's how TDD was sold to me. Is your component difficult to test in isolation? Then the design is flawed. One of the big advantages of TDD early on (and it seems to hold true today) is that it helps you write testable code (in Units).

BTW, I didn't suggest XP and TDD were the same. XP2000 was a conference. You can believe me or not I guess, but back in the day all you had was your xUnit. Selenium was a twinkle in someone's eye and local databases were not the norm. It was definitely all about the Units (and I think if you read the material of the time the emphasis will be pretty obvious).

You might also consider that http://en.wikipedia.org/wiki/Test-driven_development#xUnit_f... pretty strongly associates TDD with Unit Testing.
Designer Duds
Looks fun.
Don't need your "help," don't care.

"It's unreasonable to debate with an unreasonable person."

Bye.
Facebook’s "Move Fast, Break Things" Era Is Over
Yes, whatever your security problem is, I'm sure some NIDS will clear it right up.
I completely agree that Bitcoin is very high-risk. Even if you respect its "dangers", you could still lose whatever you decided to risk.

Which is why you don't risk more than you can afford to lose. People in the Bitcoin community says these words over and over again.

Nonetheless, if you're ideologically sympathetic to Bitcoin, just because you don't risk more than you can afford to lose doesn't mean you don't risk anything. Most of us can afford to put in a few hundred, or (depending on net work) even a few thousand.
ESRI: http://www.esri.com/ the GIS company had private offices for employees. At least last time I interviewed with them.
> Can you tell me of any currencies or commodities, from antiquity to 1971, that had any price or value associated with them due to "value as a remittance network"?

Can you tell me any currency or commodity, from antiquity to 2009, that is a trust-less distributed payment network? No, that's the point, Bitcoin is something new to the world; your trying to compare it to those things is invalid.

You don't seem to realize Bitcoin is a new asset class that's never before existed, it's simultaniously a stock, a currency, and a commodity because it's a distributed decentralized corporation providing a trustless distributed decentralized service that is of extreme value to anyone on the planet who wants to move money around. Your thinking is stuck in the past and thus blinding you to something new.

> You say my argument is "trivially invalid", but people realizing Bitcoins are worthless has made Bitcoins worth half what they were four months ago.

No, markets generally retrace sudden gains, that's simply the nature of markets and it says nothing about Bitcoin other than that people are speculating on it which was both known, planned for, and has been occurring since it launched. Speculation and hoarding are necessary to create a market cap large enough to function as a payment network.
Wow, I really like the idea of the small changes the multiple prior attempts caused to the level being integral to completion. This is jus the kind of game that looks interesting to me. I'll be sure to grab a copy.

Out of curiosity, are you on any other markets, such as gog.com?
Rob Pike used coroutines for the Go Template implementation, instead of a standard lexer/parser:

Video: https://www.youtube.com/watch?v=HxaD_trXwRE

Slides: http://cuddle.googlecode.com/hg/talk/lex.html
No longer true. The new campus in Utah is very much an open design with low-walled cubicles and large open spaces.
> That specific article is spreading FUD and perpetuating a hoax. There's no evidence whatsoever that Ms. Presley's case is related to the DoJ.

Who cares if that particular case was tied to Operation Chokepoint? The fact that Operation Chokepoint is real and really targeting perfectly legal businesses should be enough!

> Bitcoin certainly has made itself quite a reputation for being the currency of choice for scammers, hackers, drug dealers, online gamblers, and child pornographers. Merchants who consider accepting BTC might care about those things.

The US dollar is still more popular for those sorts of things, AFAIK. Maybe some merchants will be dissuaded from accepting it for a while by those things. The question is whether enough merchants won't be dissuaded for Bitcoin to reach a critical mass of acceptance and use.
You're mostly correct, but there were lots of warning signs about MtGox, far before they folded - the repeated suspension of USD withdrawals chief among them.
MongoDB Elastic Deployments Now in Beta on DigitalOcean
True, but this is not Altman's point. He clearly refers to operating costs, not capital costs. (This is why he later talks about free electricity, not free hardware.)
No, I really don't want to think while coding 90% of the code I write. I listen to audiobooks and podcasts while coding to keep my mind occupied while I code. I want instant feedback, else I'm going to quickly check reddit or HN, and then I've lost 15 minutes to a 45 second test.
> Classical TDD does not involve mocking or other forms of synthetic isolation by definition. We even use the term "classical TDD" to mean "TDD without isolation".

I wish there was a source on this paragraph. According to this talk that often refers to Kent Beck's book ( the talk: http://vimeo.com/68375232 / a good summary of the talk, in text: https://groups.google.com/forum/#!topic/growing-object-orien... ), you are supposed to isolate from the database.
What a flippant, uncivilized, unconstructive comment.

Defense in-depth, every little bit helps.
It actually feels like a bunch of experts in our field having an intellectual debate about an important aspect of the profession in public. If that's not relevant, I don't know what is.
Patent cases are handled in federal court, so they are appointed, just like in other federal courts.

This is the infamous East Texas court: http://en.wikipedia.org/wiki/United_States_District_Court_fo...
Not tape.

http://www.zdnet.com/amazon-launches-glacier-cloud-storage-h...
I know it's the default.

Compare: http://bitcoincharts.com/charts/bitstampUSD#rg360zczsg2013-0...

What looks like a huge fall to you in the old graph is actually revealed as a rather small fall compared to its history. Your point in the text on the graph is still correct, but it's not quite as bad as it looks there.
RSpec has been one of the easiest tools I've ever learned to use. Their documentation is beautiful (and their demo code is actually written as tests), and it's pretty easy to dive right in to writing tests.
The english language strikes again!
What about this?
http://www.cdc.gov/parasites/toxoplasmosis/epi.html

Animal-to-human (zoonotic) transmission section:
"Cats play an important role in the spread of toxoplasmosis"
http://en.wikipedia.org/wiki/Direction_finding
Thanks for that, I wasn't aware there was a built-in to handle strings where there's mixed ascii/hex content.
ah yes this emerging threat currently kills fewer people in a single year than an entire genocidal campaign did over the course of six. excellent point, as i'm sure deaths from previously preventable infections are sure to only drop in the future. we wouldn't want to coerce large scale farmers running indisputably torturous husbandry operations into preventing a spike in infant mortality now!

by the way, the phage therapy described in the comment you linked was largely developed by the soviets. lol
Your not watching him think, it's a few takes before he get's the presentation the way he wants.

Edit: it's a little misleading, but "All of my screencasts are recorded live after doing many takes to smooth the presentation out"