skysight-inc/HackerNews huggingface dataset:
> > 3. Always Be Making APIs

> This is extremely web centric.

I don't think it is -- in fact, I think its one of the few things on the list that makes a good general rule; most of any project is defining APIs, even if they are initially used only internally by that project. The readability and comprehensibility of the code in that project -- and its maintainability -- will be enhanced if that is recognized, and the same principles of API design that would be applied to public APIs are applied in general to these internal APIs. (It'll also make it easier to reuse the code later if you recognize an application in an unrelated project, but while that's an important benefit, its secondary.)
Oakland has rent control, with rates of %1.5-%3/yr. If it's a condo, house or 4-plex or under, normal rent control does not apply. Even then, the max is %10/yr, with a max of %30/5yrs.

So if you have a $800/month tenant, it will take over 15 years to get their rent up to the current market rate of ~$2200/yr.
That would require employees to actually understand how venture financing and liquidation preferences work, which is rare in my experience. Then a smart company could broadcast its lack of liquidation preference as a recruiting tool.

It's hard enough to raise money without trying to get out of standard terms like liquidation preference though. And pretty much zero Series Seed/A companies are so incredibly attractive that they'd have enough leverage.

So while I am hopeful like you, I can't really see it happening.
Kinda missing the point of C++ by using a linked-list.

If you're going to spend the time to implement an algorithm in C++ at least take the time to make it cache aware. Otherwise it's not really surprising when the performance is the same when you're doing the exact same thing.

Would be curious to see what the performance looks like with a tightly packed scene and static dispatch on a discrete number of primitives instead of using virtual functions.
It is nasty code! I started refactoring before I hit some struct-alignment bugs (fixed on later Rust versions): https://github.com/tcr/rust-todomvc/blob/tcr-wip/src/main.rs

The parent navigation needs to be replaced by a jQuery-like .ancestors() macro.

This was an MVP so I wasn't focused on code quality over features; but I'm also learning Rust for the first time, so it came out less than impressive :)
As someone who is reasonably familiar with term sheets, I feel embarrassed that I never gave much thought to the moral hazard that liquidation-preference clauses create.

Viewed from the perspective of a founder, they are a serious annoyance. But from the perspective of the public at large, they are being exploited to engage in pseudo-fraud.

Right now, the world treats a company's 'valuation' as a reliable signal of information about how much investors actually believe the company is worth. That information is then integrated into heuristics that influence various people's decisions: Will a paper write about a startup? Will a reader pay attention? Will a recruit take the company seriously? A billion dollar valuation goes a long way in each circumstance.

The problem is that our collective intuitions are using an outdated algorithm for assessing value. In theory, VCs who invest at a given valuation are providing reliable information by putting their money where their mouth is. But in practice, liquidation preference means that the official valuations attached to their deals don't really reflect the limited risks they are taking on.

A VC who invests $10 million at $1 billion valuation may officially be signaling to the world that a company is valuable. But if he insists on a two-times liquidation preference, then he is really indicating that when the whole thing blows up he wants to make sure he can get the first $20 million.

Unfortunately, that information isn't broadcast the same way to outside decision makers. Even those of us who think that startups are grossly overvalued don't give enough thought to how illusory those valuations are to the very investors whose capital is fueling them.

I hope that will start to change.
There's no either/or here. Nginx in front of Node works great.
The analysis in this article is very superficial.

Liquidation preferences do not drive up valuations. Of course, they offer "insurance" to preferred stock investors against downside risk. But they have being so for several decades in the Valley (and elsewhere) and this has nothing to do with valuations as such.

Indeed, when valuations are at their very lowest (such as post dot-bomb in the early 2000's), the liquidation preferences became so high as to be regarded as absurd (e.g., 3x or even higher). This was often coupled with the idea that the preferred stock would be participating, meaning that the investors in any M&A deal get their 1x (or 2x or 3x or whatever) back and also get to take their proportionate share of the merger consideration on the M&A deal itself.

The reason there are $1B+ valuations is primarily because the VCs believe the ventures will come to dominate major areas of commerce, will typically go public with sky-high valuations, and will continue to grow and dominate even after all that. Investing $100M at $1B valuation is risky but pays hugely if the company later becomes valued at $100B+. Yet, when a company goes public, the terms of the preferred stock typically require conversion into common stock and, in that case, the liquidation preference goes away altogether and confers no benefit on the investor.

In short, very incorrect analysis and not really worth reading.
The Evolution of Authenticated Encryption (2013) [pdf]
That isn't a fact. We are more likely to detect a strong intended broadcast and will be so for the foreseeable future.

Your parenthetical is a good question.

We ourselves have sent a message to M13, a globular cluster ~20K lya. (See https://en.wikipedia.org/wiki/Arecibo_message) The only reason? To say "We are here." The thinking behind the choice of target was that the stars are close together so for one message we get more likely reception. That thinking was flawed because stars in a globular cluster are hot, young, and short-lived, so unlikely to support life, much less complex life.

We will probably begin sending similar messages when we discover more likely candidates. We are very close to being able to detect the atmospheres of Earth and super-Earth exoplanets. If we find one that contains a significant amount of free oxygen, it will be a good candidate for life, and I can certainly see us sending a signal to these planets.

The point of such a message is that for relatively small cost, we can potentially discover we are not the only intelligent life in the universe.

Additionally, the sheer knowledge that could be acquired if both species beamed constant signals to each other about their cultures, scientific discoveries, and etc., would be damn near priceless. Even if we found a civilization slightly behind ours or on the same level as ours, there would suddenly be two Earths with both similar and dissimilar problems with both similar and dissimilar solutions to those problems. Our knowledge of the universe and our ability to solve problems would grow, even if our mutual civilizations lagged behind each other by (say) 100 years due to the distance.
You Need Product Managers; a Dev's Insight
Slight correction, EPA was not slow to act. When they caught wind of this they approached VW who had one excuse after another:

http://www.washingtonpost.com/news/wonkblog/wp/2015/09/22/an...
Amazingly, it was just a few months ago that VW's board sided with Winterkorn instead of Piech (http://money.cnn.com/2015/04/25/news/volkswagen-chairman-res...).
This uses a deeply hacked Rust stack. Take a look at this: https://github.com/tcr/rust-webplatform/blob/master/setup.sh It's also using a version of Rust that's pre-1.0.0.

Progress is being made on making this first class though: https://github.com/rust-lang/rfcs/issues/604
I think it's a good addition. We have been using varnish on high traffic servers and one of the reasons was that it had "vcl", a javascript-like language to define request handling logic. (With a lot smaller feature set and more domain specific. But powerful enough). Having javascript on nginx would provide a lot of config options for people familiar with it. I believe nginx already has Lua support so not a big deal anyway.
Yes, NASA Ames has had their huge Vertical Motion Simulator for many years. That has about 20 meters of travel in each axis. It used to have a Space Shuttle cockpit mounted; now it's mostly used with a helicopter cockpit. NASA's is a much heavier system, because it has to lug the whole cockpit around.
Yes. Not always easy to answer. Some factor of revenue growth, margins, how much capital the company has already raised, understanding the burn rate, how much has been spent vs dry powder, liquidation preferences assumption. Probably a lot I'm missing. There should be an easier way for a prospect to simulate a cap table with a simple set of assumptions.
Compelling Sunday – 18 Posts on Programming and Quality Assurance
My wife is in her 20s, so yes, she was in first grade in the 90s heh
You can omit the OO in C++ and achieve a similar code size. If that is a reasonable metric in the first place, is a question the article doesn't address.
A refurbished Thinkpad. Can anyone confirm if this is included in the factory install?
I guess I thought it was pretty common for people to understand if they don't want bundled crapware, then they shouldn't buy laptops from retailers.

Maybe buying direct from another manufacturer on the list in the link I posted or buying a laptop or PC without an OS on it solves 95% of the problem. Maybe I'm just assuming too much here.

I guess this confirms my initial point when it comes to hardware, people are not that well informed.
Trends are important to consumers and to hackers (I'm one of both), that's the purpose of the question and a huge one that matters.
Clean link for the interim until a mod fixes it:

http://www.nytimes.com/2013/05/26/opinion/sunday/breeding-th...
I'd love to refactor this to not need RC's for DOM nodes. I'm new to Rust, but I expect there's a ton of room for refactoring.
Clarification: VW does employ SCR in some models and years, I believe starting with MY16 no US VW comes without it.
One thing to consider is using ecryptfs as I do for my data at rest. It's mounted as a (mostly) regular filesystem at ~/Private (or similar) and the encrypted files that serve as the backend (~/.private) are then uploaded to the cloud service of my choice. Currently using crashplan, but B2 would be nice to create archives/snapshots of my data instead of just syncing it as most consumer backup solutions do.

This is a very low friction way to have accessible data and have it encrypted by a fairly popular mechanism.
> Some small percentage of customers are affected, but most of you have nothing to worry about.

That's absolutely not what it means practically for any of the recent outages. It has come to mean "the service is down but not hard enough for us to admit it".
Do you get sick from driving a car or riding a bus though? Because I guess you could make the experience to be exactly like that. It's supposed to feel like a normal, natural motion.
Brian Moynihan Gets to Keep Both of His Jobs
As someone who doesn't like spam, I'd rather see the spammers pay for sending the emails even if I never see them.
The last time around, they managed to leave all of their customers vulnerable to anybody who felt like it MITMing their HTTPS connections, even though they were only attempting to do some relatively minor thing.

Can we be sure that this app is as benign as it says it is? Given the history, I would not assume that until and unless it's verified.
You call up IBM. You ask for a mainframe solution for two sites. You get experts to set it up for you with your application and such. You don't worry about downtime again for at least 30 years.

You call up Bull, Fujitsu, or Unisys for the same thing.

You call up HP. You ask for a NonStop solution. You get same thing for at least 20 years.

You call up VMS Software. You ask for an OpenVMS cluster. You get same thing for at least 17 years.

Well-designed OS's, software, and hardware did cloud-style stuff for a long time before cloud existed without the downtime. Cloud certainly brought price down and flexibility up. Yet, these clouds haven't matched 70-80's technology in uptime yet despite all the brains and money thrown at them. That's a fact.

So, shouldn't be used for anything mission critical where downtime costs lots of money.
All these robo wealth advisers that I know of are basically profiling their clients and segmenting them in broad categories that are then offered a combination of passive ETFs.

By having most of the capital in passive funds, active management gets easier, and so more valuable, so you want to pay for it.

So we might be seeing a flight towards roboadvisers, but the trend won't last forever, and the equilibrium point is in a combination of both roboadvisers and human advisers.

So, the human ones, they are not really going out of fashion. They just got a little competition, as a result of the lackluster returns of some of them. This is good news for the good ones.
Arrested development: enigmatic Booleans
Moving – Self-initiated animated art project
I was impressed too. I think the key is that it injects all of the HTML at once. Compare that to e.g. the Backbone.js implementation which uses progressive enhancement: http://todomvc.com/examples/backbone/

The code can be optimized further with Closure Compiler, but I wonder if that decreases startup speed.
my parent are right-handed too but my grandma is leftie. But it seems almost everybody else didn't have any leftie in the family that they're he's aware of. I find this odd, mostly because they says it's genetics so a lot of people cary left handed genes but it's hardly "primary"/"used" (I don't know the right word).
Sony are still in business, but they're not killing it like they were in the '80s and '90s. In fact one might see the rootkit thing as just one aspect of the long slow slide they've had for the last 1.5 decades.
In a similar vein, but with physical mail, I made a donation to the local PBS TV station years ago during one of their fundraisers. They sent me a postcard with my name misspelled in a way I had never seen before. I then received solicitation mails from several other charities with the same misspelling. Nothing says "thank you for your donation" like being sold out for a few extra dollars. I never donated to them again.
> registering stronger activity in the region most associated with pleasure (medial orbitofrontal cortex) when participants thought they were drinking a $90 Cabernet than when they thought they were drinking a $10 wine

But are they actually enjoying the wine more or are they getting something of a thrill of doing something they never would otherwise be able to separate from enjoyment. Basically, did they feel like they were getting away with something?
I'm surprised the performance of the two implementations is so close. Aren't floating-point numbers in OCaml usually boxed? Is the compiler smart enough to optimize away the boxes in this situation?
I can't wait for a JSX crate on Cargo.
Every bloody vegetable and fruit in the supermarket is selected for appearance and sweetness. The bigger and sweeter, the better.

We'll end up eating sugar on a piece of cardboard, because that's where nutritional values are going.

It's really hard to eat properly, I don't see how it can be done without growing your own.
I use nginx at Neocities to serve all our static sites, and as a proxy for our front site.

I like nginx, but it has way too much of a sacred cow treatment by the dev community. It has plenty of problems, the configuration is a psuedo-language that doesn't always make the right choices and is difficult to heavily customize, and I've gotten to it be -very- unstable under certain circumstances, including really bread-and-butter things like SSL caching. If there's a bug, you'll have a good old time debugging it's massive collection of C code. It's great, but it's not perfect.

Making nginx do custom things that you'll probably need to do in a serious environment (example: dynamically programmable SSL SNI) requires craxy mods and hacks that have only recently been made available (by third parties) and heavily reduce nginx's performance. Further, they only provide purgable proxy caching via their commercial version, which costs an exorbitant amount of money. The free purger, naturally, makes nginx lock up. I wouldn't mind chipping in a bit for nginx because I want to support their team any way, but at their current prices ($100/node/month or something like that) we simply can't afford it.

I realize this is not a popular opinion right now, but node.js is completely up to the task of running a reverse http proxy. They are basically (you likely won't notice the difference unless you're running the New York Times) competitive with nginx for performance, and as a tradeoff for an unnoticable slowdown you get a full, turing complete programming language to completely control the flow of your data. Nginx under the hood is just a reactor pattern with children that share a socket. Node.js has a cluster module that uses the exact same strategy. Mind you this is from someone that has done talks critical of reactor pattern scaling.

Also, if you have blocking I/O apps, it doesn't matter what you configure nginx to do, it's still going to lock up when someone DDoSes it with slow loris connections. Make your ruby app thread safe and use Rainbows! instead of Unicorn, or you're going to have a bad time.
If phytonutrients are so good, why does the article repeatedly recommend cooking the plants? The fastest way to degrade those chemicals is to expose them to heat.
Rumor, but: https://twitter.com/om/status/444681883083735040
I'm a vim user actually! gasp

Seeing ParEdit in action makes me extremely jealous though. http://danmidwood.com/content/2014/11/21/animated-paredit.ht... I wonder if the vim plugin https://github.com/vim-scripts/paredit.vim is any good.
> The secret was kept for so long. How many programmers were involved with the relevant code? How many project managers signed off on it? Surely VW does its own emissions testing internally so some of them must have known. How high up in management did this go? It seems like it must have been quite a few. Amazing that none of them got mad and told someone outside the company.

We should not be surprised; we need to learn to expect it and manage that risk. Institutions of all types have long histories of such conspiracies to cover illicit activity. Think of the many recent financial industry scandals, the Catholic Church (and Penn State University) covering widespread rape of children, various military scandals, US government spying on citizens, IT companies spying on their users, performance enhancing drugs in baseball ... in fact we should be surprised when someone steps forward.

The #1 rule of any institution is loyalty. Rape will be covered for; blowing the whistle is a mortal sin. It shouldn't be that way but we can't deal with these problems until we accept that it's human nature, at least in certain situations.

EDIT: I don't mean to preach. A certain part of me is always surprised too.
A great product is important, but it's not enough
Once your become a $1B+ startup, your options for liquidity events reduce greatly. Fewer and fewer markets can buy your company. Often when a company has a high valuation, people think it's 'too late' to join the unicorn. If the company isn't profitable on some level yet either, it's even worse.
"Were the people who foraged for these wild foods healthier than we are today? They did not live nearly as long as we do, but growing evidence suggests that they were much less likely to die from degenerative diseases, even the minority who lived 70 years and more. The primary cause of death for most adults, according to anthropologists, was injury and infections."

There are two ways to interpret this "growing evidence". One approach, favored by this author, is to say their old wild diet was healthier and therefor those eating in such a fashion were less likely to get degenerative diseases.

The other approach is to say they died too young from injury, starvation, or infections. Had they lived longer they too might have contracted more of our degenerative diseases.

I strongly suspect lifestyle may have played more of a role than diet alone. The modern sedentary lifestyle with enormous quantities of extra calories at our fingertips is quite a recent invention of humanity.

Getting more nutrients back into our food is good. So too would be to increase the variety of foods we eat (monoculture seems to not be healthy for the environment or our bodies). But I suspect the biggest gains in well-being will come from rethinking how we apportion our days and incorporate more physical activity and leisure time into them.
This video should explain things

https://www.youtube.com/watch?v=dQw4w9WgXcQ
The benefit of this comparison is not that the languages have nearly identical performance, but that OCaml can be briefer while accomplishing the same task, with 47% less lines of code.

Saying nothing about comparing LOC in an imperative/OO language to a functional one, does the brevity actually help a reader's understanding of the code at all? It seems to me that a lot of the comparisons call out descriptions of explicit actions in C++ where OCaml does the same action implicitly.

That seems like a language trade-off more than a feature.
Why Is Art Expensive?
Of course. My surprise has nothing to do with my opinion of programmers vs other professions. Instead it has to do with the ability of large groups to keep big secrets. That's a pretty hard thing to do.
I like iPhones and Macs but Apple certainly does more than just use Spotlight searches to query the internet. They also, for example, record and log your location without telling the user and without the user taking any action. This via cellular network and not GPS, so the user has no say in what is logged.

Exactly the type of thing Lenovo does that you imply Apple does not.
The article informs us that anthocyanins are good against cancer and a slew of other illnesses. However, what little research about the antioxidant properties of anthocyanins exists is based on in vitro studies, and it's well known that anthocyanins are at least for the most part unlikely to survive being digested.

The article informs us that "one species of apple has a staggering 100 times more phytonutrients than [Golden Delicious]." There are thousands of different phytonutrients, and no edible plant has no phytonutrients, so exactly what is this figure telling us? 100 times more of a certain nutrient? 100 times more different varieties? 100 times more by total weight? I guess we need to buy the author's upcoming book to find out, if at all.

This doesn't look like any kind of evidence-based complaint about the deficiencies of modern food; it looks like the kind of pseudoscience used to promote unnecessary supplements and overpriced organic food. And feel-good books about medicating yourself by a judicious choice of the "right" foods.

The author feeds our fears but not our appetite for real, credible information.
They'll probably start installing NOx emitters in their cars - with defeat devices that will make them active only during tests) - in order to bring Teslas in line with the rest of the industry.
I bought an S4 (i9500) within the past year since it's the most recent Exynos that Cyanogenmod runs on. I was only interested in Exynos since the application processor is isolated from the baseband, so that my phone isn't pwnt-by-design by the cell network. You'd think there would be more demand for this these days. Hopefully the deprecation of carrier-specific radios and adoption of LTE will help us there.