skysight-inc/HackerNews huggingface dataset:
Hacker News inspires many entrepreneurs because it's an active public forum where countless entrepreneurs share stories of failure and success. When my co-founders and I began working on www.campusbubble.com (8 employees), we often shared articles and discussion threads with each other.
Oh, ok. Easy to mistake as Grant himself definitely did submit this a couple times in the past year, sometimes under his own ggalitz Hacker News account.
iOS 9 Proves Apple Has Lost the Art of Simplicity
Coding Pro Tip: Instead of using the Singleton pattern, make one instance of your class at the start of your program and pass it around to its users.

Singletons are really just as bad as global variables. Why? Because they are global variables.
Having worked in a couple different large Java projects, there are certainly tradeoffs to both sides: make too many things immutable and you will not end up in a happy place GC-wise. And add the requisite "it depends on the project" to the remainder of this comment :)

But if I were to start a project, I would start with immutability by default and go from there, chiefly because when you find yourself needing to add additional threads and share data, I consider the transition from mutable to immutable would be more difficult than the inverse.

Another perspective: mutability is a feature that can be used in certain contexts (and QUITE useful there) but nothing intrinsic to the feature (in Java, at least) enforces the contexts' prerequisites (i.e. thread-safe access), and thus it is easy to end up with runtime errors when the environment of your project shifts.

Immutability, OTOH, makes fewer contextual assumptions (or perhaps more tractable ones).

Said perhaps more pithily: when mutable-by-default, your resultant architecture will frequently hinge on mutability. If you instead start with immutability, the immutability will be less of a crutch than the mutability would have been.
One of the most frequently trumpeted cases for immutability is WRT thread safety. Is it me, or does this need come up rarely in practice relative to the forcefulness of arguments to make everything immutable? I get that it depends on your project, etc. But, I'm talking overall.

Yes, I more than once had to fix code in an natural language processing library, because multi-threaded Jersey services led to either crashes or partial annotations literally ending up in the wrong request. In the cases where I had access to the code, I rewrote the classes to be immutable (all state is created and passed between method calls), which fixed it.

In one natural language parser that we couldn't patch, I had to create one full parser instance per thread (weighing in at ~1-2GB), because the class was mutable and did not use correct locking. (So, we ended up creating a couple of parsers at startup and putting them in an object pool.)
Amex unveils password checkout to rival PayPal
Prescient? They've had the nonsense youtube rules for a long time.
Fair point, you're absolutely correct. Admittedly I haven't given this a TON of thought, because it seems like something that can't be added anymore. Maybe the interfaces should be siblings, but since Java doesn't have a disjoint type, you might run into problems if something says it implements both MutableList and ImmutableList. Not sure if Java's type system is strong enough to deal with this problem.
This thread would be remiss without mentioning the EnyoJS UI builder, Ares2, which has a similar feature set, but also allowed for Dropbox storage (work on your apps anywhere) and Cordova builds from the UI.

All of it runs on node.js with EnyoJS as the frontend framework (MVC, data-binding, responsive panel layouts).

Unfortunately, it seems most development for Ares2 stopped with LG's acquisition of HP's WebOS assets.

Surpringly, there are still a number of developers actively utilizing EnyoJS, and despite its age, has a lot of features you find in more trendy frameworks today...

https://github.com/enyojs/ares-project

http://enyojs.com/
DI is an antipattern.
On C++ if we're using a bool as the "check" and pthread_mutex_lock on a regular mutex would that work, or do we still need to hardcode fences?

(Asking because this pattern is used by libcxxabi code)
im not in the valley, but i like the quality of his thought process and that he cares about making a difference and is working incredibly hard and smart towards it .
> What's your answer? I take the two.

Any guesses about where (in society) one can find those who answer "I take the six"?
How do handle configuration? Your program starts up, generates some settings, then those need to be shared across all threads to avoid incurring the cost of regenerating during every call to a function.
Use youtube-dl, or mpv with youtube-dl. It can fetch videos from many adult sites without using flash.
Hacking an Angular.JS Game for Fun and (fake) Profit
This seems like a good answer. I would add that you should be somewhat tactful until you have a suggestion of terms. The "give us a number" doesn't seem serious and it would be wise not to release financials, code and strategy until things become serious and it is evident they are negotiating in good faith.

edit: I had a total brain malfunction as pointed out below. Do not be candid, use skepticism and protect your private information.
But the people who started the attacks researched his profiles and publicized the entire thing. Their entire goal was public ridicule and getting him denounced.

If this group of thugs is good at anything, it's getting the word out and the twitter mobs mobilized.
Ivy – First Android App in 100% Golang on Google Play
Yes except if you want 1080p60 you just won't be able to use Flash because even on fast computers the CPU overhead is killer.
Github repo: https://github.com/robpike/ivy
I do not disagree. In fact, I personally have a problem with all non-vendor vulnerability sales, for the same reason.

I just think we should be clear that exploit developers, brokers, and users don't actually create vulnerabilities; software companies do.

I also think people should give Adobe a little bit of a break --- not much of one, but a little. Adobe got monstrously successful off a codebase that largely predates the concept of software security. It's a nightmare problem for them, and they are working on it. They should work harder.
I've programmed professionally in C, C++, Java, PHP, Python, Javascript and Clojure. I've been out of school for a number of years, have worked for a few companies and cofounded two startups.

I still choose Clojure when I can.
http://getchatty.sourceforge.net/
[pdf] SO_REUSEPORT Scaling Techniques for Servers with High Connection Rates
The individual sections being loaded reminded me of the Borg ship.
Sounds like a solution which increases bureaucracy and spending yet has the plausible objective of fighting crime. I can see why this issue never goes away.
I probably explained that poorly. What I meant was that our products are so similar, and vision so aligned, that we have already independently developed many of the same technologies.
The beauty of Go's channel design approach is how it isolates responsibilities. It's not just about synchronization. A great example is Rob Pike's lexer.

When passing singletons around, you are communicating with shared state. Sometimes, there is no way around it.
While we're on the list of programming books topic, I'd like to mention two that can be found here: https://github.com/vhf/free-programming-books/blob/master/fr...

The first one is "Software Entwicklung in C" and it is an absolutely great book on building software in C. Personally, its the best I've ever read. The author is a meticulous architect, and really imbues solid software practices while teaching you how to build an embedded coffee machine. Also "Linux-Unix Programmierung" is a very detailed and comprehensive overview to all the linux libraries and their usage. If anyone can read german and does systems level development I would highly recommend both of those, especially the first one.

Its a shame these kinds of freely available resources just go completely missed most of time. Does anyone have other really good books in non-English that have also gone under the radar? It would be great if we could somehow get some of these translated...
Yeah I'm not really 100% in agreement with my own comment to be honest, it ignores the very real existance of malicious trolls for one, but it just annoyed me that every single comment was assuming a standpoint of "assume anyone who disagrees with you is wrong".
It's kind of a big deal. Real and ongoing issues with male-supremacy and misogyny in SV are being actively misappropriated for salacious clickbait. C.f. Newsweek's horrific cover story with a mouse lifting a woman's skirt.

C.f. the title "SV 2, Ellen Pao 0". I mean jesus, talk about derailing the convo from the start. Ellen Pao blew it with the Victoria firing, so there's at least one thread of this story that has nothing to do with sexism and everything to do with typical tone-deaf executives.

I personally don't think the FPH incident is involved in her dismissal, nor her previous harrassment lawsuit -- if the latter was a problem they would have never made her CEO in the first place. Regarding FPH, yes that ruffled feathers but the management seemed united behind it.

So, I don't think it's anti-feminist to call out this article as gender-wars clickbait. The focus on edits is indeed a sideshow, but I'm not surprised it took a GG-focused site to bring it up.
If you're only reading/writing from one thread, then locking/unlocking a mutex should have an extremely small overhead. So if you plan on having such a pattern available for use in multithreaded contexts, a mutex or some other thread-safe abstraction couldn't hurt.
Did he "completely ignore" it, or did he just not engage with it to your satisfaction in that particular comment?
It would also require crypto systems to be licensed and regulated, effectively limiting their deployment to huge vendors. Look into what FIPS compliance entails. These kinds of things always have a regulatory capture / monopolistic land grab component.
Ford's 400,000-car recall – auto security failure
From Melbourne’s email-a-tree service archive:

My dearest Ulmus

While languishing inebriated 'neath your ample
verdant canopy I was inspired to verse:

I think that I shall never hear
a poem as lovely as a beer.
A beer McSorley's had on tap
with golden base and snowy cap.

The golden stuff I drink all day
until my memory melts away.
Poems are made by fools I fear
but only [insert] can make a beer.

But you adjudge me MAD.

Best wishes,

Alfred E. Newman
Google Tests Carpooling Service for Commuters
It has a name! Neat. Thank you
Citation needed comments are lazy and useless.
This is not, perhaps, the real concern. It seems browsers, via WebRTC, expose all detected public addresses, so even though your default route may be through a specific interface, the browser will probe all local interfaces and discover all possible public IP addresses.

I'll let you figure out how this could be compromising.
Sounds Bad: Computers can spot symptoms of depression psychiatrists may miss
Their conclusion:

"The actual machine we built clearly suffers from technological limitations, that impair its scalability due to unavoidable noise. These limitations derive from the fact that we encode the information directly into frequencies, and so ultimately into energy. This issue could, however, be overcome either using error correcting codes or with other UMMs that use other ways to encode such information and are digital at least in their input and output."

So, it remains to be seen how feasible this machine is.
You (or they, depending on how you consider things) have a simple tool to solve the problem: let them fork and do what they want.

It sounds like I'm trivializing the issue but I"m not (see below). Take a kindly approach: "Clearly I have a disagreement as to the right way to proceed so let's stop arguing and both go down our respective paths." Don't worry about the obnoxious folks: be kind and take them at their word. If they pick up the ball, perhaps they will be proven right and you'll switch, perhaps they'll be proven wrong and that experiment won't have hurt your project, or perhaps they'll be proven trolls (by not picking up the ball), in which case you can saefly ignore them.

And when I say this is a simple tool: it took me months to arrange the first "legitimate" (in the sense that it was accepted as a mainstream activiy) open source fork, which was GCC back in 1997. Until then forking a project while done (often companies would hack something unsupportable into, say, gdb), was considered grossly dangerous. It took literally months of discussion to split egcs off from mainline gcc (and to become, in fact, mainline gcc). I had to write a really long, careful message (https://gcc.gnu.org/news/announcement.html) to justify it. Nowadays you can fork away with abandon. Take advantage of it.
Tesla uses this recruiting service to find talent
What are better alternatives? Service locator?
Around 26 years ago, I developed firmware for geosynchronous satellites in a "safe" subset of Ada87. I still think it's a wonderful language and wish there were more opportunities to develop with it. Since then, I've worked solely in C and assembly.
Sports Bars and Biker Gangs – The Death of Reddit
This is a serious problem in clinical trials (anomalously high placebo response) even without self-reported results.
Really neat game, and I actually appreciate it when a JS game doesn't obfuscate it's code, partially for learning and partially for cheating. :D
Ironically, the tool is not provided as a Docker image (or at least none is mentioned).
I'm ok with parole for first time offenders. But for relentless offenders, I'm against it. Parole should gradually go away as an option with the frequency and severity of one's crimes. And if they start playing by the rules, their right to parole should gradually return.

The worst relentless offenders shouldn't be living with everybody else when they get released. They should live in a penal colony of some kind. Or maybe they should go there instead of prison.

This is especially true for serial sex offenders, who aren't going to be able to live anywhere but under a bridge and who probably are going to keep offending. They need to be segregated, but don't necessarily need traditional imprisonment. One or two convictions does not put an offender into this category.

Prison is sort of a blunt instrument that we hammer people over the head with. Then we set them free amongst us and hope they'll be nice. A more normal, but segregated community might be a better place for some offenders and some parolees.
A bad thing to do is to start thinking such things to begin with. Just because somebody expresses an idea that you personally disagree with it does not mean that they are "trolling", it does not mean that the idea is "invalid", it does not mean that they're trying to "stir up shit", and it does not mean that they're trying to "kill" an open source project.

Always respond to their concerns with professionalism, courtesy, and tact.

The absolute worst thing to do is to start censoring them. I've seen this happen with a number of GitHub projects in the past. People occasionally come along with ideas that some, or sometimes even just one, of the core contributors does not agree with. Even when the newcomers are participating in good faith, I've seen intolerant GitHub project leaders start deleting perfectly good comments, closing perfectly valid issues, rejecting perfectly good pull requests, deleting perfectly good wiki content, and otherwise engaging in behavior that is much more harmful than anything the newcomer could managed to have engaged in.

When I see that happening to new contributors, especially when it's a small project involved, then I know it's time to move on from that project, both as a user and contributor. I refuse to be associated with such nonsense.
How would you even begin to code such an ambitious undertaking? How do you start? Is there a library that does most of the work?
SPOILER?

The "correct" answer is to generate a random number in [0, 1]. If less than 0.1, then select 6, else select 2. For safety use 0.05 (say) instead of 0.1. This means that everyone is guaranteed 2, but some (as many as possible) get 6. It works without coordination.
Elio Motors is crowdfunding its entire $25M investment round
Don't do your medical consultations over insecure channels.
The link is broken.

Error 1003 Ray ID: 204ef17e06e31ba9 • 2015-07-12 18:52:06 UTC
Direct IP access not allowed What happened?
Thank you for that feedback. "Walk Away Before" and BATNA seem easiest to figure out, so maybe I'll start by determining that.

My company is just me. They have 4 founders and will be hiring 5-10 people soon.

Both companies had successful crowdfunding campaigns but neither is shipping a product yet.
I don't know what the .COM registry-registrar stuff says about racist sites, but there's a colorable argument that cutting off basic, irreplaceable communications infrastructure to objectionable speech is different than hosting a convenience for it. Cutting off DNS for hate groups is closer to denying them telephone service.

The old-school DNS registrars are for the most part part of a collaborative effort to help actually operate the Internet.

Reddit is not.
" You can benefit from "Learn once, write everywhere" on the web, mobile platforms without headache!."
Is it enough for the reason ?
I would have thought "front door" would mean to get the intended recipient of the message to decrypt it for you.
Except that you need to coordinate everyone to use the random number generator system...
>Singletons are really just as bad as global variables. Why? Because they are global variables.

And just as handy as global variables.
Great idea. Let's also allow crime victims to sue car companies who make getaway cars.
Someone needs to come up with a system that limits mob rule through voting and enhanced the ability of communities to maintain quality user-contributed content while giving equal time to alternative points of view.

This is not easy. These kinds of problems go back to the old USENET days. Of course, there was no click voting system. What would happen is that you'd get piled-on by folks who felt entitled to police specific lists. Horrible nasty flame wars would emerge with people being brutally assaulted online in every way imaginable.

Today things are different, the up/down vote is there. And every site I can think of has mob rule problems. From StackOverflow to HN and everything in between.

Again, not an easy problem to address.
Because Devs said so. They have been hyping this game for over a year and still dont know what, if any gameplay there will be in it.
I believe they have $1M-$2M.

I don't have advisors. Thank you very much for offering to help! I'll send you an email.
You've shared a community with 'raganwald for 1552 days, long enough for you to know that he doesn't write "insulting garbage". You don't have to agree with him, but you should be collegial regardless.
The most insecure channel is likely the insurance company that's retains your medical records (sorry, "billing data") indefinitely. I'm three for three on past health insurers getting hacked and disclosing everything, and have more worthless third-party "credit protection" settlements than I could possibly use (just enter your SSN!).
Fish 2.2.0 Released – Smart, glamour and user-friendly terminal emulator
Why is english the language of programming?
It's always interesting when datasets show something much different from the accepted historical narrative.
No he wouldn't that type he is positive about.
A company that has taken 1-2MM in funding is going to find it difficult to give a key hire 10% of the company. Just for what that's worth.
That seems a bit low, for a well-funded company. $1 million per employee is more like the going rate. See for example:

http://www.quora.com/What-is-a-typical-deal-structure-of-an-...
What's the point of a singleton when you can just have variables in an anonymous struct at root level, and functions defined at root as well?

var server struct {
host string
port string
}

func serverStart() {
server.host = "..."
server.port = "..."
}
The article seems to be quite US centric when talking about regulation. The UK banking market is very different than the US with just a handful of banks. The regulator is actively trying to increase competition. Atom, a new challenger bank just got their banking license and Mondo (where I work) is on its way.

We are looking to differentiate ourselves by simply not sucking, providing features people want when they want them not two years later. Water bill doubled this month, we'll flag it. Salary not come in when it should have, we will send you a notification.

Api? Yup
Agreed. Current Features is the #1 reason you'd buy from a small business. Road map of features is why you buy from a big company.
> And just as handy as global variables.

which means not really handy in a non-thread safe context.
Depending on what you are trying to implement - passing an extra variable everywhere is just creating noise (because potentially you have to have an extra parameter to EVERY function or method). I believe in KISS - everything should be as simple as possible but not simpler. Believe it or not there are valid uses for a Singleton which, many would agree, include a simple logging class [1].

One could argue that you could just create it in the section of code you want to log - but that just creates noise and you end up repeating code.

logger = Log() # run code to open the file to the last position
logger.log("test")

vs

Log.instance().log("test")

Now imagine this was a multi-threaded application - singleton arguments are much different.

> Singletons are really just as bad as global variables. Why? Because they are global variables.

Everyone has their own opinions - but you can't make sweeping generalizations. I'm not saying a global variable is appropriate in every situation - but every language, and project, is different. There are even different dialects of C++ [2].

[1] - http://stackoverflow.com/questions/228164/on-design-patterns...

[2] - http://www.reddit.com/r/programming/comments/197dn1/introduc...
Just like a HN post one of these days about desktop apps still being relevant despite web apps

Interesting. Do you have a link to that post?

Thanks
My experience with Magit:

I played around with it, and didn't see any advantage over using git commands.

Then I tried pushing a change. I was expecting some confirmation on what refspec to use... but no! Magit pushed my change directly to refs/heads instead of refs/for, completely bypassing gerrit code review.

I got burned. That was it; I'm never using Magit again.
Starts by talking about a discrepancy between technology and law, and I agree, but not in the way Comey is saying.

The discrepancy is that where once communications we considered private (loved ones, close friends) was generally face to face and phone lines were just used for business or more innocuous conversation, now all of it takes place along these lines the FBI and NSA want to have access too, along with personal information and other stuff that used to be only physical.

The discrepancy is that they want the law to grant them powers as if the internet is just a different type of phone line from the 60s.
Service solves problem == feature.

What happens often is that you get a sale because you support some oddball feature.

Your best bet with SaaS is try to do that. Find a cluster of customers (realtors, doctors, train hobbyists) and over support their oddball features and get a good rep for supporting that vertical. Word of mouth within the cluster will get around (person to person, vertical forums, etc) and you will dominate that space. Once you are the big fish in that small pond feature set, branch outwards to other ponds.
What Is the Truck Factor of Popular GitHub Applications?
Or, "how I became comfortable with my drug abuse and began to rationalize it publicly".