skysight-inc/HackerNews huggingface dataset:
The difference for me is whether I'm trying to reduce MTBF (mean time between failures) or MTTR (mean time to recovery).

I'm in the first mode when I'm writing high-quality code to solve stable, well-understood problems.

I'm in the latter when I'm doing almost anything else. E.g., prototyping, exploring, pushing out a MVP for user testing, adding a quick-and-dirty version of a feature to get real-world feedback.

In the latter mode, I'm very tolerant of errors just as long as I can diagnose the problem quickly. The way I start is to catch exceptions at a very high level, tell the user something nice, and have myself paged. If something blows up, I fix it quickly. There's no sense in making code robust if I don't know if it will exist next week.

Basically, the two approaches are the same only if you have infinite time and money. Google does, so I guess Go makes sense for them. But if this fellow's take is correct, Go's much less interesting to me as a general-purpose language.
Corduroy.py
Isn't Mozilla funded by Google?
Do you mean that restarts help the clutter and distraction that error handling brings? Or is there something else that
makes the condition system less fraught than exceptions?
Listening Closer, To Find The Next Big Interaction Idea
Getting into a keto state is by the far the fastest and most reliable way to lose weight. Probably also hard to maintain as it can be hard to get that full feeling like you do with carbs.

It is the same diet which professional bodybuilders use. And they know EVERYTHING about how to lose weight since every % of body fat they lose can make a massive difference in muscle definition.
microUSB hasn't become compatible with new standards, it has been hacked to allow the pinouts to be repurposed for new standards.

The implication of this article is that the Lightening port can be repurposed, without changes to the device's hardware, simply by providing a new cable and software.
Ask: Where should I host my new technical blog (about Android development)?
One problem with a $2.99 cable isn't that it "might break," it's that it might zap you with a "potentially-lethal 340 volts" among other less severe but still significant drawbacks (which most people wouldn't ever consider).

http://www.arcfn.com/2012/03/inside-cheap-phone-charger-and-...
Sounds like Government-as-a-Platform would be useful here. SF rolls out an API to access BnB permits of the kind you would need to rent out an apartment. Except since they claim AirBnB is illegal, it would be a blank text file ;)
Instead of insulting people and declaring that you can't convince them, try posting some useful information about CL condition system and why you think it's better than everything else.
This. The frequency of posts on Go is getting to spamming levels.
Tough bone to choose to chew on, PadMapper, Craigslist has insane resources and antitrust cases can go on FOREVER. Maybe they'll SCO it and get some Ballmer dollars along the way to put in the gas tank.
Austin is hipster central-its where all the young RoR and JS devs go to do startups during SXSW. Don't know what that has to do with transit, and I'm pretty sure Seattle has more transit than Austin. Oh well, that's the problem with crowdsourcing.
>>Sometimes it just doesn't work, no matter what. Sometimes you're just meant to be big.

The only people who are "meant to be big" are those with hormonal imbalances. And even then, modern medicine can address most of their problems.

>>Sometimes you just can't fight your body and you're meant to be who you are.

It's true that you can't fight your body if you eat more calories than you consume. I noticed that the only part of your diet you listed was the type of food you eat. What about amount? Do you weigh your food, or have some other type of calorie estimation method? If not, you'll eat like a pig (especially at your activity level) and never realize it.
A couple of points spring to mind:
1) public transit is not a very big advantage. It is useful only in the handful of US cities that have decent public transport. In Paris, one of the great public transport cities in the world, google still doesn't provide public transport information. In 2012. Apple's solution, to rely on 3rd party devs for this has every chance if providing a solution to iPhone users before Google.

2) But even assuming you're one if the lucky few for whom Google provided public transport information, you can still use Google maps from the browser. You can even add an icon in Springboard for it, giving you full access to google itineraries. The only thing that has really been lost is street view.
> With RAII types that have value semantics (ala shared_ptr) what is so difficult about memory management in C++?

For me, C++ memory management becomes challenging in the face of concurrency. Particularly when you write applications that are event-driven, instead of thread-based, and you've surrendered to an event loop. It becomes challenging to keep track of object lifetimes.

Just my 2c.
What do they have to do with military dictatorship? They filled several important roles in Pinochet's government in Chile and Videla's government in Argentina. There are more examples in Latin America, but these were the most horrific.

My comment was unrelated to communism -- I don't need to be convinced that communism is bad.
A valid point, but it is conceivable that a similar clause would find its way into larger licensing/development agreements. Turn-by-turn could have been some gem thy wanted to hold as Google's one-up on any client built using their own API. Truthfully, it would be dumb of Google to give away everything, and keeping turn-by-turn (or even just a broader navigation scope) is something I can see as the ace in the hole they hold onto regardless.
San Francisco seems like a great place to be a tenant and a horrible place to be a landlord. The San Francisco Tenants Union (http://www.sftu.org/) publishes a Tenants Handbook that is very fascinating. You'll be surprised how many rights tenants have and how few landlords have.

I can't help but wonder if there would be more housing supply and therefore lower rents if the city was more friendly towards landlords.

(I'm a renter in San Francisco)
Samsung corporate is $100bn+ and the mobile is only ~$20bn, so this is a valid point. On the bigger issue here, though, it does seem if apple is being a bit emotional in the whole thing. They are the most profitable/successful company in the world right now. $700bn is insane market cap, its 2-3x GE under Jack welch. They should be 100% focused on kicking ass with product. Buy some map companies or whatever. Spend $1-Xbn on that and they will make it up in marketshare and stock price.
you'd have to be schiz to read this entire thing
Vim. I enjoy the flexibility, macros, and great snippets. I am also able to code new features and tools for myself to use making future coding quicker.
Either way both methods are not sustainable which is the point I'm trying to make. 1250kcal is way too low and as taligent said, keto is used by bodybuilders to lean out a few weeks before competition, it is not something they do for long periods of time. I think the key to prolonged success is to make permanent lifestyle changes that you can commit to for the rest of your life.
I think if he had lived for another five years, he would have made peace with Google like he did with Microsoft.
Unlawful actions make you proud to be a Kiwi? This whole ordeal reminds me of the BP oil spill, sure they'll help clean up, but lets not ignore what lead us to this situation in the first place.
Meanwhile, I'm spending money just to improve storage of my current things - kitchen storage, organising everything inside a garage/shed, water tanks, wine storage, data storage. Yet I am usually happiest digging around in the garden or checking my plants and seeds every morning to see if they've grown 1mm overnight.

Great to get perspective and reset once in a while.

I'm keen to read on my e-reader or tablet, and simplify the things around us. My wife loves the look of books on shelves, "like a library". Instead of converting old CDs and then storing them away, we have shelves of CDs that never get touched. Can't win every one of those tame disputes.
http://techblog.rosedu.org/from-0-to-cryptography.html
I actually feel more confident paying for this app's service than I do using the competing City Maps by Lumatic, just because the economics are clear and I know the app won't suddenly change to a new revenue model after I've been relying on it for a year. $5 / year for always-up-to-date routes seems more than fair.
Here are the slides from Andrew's great "10 things you (probably) don't know about Go" talk:

http://talks.golang.org/2012/10things.slide
Serial Entrepreneur Says “Quit Your Tech Job and Get a PhD in the Humanities”
They have over $100 billion in the bank. With that amount of money, there will always be someone willing to partner up with Apple.
tl;dr: old business is unhappy about new business models disrupting their income. Instead of adapting, tries to scare people with legislation and provisions in lease agreements.
My grandfather once told me that sometimes the only way to change something was to break it. He was talking about civil rights laws (he was a US Attorney in Memphis) and explaining to me that even though it was "obvious" that the laws that were on the books didn't make sense, people who liked them that way could talk all day and all night about how some day they were going have everything they needed to change them and somehow they never had everything. It was a strategy of 'agreeing' to change so that nothing would change. People grew tired of that, and they started willfully, and with forethought, breaking the law. It forced the issue, it forced the conversation, and things can be changed in a courtroom whether or not the people making the laws want them to change.

That really changed the way I looked at civil disobedience. I was young, Dr. Martin Luther King's assassination was something I still remembered as a news event. Strangely when I read about AirBnB and Uber and their "reckless disregard for the law" I think about my Grandfather sometimes. Would I rather live in a world where it was illegal to rent out your room to someone who needs a place to stay, or is that just between you and your temporary roommate?

I don't doubt for a minute that these companies are pushing and perhaps crossing the line into illegality. I think that because they do that we are going to be able to finally have a conversation about whether or not the public good is served by these laws, and make some changes.
Does anybody have any (other and more thorough) resources for 'learning how to learn'? Perhaps book suggestions? One of my goals is to become an autodictact / polymath and I'm seeking way to make the process of acquiring new data / skills / learning more time-efficient and more organized (and systematic).

Are there any kind of 'learning theories/strategies' out there? I'm not seeking resources per se (I know about Khan academy, MIT OCW, 'bookportals' on Tor etc), but rather some sort of systematic method similar to the one described in the link but perhaps more detailed and (maybe) anecdote-/experience-based.
> I don't think they actually gather user-generated map content via iOS maps

I've noticed my search suggestions changing from one day to another (including misspellings), so apparently Maps does have some form of crowd-sourcing built in.
Just so we are clear- The point of the post is to inform AirBnB hosts that their guest could possibly stay forever. Would you not want to know about that? Nothing to do with pro-landlord or otherwise.
That article summarizes parts of the book Coders at Work, which has all sorts of other interesting stuff in it. The book's web site gives brief bios for all the programmers who are interviewed in it: http://codersatwork.com
Stock-pics aside, I think the content is mildly-interesting and a good starting point.
what did you expect from people like this (CEO): http://venturebeat.com/2011/10/27/airbnb-spam-allegations/

Side note: really low ball from PG that he is willing to get his hands dirty to deal with someone like this, just in the name of unsustainable profits.
Does this replace the homescreen like Apex Launcher and Nova Launcher? It doesn't seem to be that kind of launcher, from looking at the screenshots.
Yes but Mozilla would drop google if they wanted to, they could probably get a decent chunk from microsoft for making bing search the default(I think they use Yandex as the main search provider in russia for a while).

Chrome competes with firefox but mozilla has no beef with google.
I guess what I'm trying to say is that syntax is probably the least significant difference between a Lisp like Clojure and your average imperative C-like. So you can make incremental improvements to the syntax, but since it's not going to significantly alter how and what kinds of programs you write the way immutability and purity do, I don't see it as all that worthwhile.
It would suck if it launched today with someone else with a product like Google Maps is today. At the time, maps was fantastic.
If only there is a way to register using an email address. This would help businesses to upload their items/offers.
Of course there is a difference between an "index out of bounds" error and a network connection error: one is a programming error and the other is not.
I know this is supposed to be a gimmicky product but it actually works just well enough (still less practical than the play/pause button on the keyboard) that the novelty factor makes this fun enough that I'm constantly using it over the physical buttons.

I can't see this beating a keyboard for stuff like browsing the internet but it'd be great for controlling music, or maybe air-drumming.

Great job guys!
I'm not sure, like-kinds of small business always cluster together to solve logistic problem. The side effect here is that its a race to the bottom since all of these guys are doing pretty much the same thing. Its not sustainable even on the coast, I think.
Has Apple peaked?
I would argue that there is an obvious correct answer for array indexing and nil pointer dereference. Go could have been designed to work like the following:

x, err := *p

Where err is nil unless p is nil. And for array indexing:

x, err := a[n]

The runtime could do its bounds check and return (zero, IndexOutOfBoundsError) if the check fails, where zero is the zero-value for the type. It seems to me that these solutions are perfectly workable except for the massive code-size/verbosity explosion they would induce.

In such cases, the code should effectively prove that p is not nil and n is within bounds before performing the risky operations. Maybe a good plan is to always validate input first so that you can write expression-oriented code that only fails in the case of programmer error.

A situation from my experience was a recursive transformation where an intermediate call had no good way to deal with an error except pass it along to its caller--so I used a panic within the package for that. In hindsight, I think a better solution may have been to validate the input in an earlier pass so that the recursive transformation should always succeed.

So, in cases where the program can validate inputs first, it should do so and then be free to use compositional code that panics when the validation was broken. In cases where validation cannot remove error conditions, error-returns should be used.

Reserving panic for programmer-error, as luriel recommends in his reply, seems like a good maxim. I think I'll try to use that from now on.
Definitely something to keep an eye on, but I'm a little concerned about how the website shies away from even mentioning that it's a Linux distro until you dig in pretty deep. Rather important information if you want to know what software will run under it.
Can they use that in magnetic plug?
Agree, I like the article. It would be a pity if the stock0-pics put people off.
ShiftEdit - Online IDE
Tangent: I know that that comment is more of a need for self-deprecation than an actual opinion, but the new brazilian standard plug is not a disaster at all. It's a clever, much safer design, based on an international standard. Every product made in the last half-dozen years fits it, and by now most commercial spaces and every new residence has them. Lately I'm having more trouble with sockets/extensions that aren't updated than the opposite...
Given how much TomTom charged for their navigation app long after GPS stopped being a high cost luxury product I wouldn't be surprised if they demanded too much money from Google.
How does google force Apple to ship broken software again? I've forgotten....
The app looks interesting with a unique UI. It is certainly hitting at the right time for iOS, and considering that the transit directions in the old Google-powered iOS Maps app were never very good, this has the ability to give users an even better experience.

The supported cities seem strange to me, however. In the US, the first two cities you would develop transit directions for would be New York City and Washington, DC, as they are No. 1 and No. 2 in train/subway use in the country and having by far the best transit. After that you would do the second tier of Chicago, Boston and San Francisco. Then you'd look into less transit-friendly cities.

Houston, which is pretty much a giant suburb, is a strange pick to go before more transit dense cities. I do see that the app makers want data in a public GTFS feed. But users won't know what that is. It's up to app and service makers to work with cities, not users. They just want something that works.

I say all of this, because the goal of any app launch should be to maximize user uptake and publicity. Skipping major transit cities like DC and Seattle for launch and instead including Houston, San Diego, etc. seems like a wasted opportunity. Shooting up the iOS most popular charts is the best path to success on iOS and city selection, and thus user availability, would be pretty critical here.
My opinion: I'm not a fan of Python.

* It's really slow.
* Most people write their code statically, but it's dynamically typed language anyway.
* Things like '__init__'... what?
* Having something you can see (whitespace) be significant is a bad idea.
* Even worse, the community likes to use spaces instead of tabs, which makes the 'significant whitespace' a significant problem.
* With the exception of Flask, important design patterns and lessons: DRY, SOC, DI, SRP, etc are largely ignored and called "Java-like."

Anyway, that's my $0.02
"Transit also integrates closely with the new Maps in iOS 6." - I would seriously reconsider telling people that and go with a Google Maps solution. I'm not trying to be rude, this is seriously one of the best and most useful applications ever, but the integration of iOS 6 maps is going to be your downfall. My initial testing of the app showed some serious flaws with Apple's geocoder not correctly picking up on variations of address and location names.
There's a place to report errors in address information, pin placement, etc. in the maps app.
Simultaneously, it seems to indeed be a convention. And why not follow it? Do you have something whose keys really require the numerousness of 8KB of characters?
It's very possible I'm missing something, but link? I've always wanted to understand sorting algorithms as well
Ask HN: What are your hobbies?
Mine are running, art, writing, investing, and playing poker.
If he had lived for another five years, apple would have a new product. As it is, we're looking at ipad 8 and iphone 11. There are a ton of smart, talented people working at apple, but no indication of focus or vision. Maybe, after a few years of mourning, apple might be able to do something really new. As it is, all those smart people are going to keep doing what they have been doing. That's ok in most organizations, apple is a race car. It's delicate, fragile, and super fast. Also, it's never getting another oil change. let's see how long it runs until it throws a rod.
By refusing to grant them a license to their map data in iOS 6? or placing such demands and restrictions on the license that it's preferable to Apple to just go with what they have?
Sublime Text 2 for Ruby on Rails/Django.
Coda 2 for HTML/CSS/JS.
What a disgusting response. "Someone else may or may not have done something worse at some point, so anything I do is ok."

By the way, you may want to Google for Scott Thompson. He was a CEO of Yahoo, until they found out that he had lied on his resume. It isn't just "the proles" who get into trouble because of dishonesty.

P.S. I don't consider it wrong to leave jobs off your resume if you feel like they are not important or they don't show you in a good light. But making up stuff that did not happen, or refusing to answer a direct question crosses the line, and I think we both know that.
And apple's charger is actually a very good one http://www.arcfn.com/2012/05/apple-iphone-charger-teardown-q...
Pretty clear, actually: the law in the US, in the UK, and in New Zealand says there's criminal copyright infringement. The difference between civil infringement and criminal infringement tends to be "you tried to make a business out of it".

Hope that helps.
Apple had no choice but to make its own maps. IOS5 already lacked turn by turn navigation because Google would not provide it (as a competitive advantage to android).

So Apple building its own maps it's mandatory. Execution has been sub par so far. But Apple has always been sub-par at cloud services. They are improving but slowly
Encrypting XML Messages
Great looking app, but some of the directions just don't make sense or are flat out wrong. For example, in NYC it tells me to take the 4 train from 23rd St. - the 4 train actually doesn't stop at 23rd St.

Again, thumbs up but could use some improvements especially on the routing side.
My feeling is that without a dedicated world body with the force of law behind it like a "Bern Convention" but for labor, what you are proposing is fantastic.

It's as if one might expect people who buy a burger from McDonald's to go ahead and give the half way difference between what a burger costs at McDonald's and a Gourment burger joint (assuming McD pays its employees around minimum wage and the Gourment joint pays more) to McD's workers "to be fair".

If China feels it's in its interest not to bolster its labor laws and not to vigorously enforce those it has, then leaving it up to individual companies to unilaterally take up the good cause is not an effective policy. The central government could fix all these issues, but it feels they are subservient to other issues. Mandating higher wages risks making automation more attractive which would dispossess these marginal workers. Foxconn as it is, is exploring this alternative as they witness wage inflation.

Why would Volkswagen, Toyota, Dell, Hitachi, Samsung, even Huawei, etc., unilaterally require that their OEMs pay their (OEMs's not actually the foreign firms's) employees any more than they do when doing so would put them at a disadvantage vis a vis other OEMs and those customers who do not pay higher wages? Let's say Acer picked up the good cause but no one else did, Acer would eventually lose to the others due to higher costs. It's not as though the OEMs and their customers need to compete for labor.