skysight-inc/HackerNews huggingface dataset:
I've recently tried to fix JOE (a UNIX portable program) so that it will compile without warnings and with minimum casting with -Wconversion. This is what I've found:

Chars: I hate it that they are signed because I like the convention of promoting them to int, and then using -1 as an error. It's easy to forget to convert to unsigned first, and the compiler will not complain. In the past I've used 'unsigned char' everywhere, but it's a mess because strings are chars and all library functions expect chars. My new strategy is to use 256 as the error code instead of -1. The only problem is that getchar() uses -1, so it's weird. IMHO, it's a C-standard mistake that char is signed.

I used to use int for indexes and long for file offsets. But these days, int is too short on 64-bit systems and long is not large enough on 32-bit systems.

ptrdiff_t is the new int. I've switched to ptrdiff_t in place of int and off_t in place of long. Ptrdiff_t is correct on every system except maybe 16-bit MS-DOS (where it's 32-bits, but I think it should be 16-bits). Off_t is a long long if you have '#define _FILE_OFFSET_BITS 64'. Ptrdiff_t is ugly and is defined in an odd include file: stddef.h. It's not used much by the C library.

The C library likes to use size_t and ssize_t. The definition of ssize_t is just crazy (it should just be the signed version of size_t, but it isn't).

I understand why size_t is unsigned, but I kind of wish it was signed. It's rare that you have items larger than 2^(word size - 1), so signed is OK. You are guaranteed to have -Wconversion warnings if you use size_t, because ptrdiff_t is signed (even if you don't use ptrdiff_t, you still get a signed result to pointer differences so you will have warnings). Anyway, to limit the damage I make versions of malloc, strlen and sizeof which return or take ptrdiff_t. They complain if the result is ever negative. Yes this is weird, but I think it's better than having many explicit casts to fix warnings. Casts are always dangerous.
People reading the answers are more important than those answering - there are a lot more of them. Sure, people answering provide the valuable content, but most are not put off by the editing as you seem to be - if an edit is made, it is clearly marked that it has happened and can be reverted if wrong. The answers are wiki-like, and that makes the content better.

You may not like it, but why would StackOverflow change their system to make the content work to please a tiny minority of their community? It's a bad idea that would make the site worse.
That's not what "euphoria" means.
> http://www.openbsdfoundation.org/contributors.html

Iridium: $100,000 to $250,000

Platinum: $50,000 to $100,000

Gold: $25,000 to $50,000

Silver: $10,000 to $25,000

Bronze: $5,000 to $10,000
I've heaard a lot about functional programming but I still not getting how it should be superior to object oriented? I feel OO brings to the table concerete best pratices (everything should be an object, object have state, class defines object bejavior, class inheritance, objects encapsulation...) that's broken by functional.
>They've already blamed Morgan Stanley, Goldman Sachs, and Soros for having a role

And how is this any different than what the Americans do: blame the bankers for all their financial problems?
3 Ways to Immediately Make Your Facebook Posts More Shareable
Take videos like this: https://www.youtube.com/watch?v=ZhuHCtR3xq8

The guy basically goes on some pseudo-mathematical journey that has only a tangential relationship with programming. "It's easy to understand!" he claims multiple times. And it was! I understood everything he said. But I had NO idea how to apply anything he said to my application.

And so it goes with virtually every article I've ever read about functional programming. The truth is out there, but it's hidden in such a dense forest of obfuscation that I'm not sure I'll ever know what a monad is.

The search goes on, but I'm afraid all I'll ever discover is yet another blog post where all the functions are named f(), g() and h(), or something about prime numbers.

So I suppose arrogance may be assumed from seeing this concept explained so badly so many times. It's like people who understand functional programming are gatekeepers and do such a horrible job at letting people in that it seems like we've been locked out on purpose.
You can't on WP7 or older devices because of kernel incompatibilities. But pretty much everything that can run WP8 can be upgraded to the official WP10 beta through OTA.
Not as an attack but a real question: Please expand on "Mises flawed understanding of Money."
Not all pedophiles are child molesters, yes.

But more importantly, not all child molesters are pedophiles. Just like any other form of rape, a significant portion of cases has more to do with power than with attraction. Sexual abuse is abuse first.

The problem with child porn (in the strict sense of "pornography involving real children") is that all child porn is child abuse. So someone had to be abused to produce it and they depict actual victims in the act of being victimised. This is why possession is illegal, just as possessing other pictures of victims being victimised without the victim's consent is illegal (in countries with real privacy laws anyway) -- with the obvious addition that children can't give consent in the first place.

Of course the (understandable) moral panic doesn't help. While it's obvious why actual child porn should be illegal by default, it's not as obvious why the same goes for non-pornographic material (unless your definition of pornographic is simply "what someone could masturbate to", in which case you might as well extend it to everything).

An intuitive argument is that the proliferation of "child porn substitutes" (e.g. drawings, "naturalist" photography, etc) increases the risk that pedophiles might act on their drives. But considering that pedophilia is neither sufficient nor necessary for child abuse, that doesn't seem as clear cut. Also the numbers seem to indicate that for "normal" pornography, proliferation actually results in a decrease of sexual assaults (i.e. the "release valve" counter-argument).

Legalizing it all is obviously wrong. Banning it all (as in those parts of the world where you might become a registered sex offender just because a shop clerk finds out you took a photograph of your own child in an entirely non-sexual setting) is obviously wrong, too. But I don't think we can have a reasonable discussion about this issue as a society before we've learned to accept that morality isn't defined by arbitrary commandments and every human is different.
What's in it for microsoft though? What is their end-goal? If they support opensource I'd rather they port some major programs to other platforms to make those platforms more viable.
This is a really awesome idea! congratulations! I was thinking on this but didn't know how make it happen.

Just create the group I always have in mind: http://www.mobilechatgroups.com/groups/28/late-night-develop...
A person (Uncle Bob) who makes a nice living off of selling cyclicle baloney on OO best practices to OO programmers thinks FP programmers are arrogant? Say it ain't so!
I'm an Android user. None of your points are incorrect, but they also all apply to Android:

- Gmail receives preferential treatment

- Google cannot be removed as a search engine (inc. Google Now)

- Android can be restricted from tethering (and operators do do that).

- Google dropped CalDAV support.

None of which are "breaking" issues on Android. In fact I won't leave Android just for Google Maps (w/Waze integration), Google Now, the number of apps on the play store, and future things like Google Car (so I can drive my car's nav system with my phone).
Someone must have had some funds left over in the advertizing budget.

Regardless it's a very smart move and much appreciated.

Thank you Microsoft!
In 2013 it was revealed that Bloomberg censored China reporting that was objectionable to the Chinese government. I'm not sure why anyone trusts their reporting now.

http://www.nytimes.com/2013/11/09/world/asia/bloomberg-news-...

EDIT: Whey I say, "I'm not sure", I mean it. Is there more to the story?
Mirror Images Part II – Eli Schiff
Well, we do have hardware memory safety, that's what the MMU is for. Clearly it's not being used enough. What we need to do is bring containerization down to the level of individual functions, so that the MMU can enforce encapsulation.

(I'm not sure whether this is a joke, a brilliant idea, or a piece of FP advocacy. You could probably get a CS graduate paper out of trying it, though)
If you want to get serious, invest in a 'speedcube', the Dayan Zhanchi or the Aolong v2 are great cubes. I use the Aolong v2 myself. 15,2 seconds is my personal best :)
Get a BlackBerry and install Blend on your laptop/tablet.
Unity 10 Year Anniversary Retrospective Highlight Reel
There seems to be a lot activity on http://founderdating.com/

I get plenty of email notifications from there after a friend asked for a referral.
Rejecting them works better. Those questions can be answered on other sites that are more suited to a discussion format and won't end up floating on search results despite being out of date like SO's will.

Trying to make SO a jack of all trades will degrade the quality of the content and make the site worse - the whole reason that it's the good source of content it is is because of these restrictions.
Try this one! http://fsharpforfunandprofit.com/posts/recipe-part2/

Here's a secret... It's explaining monads!
​This Algorithm Makes Movies from Street View Stills
I'd argue that Google is an advertising company. Software, search and phones are just delivery mechanisms for the ads (which brings in the money)
Currently in the air on a United flight, EWR -> SFO. Took off at 7:30ish. No mention of this in the airport or on the plane. Yikes
If I heard correct, Microsoft wants to add openssh support to Windows 10, server and client.
Gracefully stopping goroutines
It seems the solution here is to get your mother-in-law to stop calling you from a private number. Really private numbers are like slapping people in the face - you need to pick up on telemarketers just so that you will pick up on if I happen to call.
This sounds like a fantastic idea. I was in that market for most of my career, and it is filled with extremely competent people with resumes that don't convey much. The "you want to see the code I worked on? Uh, that's a felony for both of us" type thing. (there is also the fact that resumes written for that job market are filled with jargon that doesn't convey much to outsiders). It was really hard dealing with companies that didn't want to 'get' that former point when I left that sector. Fortunately for me my current employer was very cool about it.

I would suggest there is a lot of money being left on the table for a business willing to work with the ~95% of programmers this is leaving behind...
Sears Holdings was basically a hedge fund that happened to own Sears and Kmart. You'd have to admit that prior to the recession it was looking pretty good, having enjoyed a 10x run in their share price.
It's odd when people get defensive about it when you just say you're vegetarian, but I know it happens. My SO was vegetarian for 14 years and this happened from time to time. Sometimes the comment that having animals killed on your behalf is a flag that this person thinks it is amoral to kill animals for food. Meat is murder after all. I recognize very much so that not all vegetarians are like that.
The thing is, some functional programmers are arrogant. I really like the understanding that comes from learning a functional language, but I've never fit in among the die hard folks who believe that it's functional or nothing. As a functional moderate, I've been maligned at times and in particular by the functional faithful -- which comes off as arrogance.

In an interview once, I was asked what defines functional programming. After I provided an answer I thought was reasonable (function composition, statelessness, immutability), my interviewer politely responded to my obvious ignorance with a few corrections like, "you forgot first class functions!". The tight smirk on his face was as if to say, "Ha! Gotcha, n00b!"

I think a lot of functional advocates are out to prove that it's better than imperative and other paradigms, but it ends up coming off like a forced sports rivalry. What the hell does "better" mean, anyway? Pick a good enough tool for the job and ship something.
...and then he fires 8k people :-)
Thanks for the love :)
I posted Andy Matuschak's Functional Swift talk on another thread, but it's worth posting here too -- it specifically addresses how teams can introduce Functional concepts in a way that brings everyone on board, without alienating anyone:

http://2014.funswiftconf.com/speakers/andy.html

(Andy leads the mobile team at Khan Academy, and worked on UIKit at Apple before that.)
I've been reading it as "Grokked," as in 'understood.'
Cause it aint "coped," as in "they could handle it."
Copped would be more like they got some of something on the sly, possibly through sleight of hand ( copped a feel. )
In this case, accidental understanding of a system?
>This is the sort of reason why I ignore the advice to put some trifling portion of my portfolio in emerging markets.

FXI, even after falling off a cliff, is returning 11% YTD, vs 1% YTD for the SPY. It has an expense ratio of 0.74%.
Normally I would agree with you, but this is TW and they need to go out of business.
Worth noting that Facebook and Google are both silver contributors.

=== http://www.openbsdfoundation.org/contributors.html ===

For 2015 The OpenBSD Foundation will recognize donors in the following categories based on contribution amount.

On request we will provide a link to your website for donations of $5000 or more, and display your logo for donations of $10,000 or more.

Iridium: $100,000 to $250,000
Platinum: $50,000 to $100,000
Gold: $25,000 to $50,000
Microsoft Corporation
Silver: $10,000 to $25,000
Facebook Inc.
Google Inc.
Bronze: $5,000 to $10,000
2Keys Security Solutions
Mandrill
genua mbh

=============================================
Having been listening to an audio book called 'travels in siberia' on my way to work.

Travel to central asia has become my new obsession.
Several problems here. One is that the sharks can still see the fishy and yummy silhouette of the surfboard. Two, sharks could investigate electric pulses so any electronic device in a surf board could cause problems (unless maybe designed as deflector). They use electroreceptors to find hidden preys.

Other problem is that fish schools or other surfers could trigger the alarm leading to a very stressing day of beach for everybody.

But is a interesting problem and anything that can do that people do not resemble a seal is good for people and also for sharks. Even if is a real shark, and not a dolphin or an unprobable tuna, you will have just seconds to prepare for the hit.
15 indispensable content marketing tips
>>Is there a single Windows Phone user that asked for that?!

This guy!
https://news.ycombinator.com/item?id=9851687
Changelog features awesome stuff: https://tip.golang.org/doc/go1.5
Here's an interesting analysis from The Economist:

http://www.economist.com/blogs/freeexchange/2015/07/chinas-s...

Quick summary: The market isn't in such horrible shape, and it's impact on the economy is much smaller than in more advanced economies, so why the panicked response?
No, it can't be extrapolated that way, because the community which uses a language is more than just attitude (arrogant versus humble); the community has a productive aspect, like producing tools, libraries and such. Just the basic attribute of the size of that community could be significant.

Some languages with a welcoming community nevertheless have arrogant evangelists.

You can make your own language and use it; where is the welcoming community then? And what if you're arrogant? :)
Plus a lot of the world was destroyed outside of the US ... leading to the post war boom here.
Abstractions sometimes do not match well with the underlying abstractions that they depend on.

The Von Neumann architecture is all about state and mutability, and yet FP tries to stay as far as it can from that.

OOP is really a supplement layer over imperative programming and doesn't deny any of its underpinnings.
what are you actually making better here?

HN! Look at it this way: if everyone who likes to use phrases like that, even when not really suitable, sees they get downvoted into oblivion maybe they'll start to realize there's a reason for it. And next time they'll want to post they'll hesitate, start reasoning, and don't post any nonsense. Sounds good to me. And a bit far fetched maybe :P
Also, Google has been donating every year since (at least) 2012, when OpenBSD started to make the donors list public.
Little bit of a tangent here: Is Bing doing well? We all agree that XBox is a huge success, but given that Bing just gave away its display advertising to AOL all to gain trivial market share, and is still paying users $5/month to use Bing, you have to wonder if Bing is really successful or just held up.

I actually don't "hate" Bing. I find their answers to questions directly in results slightly better than Google's version of the same. But I still use Google as they have more historical search data to utilise so results remain more accurate (and will almost indefinitely). Bing also seems to choke on technical queries and special characters more often.
That's your personal opinion as it's his about ES6
Microsoft seems to be undergoing a huge sea change towards acceptance and promotion of open source software, and moving into a devices and services model for revenue as opposed to a software licensing model. It seems that most of the open source community still thinks they are "up to something" but I'm starting to believe that they are genuinely becoming a much better company than they were under Ballmer and Gates.

Either way, I'm happy to see them putting their money where their mouth was, literally.
>Buying at the bottom is hardly a bad sentiment to have when it comes to investing,

Buying at the bottom is sheer genius. Being able to actually do it in practice, however, is another story, despite how much you've "researched businesses".
Are you an entrepreneur? Got ideas related to financial technology?
Have you developed an idea related to financial technology? Do you know someone who has? If so, you should 100% continue reading as this may be a life changing opportunity for you!

Markets Media is hosting a conference on July 15th at Carnegie Hall. One of our content tracks, ‘Fintank’ (loosely modeled after the CNBC ‘Shark Tank’ show), will consist of Fintech entrepreneurs pitching their ideas to venture capitalists and angel investors.

The panel session is meant to illustrate the challenges and opportunities for Fintech entrepreneurs who are looking to get a project off the ground. If you are an entrepreneur who is developing or has developed an idea related to financial technology, and are willing/able to participate at STN 2015, please visit our website www.summertradingnetwork.com or email ecooney@marektsmedia.com

Great networking and rooftop cocktail reception immediately following Fintank.
It's worthwhile watching Nubank's talk on how they manage these things with Datomic on the backend [0] - providing a "complete" (filtered) database to the client, http caches for queries based on tx-time, and syncing mobiles data via transactions-since. Takes care of said concerns nicely - I'm just implementing this stuff today however, so I'm not sure how well it'll work in practice.

[0] - https://www.youtube.com/watch?v=7lm3K8zVOdY
I disagree. I've programmed in plenty of languages with mutable state and found myself desperately wishing for the power of lambdas, function combinators, comprehensions, and other higher-order constructs from functional programming. I'd really much rather have `map f xs` than `for(x : xs) result.add(f(x));`.
I was just trying to be funny.
windows supporting openssh is most likely the reason
Apple and Android Are Finally Shouldering Their Way into Cars
I really don't want to agree with this, but I must. Anecdotally: I just joined a team of side project programmers, and while getting up to speed on a new branch of the project, I had the phrase "You just don't understand, you really need to pay attention" uttered at least three times in four hours, and in a group of three people, one of them actually uttered the phrase "I'm bored, how does this affect me".

Now then, perhaps I am a terrible programmer, and perhaps I just have no chance to understand what's being said because of this fact. But... why did ask me to join them then? Why didn't they let me go, if this is truly the case?

The underlying issue, after getting communication actually occurring in two directions, is I was being subjected to the results of several previous poor developers - I was getting the brunt of their frustrations which was actually aimed at other folks. Doesn't make the earlier parts of the conversation any less arrogant, or tolerable, unfortunately.
My gut level guess is something in this list Might end up bundled into windows10 or 11 or ...

https://en.wikipedia.org/wiki/OpenBSD#OpenBSD_component_proj...

I suppose an internet router running OpenBGPD on windows approaches the "kill it with fire" level of visceral repulsion, but something more realistic like bundling openssh client or CARP or LibreSSL could totally happen.
I think that the Ruby community (at least, the parts I run into--I can't speak to Rails, but Ruby proper) has stabilized into a generally friendly environment. For a long time I steered clear of Ruby because of the outside perception of a lack of seriousness and a lot of silly slap-fighting, but since moving to it for most of my devops-type stuff over the last couple years I've had generally fantastic experiences, the whole MINSWAN thing seems to be taken seriously. It seems like the Rust community has taken a lot of the DNA of the Ruby community around personal interaction, too? Not really connected there, so just speculating.

I also think that the parts of the .NET community I'm exposed to on a regular basis are professional, calm, and not prone to asshattery.

YM, of course, MV. =)
What prevents drunk driving deaths is not driving while drunk. There are plenty of ways to avoid that. Decades before Uber existed, the big PSA push was "call a taxi!" Then the designated driver came into vogue. In large cities at least, almost no one drives to bars at all; the plan is always to use transit or taxis. Of course today even small towns have taxi services that trawl the bar areas around closing time, so you rarely even have to call (or have the bartender call for you). To the extent that Uber makes any difference here, it's solely by providing additional taxis, which any taxi company can do.

This might be the weakest defense of Uber I've ever read.
I never understood this line of reasoning. Isn't composition over inheritance a valid principle, especially in JS land?

Speaking more to the anti-pattern part of your comment, obviously whether or not you think they are hard to read is subjective.
We don't write software in a vaccum. When we come up against barriers of language understanding (and this is something EVERYONE will face), we seek help from the community to break through and eventually wield that language more effectively, and thus make better software with it.

The community you're joining will greatly affect how competent you become in their respective language, so anyone who partially bases their language choice on community is being completely logical.
Latinos now outnumber whites in California
I'm hoping that they are going to generally start pulling a lot of Unix standards into Windows.