skysight-inc/HackerNews huggingface dataset:
Now you've got way less code, and way more cognitive load per line.

To someone who isn't familiar with that particular idiom, perhaps it causes more cognitive load at first. Sometimes you have to learn new ideas and techniques to make the best use of your tools.

On the other hand, once you are familiar with the idiom, what you see there is a concise and easily readable representation of the main algorithm, together with a quickly recognisable, robust way of dealing with the edge cases.

Would you also object to someone using structured programming because it causes way more cognitive load than just writing goto everywhere?
Tesla has a spine, called Musk. It may not be popular to push against sensation seeking lawyers or dealer networks but he does what's right, and in the end, that's all that really matters.
Soho has the highest demand for java developers in NYC
What exactly needs to happen for TACK to go widespread at this point?

Maybe we can get some good out of this week's focus on security.
Do you know any c based languages like C itself, C++, objective-C, c#? Any of those would be good to learn.

But you are asking the wrong questions. It is almost never the language that matters, it is the framework.

As a webdev, Rails or NodeJS would be good. Meteor is getting more and more interesting and if you want to stay employed and well paid for the next 20 years knowing asp.net would not hurt.
This looks really really good! I don't see a use for it right now so I'm going to wait until I start a new collaborative project so as not to waste the 30 days evaluation.

But one thing is I might forget about it when I'll need it. Just a wish but you should do some sort of 5 free projects for students like github does.
It presumably relies on having multiple phones recording the temperature, averaging out person-to-person variations in attire (thickness of pants, etc.). If those variations are correlated among people for a given day (everyone is wearing thicker pants), it's probably colder, and that would have to be included in the algorithm.
But that was not Steve Jobs..your over-simplifying things as there were times where standing up to Steve was not only encouraged but respected
I wonder what the upside to appointing an outspoken, top-tier NSA advocate and cheerleader for warrantless wiretapping of US citizens to Dropbox's board could be. Seriously, I would love to hear some theories, because I can scarcely imagine a more idiotic (and, as TFA mentions, tone-deaf) move.

Dropbox is likely to hemorrhage their tech-savvy users -- the ones who not only drove adoption at first, but still drive adoption -- and I can only imagine Google Drive, BT Sync, and Box are only too happy to receive us. Is the Valley/B-people bubble really that thick that no one thought this was less than a solid idea?
Learn from it. I wouldn't second guess management unless you ARE management. You got what you deserved. The program may have been idiotic, but thumbing your nose at management in front of other staff is a surefire way to get the boot. Are your really surprised?
>Someone has a degree does not mean the person is productive enough to get an actual full time job.

So your assumption is that large portions of people who put in all the effort to achieve a STEM degree cannot be productive enough even to even get/hold a job in that same field? That is a big assumption, and pretty unfounded. It if far more realistic to suggest that American companies cannot afford to hire domestic workers or hold out to maximize their dollar by bringing in immigrants or off-shoring.

I think that the picture of immigrants being in such high demand because the amount allowed in is sucked up quickly creates a false picture. It is not that we don't have the workers here, it is that cheaper and more loyal workers can be had which can do the same job at a usually more productive rate (Visa workers are more productive because they are constantly busting ass trying not to get fired/deported). Think about it, if you were willing to move half way around the world to get a job, don't you think you'd have extra motivation over a locally raised guy who is picking and choosing between potential employers. We cannot perpetually import workers, this would only leave a larger and larger pool of educated, skilled, unemployed (or not employed in a skilled field) locals. How is this good?

>Yes, true thousands of half educated people from India would flock to America, but at the same time this will lead to more x<N jobs in US for which even Americans can compete. A lot of those unemployed graduates would then have a better shot at getting employed.

So your logic is that bringing in more half educated people from India would provide more X<N jobs? We already have an abundance of half educated people both born here and from Mexico (many of which are unemployed). I don't see how adding more to this group is going to improve anything. Educated people don't want and often refuse to take X<N jobs. The corporations took the immigrants over them and now they just leech off of the government. All so that corporations can increase their bottom line.
Doesn't calling C code interact poorly with green threading? (I assume that handlers that make it act slightly sanely exist, but I imagine the cost of setting up native threads for FFI is rather high.)
Yes, but there's a lot fewer weather stations than there are smartphones. So there's lots of potential, if the sensors and algorithms can be calibrated to account for these systematics.
http://en.wikipedia.org/wiki/Naval_Communication_Station_Har...

This says 1 MW power.

I would say a mobile platform could get away with much lower power.
Email matt@redpen.io and I will personally remind you in two weeks :D

Education discounts is something we've thought about. You've up-voted that thought for us.
Had this article never been written, I would never know one could sue over lemon laws. This blog helps people see inside a world that we might not otherwise. Surely something we don't remotely ponder on a day-to-day basis.

While I agree that publicizing frivolous arguments typically is uncalled for; Tesla has been the target of many attacks for which I initially thought were unsafe product design. If not for this blog I might think it's common for a Tesla to catch fire at random, or that they don't travel the advertised distances.

I think re-wording segments of these blogs to be more factual and less emotionally driven would be nice. The openess that they are trying to provide is at least noteworthy.
>Please throw this Java mentality away. Code duplication isn't an issue, code maintenance is.

Actually what you describe is the Java mentality exactly! That's why Java is full of code duplication and is supposed to help with code maintenance.
what bubble do you live in? Have you ever worked a crappy job out of necessity for an extended period?
... until you find a bug duplicated x times in all your versions and you missed one of the x different unit tests to test them all ?
IMHO when you are fighting your language to avoid code duplication, you either use it incorrectly or something is wrong about the language.
To be honest, I only encounter rare cases where, dammit I would really love generics.
And the Go team never said no to it, they just have more urgent stuff to do first.

[Disclaimer: Googler here using Go, yaddi yadda, this is just my opinion]
It's a bit hard to judge from the outside isn't it?
There are only two possible ways to deal with long lines extending past the edge of the window.

1. Scroll off the side of the window

Pain in the ass. Ever try diffing a file, and had to scroll?

2. Wrap

Also a pain in the ass. Formatting alignment, confusion over where important linebreaks are, etc.
I've never understood why port-scanning upset people anyway. Could someone please explain that to me?
Seattle mayor says the Internet shouldn't be ruled by private monopolies
I see. So for a fear of future possible abuse by a future possibly big company, today we should ignore this blatant extortion attempt by a lawyer, in order to sympathize with this "poor, helpless" consumer?

This isn't a whiny post. This is exactly how companies should use social media to weed out these parasitic lawyers. Where the fuck is your concern for all these garbage costs that get put on the consumer because of these parasites? You should love this use of social media, because it actually makes our economy and legal system work better.
Andrew, I just want to say that I was a hater. You reached out and got feedback from me. It didn't change my opinion a lot, but I appreciated the effort.

That was years ago, now everything has changed. I am a huge fan and continue to follow your new interviews. I've reached out to you with questions and you respond quickly. I think what you're doing is great.

Whatever it is you're doing man, keep it going.
I would go a step further and say it's not elegant so much as practical and simple. On large projects this can be confused for elegance.
I lost 60 pounds this year. How can I best share what I've learned?
I am bootstrapping a startup, and went on quite a journey this year to losing 60 pounds. I've learned a lot. I have requests to write about what I learned but the last thing anyone overweight needs is another preachy, judgy post that says, "it's easy!"

to that end, if you tell me what you want to know, I'm hoping to make it more useful to the community as a whole.

Here are some potential topics:

diet, aka "yes, this stuff is hard."
exercise, aka "how I learned to love running after being a couch potato for 40 years"
Psychology: managing all the crap around this and the feelings it brought up.
resources: books, apps, tools, inspiration, playlists.
Gut Health: what I've learned about probiotics

I'm no expert at all in anything other than myself, but I've had so many requests to tell how it was done, I thought this would be more scalable than 1x1 conversations. And where else but Hacker News would I get the unvarnished feedback on how to present it.

Watch the fat shaming please in your responses. While I could care less what you call me, there are a lot of your peers out there struggling mightily with this issue who feel pretty bad about themselves. Think of them before you speak. Thanks.
Insights Your Urine Can Offer
I shortened the title from its original version: '5 Key Health Insights Your Urine Can Offer'. A bit linkbaity, I know, but this is HuffPost we're talking about. Feel free to change it.

Big takeaway from the article: pay attention to what your body is telling you. Unless your urine is clear or very light yellow most of the time (perhaps not when you first get up in the morning), it is likely that you are dehydrated. More info:

http://www.mayoclinic.org/diseases-conditions/dehydration/ba...

Solution? Drink more water. Not a crazy amount of water, but more than you already drink. The next few times you urinate, pay attention to the color. Watch the urine stream, not the water in the toilet. Is it much lighter/clearer than before? You were probably not drinking enough water before. Not convinced that there is a causal relationship between your hydration and urine color? Do a 'washout period' where you go back to your previous hydration level for a day or two, then observe urine again, then increase hydration and observe again. Do not trust your thirst as a gauge of hydration. If you are thirsty, chances are you're already dehydrated.

An exception to the 'brightly colored urine is bad' heuristic is riboflavin:

https://en.wikipedia.org/wiki/Riboflavin#Toxicity

Excess dietary riboflavin is harmless. Other B vitamins can do this too, apparently, so you can expect your urine to look funny if you've taken a multivitamin recently.

More broadly, my advice is to keep an eye out for strange, unexplained changes in your normal physiological function, because these changes might mean trouble.

(Warning: possible 'TMI moment' ahead.)

It amazes me when I walk up to a urinal and find that the previous person who used the urinal not only neglected to flush it (damn you!), their pee is a horrible dark brownish yellow color. This can't be healthy. (The behavior that led to the brown urine, I mean, not my habit of noticing other people's urine.)

Oh, and painful urination is definitely a concern (as in, tell your doctor), but I think you knew that already.

/end public service announcement
iDevice captures the same category without any derogatory intonations.
https://web.archive.org/web/20130511210903/http://dave.fayr....

write the haskell solution in python, I already ported it to Rust:

https://bitbucket.org/iopq/fizzbuzz-in-rust
I am not their customer. At most, I am their customers' customer. Why do I have any obligation toward StartSSL? If StartSSL is free to choose a business model, then others are free to make judgment based on that business model.

Should the customers of StartSSL pay the revocation fee? Yes. Should StartSSL be required to give free revocations? No. Are either of those at all relevant to whether or not I should trust StartSSL certificates, given that they are less likely to be revoked when they need to be revoked?
With this essay, they are going on record as saying "We can track what happens with the car; it's no longer your verbal word against ours".

The bit about the front trunk log is basically saying to these kinds of lawyers that Tesla is not low-hanging fruit, and that they better either have a genuine grievance or really know their stuff before taking them on. Better to announce it early and scare off some of the bad guys, rather than rinse, repeat the exercise every time. If users know that there are logs like these, then they're less likely to pull simple cons like these, and Tesla doesn't waste their mechanics' time in doing all the preliminary diagnostic work.
Why I rank my friends by income, IQ, and hotness
It would be nice to see a "how it works" or demo or screenshot or something, before giving it access to my LinkedIn account.
That's not the point. No one here is claiming that negative words can never be valuable. The question is about time appropriate to the situation. People take lots of subconscious cues from time. A developer asking for technical advice can be expected to look past the tone. With paying, non technical customers, you take nothing for granted.
I created this contrived example to illustrate the basic idea behind the pattern I want to emulate.

http://play.golang.org/p/7T2s8Dn0Sr

Ideally, on line 57 I'd pass in some kind of "first class" type representation that the switch statement could use to branch into the correct type, rather than a zeroed (or not, Go doesn't care) struct or a string. Admittedly, this could definitely be abuse of Go semantics, so I'm also interested in how I could refactor this into a more canonical Go pattern.
If I have time later to look more closely I will, but at first glance its a ghost town. You will need to populate this site A LOT before you request feedback. Right now its like a blog without any posts or description. I bounced after 10 seconds and that was being generous.

What are examples of how this works? Tell me a story in video. Sell it to us.
I started using Red Pen when I was working with Katie (who is a rocking designer) at one of my previous jobs. I've then taken Red Pen and used it at a bunch of other places now.

I've always ended up with bunches of printed mockups with annotations on them which are hard to version and end up piling up on my desk. Red Pen means that I can work with anyone to get a design just right.
Can you explain? To me, that line makes no sense. If he bought from a dealer, the dealer would have the same power that Tesla has in this case, right?
Good idea. Enhancing:

If, lambda, logical operators except == and string concatenation free version (Python 3)

for x in range( 1, 101 ):
print( [ x,'Buzz','Fizz','FizzBuzz' ][ (x%3==0)*2 + (x%5==0) ] )
I wonder if you could train a machine learning algorithm on 20th-century paintings? ;)
"I won't install another app just for Facebook messaging"

Why not?
That's typically the signature of malware, not a document server.
Heartbleed attacks seen in March 23rd server logs
Blog seems to be down for me now, cached entry here: https://webcache.googleusercontent.com/search?q=cache:y92P5i...
Pointless duplication for sure. So why not get rid of the Messenger app? Why do they need two apps? (Three, if you count Paper) (Four, if you also count the Pages app). Seriously doubt I'll re-install the messenger app even if the main app drops support for messages.

Since iOS doesn't have a back button that works cross app, this sounds bad for usability. Already it pains me to be bounced in and out between the main app and the Pages app, with no working back navigation. This'll be even worse.
And, just to go back to patio11's article[1] "replace OpenSSL for free" is something that Tarsnap could afford to do as a company, and might make business sense, if it were substantially more profitable. </nag>

https://news.ycombinator.com/item?id=7523953https://news.yco...
No, they should be using courts of law and not the court of public opinion to solve the case.

Once they win the later then they can take it to the former. Honestly what they are doing is in bad taste. You certainly don't go an attack like this.

I like Tesla's cars, I certainly don't like paying people to buy them and I really don't like tactics like this. Face it, if Ford or GM tried this stunt people here would be crawling up their ass.
Show HN: Multisig and Deterministic Bitcoin Wallet design doc/'White Paper'
Much better, you didn't have to do manage 15, 35, 21, 105, etc.
>Automagic implicit hopping around to different locations in your code-base is the fatal flaw with so many overly clever programming tricks

You could say the same thing about lambdas, continuations... basically any high level flow control concept. Higher level flow control concepts are a good thing in just about every case.

>Java's enforcement of exceptions looks like the right thing on the surface, but it instead encourages people to handle exceptions in dangerous ways when they're in a hurry.

This line of reasoning has never made sense to me. Forcing error handling is the right thing. Just because someone uses that information and does something boneheaded with it is not an indictment of the concept. An explicit reminder to handle an error case is loads better than non explicit. It's like blaming the static type checker for someone casting away type errors in a language like C. It's not a fault of the concept of static type checking if people fail to handle it properly.
In a language with option types (such as Rust) if you want to be totally explicit and write your error handling the Go way, it's scarcely more verbose than it is in Go, and totally clear:

let foo = match some_call_that_may_fail() {
Ok(foo) => foo,
err => return err,
};

The advantage is that the language forces you to handle errors: dropping the error on the floor is quite hard to do, whereas "foo, _ = some_call_that_may_fail()" is very easy in Go. (And if the call doesn't return any value at all except an error, you don't even have to write the "foo, _ =" bit; this is a nasty gotcha and is why external lint tools like errcheck are needed for Go.)
Wow, what a wishy-washy response that escapes all responsibility. Just because something is sometimes hard to decide doesn’t mean you have to throw it out of the window to make it all more comfortable for you. You are a coward.
I don't really know how to "answer" here. Do what you want in the manner you want to do it. At some point, you have to question the "Why am I interested in doing this?" question. Is it ego? Is it to be helpful? Is it to show off? Do you ultimately want to become the next Jared [1]? What's the end goal here?

I'm not judging - I'm pointing out a valid discussion you need to have internally. This post makes it seem more ego-driven - and there's nothing wrong with that. But having that internal discussion will help you solve a lot of this.

[1] http://en.wikipedia.org/wiki/Jared_Fogle
The language doesn't force you to handle errors properly. The default is to drop them on the floor. That's why errcheck exists.
I've been meaning to switch to a password organizer rather than rely on my browser's built-in one (I know)... I've seen a few discussions on here but I haven't seen a clear victor. In your opinion, is LastPass the one I should go with? Or Keepass or OnePass or one of the others?

Edit just to say I think this is a very nice feature by LastPass and thanks for posting.
Everything you said, but completely reversed.
I was going to offer a humble suggestion: why not reach out to him with an email or comment on his blog? But then I see it's just a filler article for pandodaily. That's pathetic. And unless they amend the article's byline, then it's a shameless plug for pageviews. What a shame.
There are also other reasons (besides authentication) that a blockchain-based architecture is desirable for the Internet:

- real-ownership of domain names (free of political pressures that result in domain-seizures)

- a powerful, global identity system (not run by any government or mega-corporation)

Some concepts & partial implementation: http://okturtles.com/#open-source
Right, and this is what happens in Go. I can use a string or struct as a signal for what type to produce, but I wish I could communicate that type in a "first class" way, rather than using another data type as a proxy signal. Check my reply to melvinmt for a more clear example of what I mean.
By doing crazy things like this video, he pulls attention from a wider audience, giving his opponent more reason to settle early and shut him up.
Unfortunately, I won't be able to use a lot of the improvements in my projects, since it'll take some time for everyone to adopt it. But maps and dirty schedulers (!!!) are both very welcome.
yes, don't forget to restart your applications after updating openssl libraries. this includes clients!
Is this extortion blatant enough to get people arrested? If not, it should be.

I get that the anarchists are trying to solve a real problem, and are motivated by real pain suffered by real human beings. But shaking people down for $3 Billion does not make you the good guys, even if Google has that much in spare change...
Not entirely true, as indicated by the link to Webster's Dictionary provided.
My partner worked in the legal claims department of a major (unnamed) vehicle manufacturer for a number of years. Even new agents were given massive empowerment dollars to shut lawyers up to keep them out of court. It really was an micro-industry unto itself, to the point that lawyers would get to know the company's defense agents from filing so many suits. Some cars did have problems, but not many. Most seemed to stem from awful lawyers and/or car dealers providing a terrible customer experience.
I believe he is suggesting that this action is backed by dealers as part of the ongoing legal battle resulting from Tesla not allowing dealers to sell their cars.
I also tend to wrap loops in expressions like that. Then, in almost every interesting loop, I suddenly want to log something or add intermediary computation, and have to refactor into the good old boring for loop.
I use both LastPass and 1Password (in different contexts). I find 1Password more polished and nicer to use, by LastPass works fine too.
I tried this for over a year and remained unemployed. Finally gave in for a $15/hr gig. It very much depends on where you live. The pool of clients in this region is very dry, and no one is willing to pay.
I'm not sure I agree. This morning and yesterday, I saw several news articles about how Tesla was being sued for lemon laws. It seems reasonable to me for Tesla to defend it's position both to the public, and in the courts, which they are doing.

The comparison to Ford or GM doesn't really work as they wouldn't have such widely popular articles about being sued for lemon laws.
This was in the original statement by the activists. No investigation needed here.