skysight-inc/HackerNews huggingface dataset:
> To properly mimic this property with yes/no questions, you will have to come up with questions that divide the whole Earth's population equally AT EVERY NEW QUESTION.

Not only that: The first question must divide the population in 2; the second question must divide each of the 2 subsets produced by the first question in 2; and the third has to perfectly divide the 4 subsets produced by the second... And this independently of the order in which you make the questions.
Yeah, but it's their frickin daughter. I think we can give the two of them a pass for having a hard time letting go.
Remotely related question: How do transactions get into the blockchain? Who manages the blockchain? Do others see the IP address(es) related to a transaction?
"not until I saw the newsweek article and I thought 'thats me!'"
That's what I mean about bogus stats. I never power my phone off (why would I?) and its got 3G internet everywhere I go, therefore on the graph by the same logic I have 24 hours of mobile use per day.
There is a fundamental point here that really bears thinking about.

Software design has as a fundamental problem being able to express yourself in a way that is clear and remains clear as things change. Basic principles of good software design, like reducing cohesion, remain good principles no matter what "paradigm" you think you're using. When you change paradigms, be aware that the basic principles remain the same no matter what label you give them. And since design is all about tradeoffs, if you are going to have to violate a principle, you might as well do it in the clearest and most straightforward way possible.

Let me give an example. A singleton is bad for all of the reasons that a global variable is bad. If you need one, I prefer to make it a global variable simply because that is honest about what design principle has been broken. (Unless I want to make it lazy - then it is easier to write with a singleton!)

So learn the principles. Figure out what they look like and are called in your paradigm. Get on with life and solve real problems.

Let me give a concrete example. I learned more about good OO design from the first edition of Code Complete than any other book that I ever read. Even though it was entirely about procedural programming. Because the principles that it discussed, from how to name functions to the value of abstract data types to information hiding, all apply directly to OO. And to functional programming. And to aspect oriented programming. They are truly universal. Learn the principles, they are more important than the labels.
Been without cable since 2004..haven't missed it a day...on the other the productivity boost is priceless.
The patent troll behind this, Eileen Shapiro, has a book on management on Amazon. Laughable. http://www.amazon.com/Fad-Surfing-Boardroom-Managing-Instant...

I'd also like to point out that she's on the Board of Advisors for marketing/PR agency HB Agency: http://www.hbagency.com/about-us/board-of-advisors/
To my mind, it's an argument for explicit definition of data structures (from me, not Linus).

It seems to me that structs and/or objects do that pretty well. I'm not sure what you're talking about with 'opaque object structure'. class MyClass { member1, member2 } seems pretty transparent to me.

Anyways, I was just explaining why many people prefer to have struct/object definitions separated from the code that operates on them. YMMV, you don't have to agree.
I know the docs say it has to be a bunch of zeroes at the start, the actual test is whether or not the generated value is below a certain number.
Replying to myself to say that I added color support. If you're using Firefox or Chrome (which I believe are the only two browsers that support color in the console at this time), then your stream names will be printed in color. This really helps the console to pop and be more legible. You can view a demo here: http://jbail.github.io/lumberjack/demo.html
I will pick a minor nit: classes, as we know them from C++ and Java, are about coupling data with behaviour, not decoupling. You bind a specific data representation to an interface for working with that representation opaquely, in the hope that no one inadvertently depends on your innards. Most other languages do it with modules.
Insertion sort is almost always faster than bubble sort and just as easy to implement, so no there is no reason to implement bubble sort that I know of.
If you have a datetime object you can stop thinking about the fact that it's internally implemented with e.g. ticks since the epoch. In fact, you don't care anymore what data it depends on, because you only depend on behaviors.
Latitude, longitude.
I think we're mostly in agreement, @dj-wonk. Objects are about bundling that state and behavior, nothing more. How they're created or instantiated is secondary.

It's unnecessary to create classes for functionality when it's unnecessary to create objects for functionality. Here's an eloquent article on that subject:

http://me.veekun.com/blog/2013/03/03/the-controller-pattern-...
"Informing weirdos and prudes that their opinions are irrelevant and they don't matter is one of 4chans specialities."

Its hard to imagine politicians not pandering to the prude weirdos or neopuritans or whatever they call themselves and instead embracing 4chan or reddit (or HN?) culture, but maybe its inevitable?
Have you played vanilla Civ5? 2 extensions and particularly Brave New World added a lot to the game, making it more deep and interesting. I wasn't a fan of vanilla Civ5, got pretty bored after some games, but with the extensions I could enjoy it much longer.
Japanese society frowns on individual initiative and risk-taking, favoring instead preserving a harmonious fabric of society and doing what your seniors expect of you. Notice how Ms. Namba had a U.S. business education.

And yes, that she is a woman is both enormously significant and not all that surprising; she is going to be bucking Japanese norms anyway, so why not go whole hog?
Good article! Especially this advice:

> If you are in high school or college, I would highly recommend using free/cheap online resources to get comfortable with programming languages and concepts, and then take some Computer Science courses to learn fundamentals and formalize your knowledge

However

> For all of the hardcore Web 1.0 programmers who say “Don’t Learn to Code”[...]

I'll leave aside the weird "Web 1.0" "hardcore" qualifiers (seriously, what's up with that?), but note that it links to Norvig's "Teach yourself programming in 10 years" piece. Why, may I ask? Is Norvig discouraging the reader from attempting to become a programmer? Of course not. All he's saying is that if you want to get good at it, you have to put in lots of effort for a long time. That's how you get good at anything. I mean, take the guitar for example. Nobody's going to question that it takes daily hours of practice, sweat and blood (literally, you'll bleed from your fingers) to become a guitarist. So why does programming have to be any different?
Maybe not as much, but I have to say that in regards to bitcoin, this is the most HN worthy link so far.
Show HN: Hire a car expert to help you buy your next car
Launching and looking for feedback. Car Scout pairs you with car experts and negotiators to help you find, inspect, and save money on your next used car purchase.
Twilio has a great site which lists some providers that use their technology. https://www.twilio.com/showcase/breakout/call-center-and-hel...
So we're not talking about the religious motivations of the bazillion people who never even met the woman anymore? We're attempting to impugn the husband's motives by implying he wanted her dead so he could date someone else? How does that even work, why would he need her dead?
I'd like to tie this to languages and their age.
I feel like young languages have a tendency to advocate only one of those, and as they mature they engulf most or all of them.

C# used to be all about OO, then it got FP (lambdas), and dynamism..

The extreme example could be Lisp, in which you can do pretty much any of the paradigms you mentioned.
Wikipedia cofounder Larry Sanger is working on something similar, not yet launched, called 'Infobitt':

http://infobitt.com

(Unsure if that'll be its launch name, and there's certainly room for multiple approaches in the faster/fairer news space.)
Disruptions: If It Looks Like a Bubble and Floats Like a Bubble…
It's pretty simple... is there a DNR in my hand that hasn't expired and has been signed by both the patient and a doctor and hasn't expired? If yes, then don't initiate resuscitation.

Obviously a DNR could be forged, but baring obvious cases of forgery (which I've never seen), we're not liable for honoring a DNR that we reasonably believe is valid.
Progress does tend to be sort of helical, doesn’t it?
>> victim teaching at a school was treated like the perpetrator
> I thought the problem was people calling (i.e. harassing) the school about her?

No. People calling was problem of the school. Treating her like perpetrator was her problem and her workplace was at fault there.
Would be awesome if I could actually read the article in question. Love that the overlay has id="DRMUpsell".
There are alternatives. I use the fish shell for interactive work, and python when a bash script surpasses a certain complexity.
Politicians aligning laws to maximize corporate profits is not exactly unheard of...
He's only 32 years old. He looks like he's pushing 40.
"International Newspapers Threaten to Charge for Articles"

Of course, unlike newspapers, there's a long-standing existence proof that banks can survive and thrive without charging for deposits, and plenty of competition to smack down those who think they can get away with such silliness.
You need a Deliverator for that, they weren't invented yet.
How do i bill for open source software?
Hi,

i have an idea of a startup which will change a lot in security field, post-Snowden. The problem is, it will only make sense if it's open source (because otherwise it can't be trusted). How do i bill for this? It is about 80% for corporate market, rest of privacy-concerned individuals (power users).

Any idea is appreciated.

without solving this question, i will probably never move past MVP because it's hard to get funding without a solid way to bill your users, few will pay if they can cut a few lines from code, run make, and have it for free.
Hmm, sounds like you've never written batch files, the ultimate in "suck", but then you mention PowerShell, so I'm not so sure.

Anyway, I enjoy using the fish shell, and you may too.
Noone says it's only America. Only that it's not sane.
The WSJ had a great article along these lines last week.

http://on.wsj.com/1durT8S
This is just as much of a "cool hack" as the latest trend i've been experiencing. Sales droids have been emailing my personal email address to try and sell and pitch me. As a result of the latest and most persistent one, I'm pushing to open source our internal alternative for that product.

Most of the top execs at my company (fortune 500) have internal only email addresses now, because of crap like this.
I think you're conflating languages that strongly support OO with OO itself. OO is a paradigm, a way of organizing your program. Using classes (meaning, as a language primitive) as namespaces and not as, well, classes is specifically avoiding OO programming. That's fine and, like you said, perfectly pragmatic, but it's not writing "functional code in OO". It's just repurposing language primitives that were designed for OO .
> I'm pretty sure that part actually is crazy.

Ha, yeah, fair point and reasonable analysis. The dozen misleading graphs that don't quite support his point are looking more suspicious by the minute.

I kind of want to call Jim Edwards and tell him this is an interesting direction for a story, but he should probably chuck this rough draft and start from scratch before someone accidentally puts this on BI's site.
I miss Pointcast and I wish there was something like it today.
I think the $0 price point is extremely different from $0.01 or more. It's an entirely different category in our minds. We don't think, "this game is so cheap that it's free", but rather, "this is a game that the author decided not to charge for."
Encapsulation makes sure the data is hidden away, and, in theory, is only accessible through methods, which may, or may not internally use the same data.

For example this pseudoclass

public class Sum1
{
private int _a, _b;
public Sum1(int a, b)
{
_a = a;
_b = b;
}
public int ReturnResult()
{
return _a+_b;
}

}

And this other pseudoclass

public class Sum2
{
private int _tot;

public Sum2(int a, b)
{
_tot = a+b;
}
public int ReturnResult()
{
return _tot;
}
}

Have the same behavior/functionality but depend on different internal data - in this sense the data has been decoupled from the functionality: one can treat the class as a black box - the coupling happens in the implementation of the class, but not anymore in the design of it.
Well, she's not going to sign the papers or get custody. Or if you have power of attorney to sign the papers there might be some conflict of interest.

On obvious solution is to not get married again and just shack up. Its the more intelligent thing to do anyway.
These machines are designed for very specific workloads. Don't expect to be able to run Oracle or Exchange on them.
Well... I like the saying "When the student is ready, the master shows up". It's not about providence though.
> a new shell is started on each iteration

This is not actually true.

printf "\n\n\n" | while read i; do a="x$a"; echo "$a"; done
x
xx
xxx

The accumulator value even carries over after the while loop:

printf "\n\n\n" | ( while read i; do a="x$a"; echo "$a"; done ; echo "$a" )
x
xx
xxx
xxx

(Technically, whether or not the loop body is executed in a subshell may be implementation dependent. Haven't looked at the POSIX shell spec in a while, but I seem to remember an old ksh that actually used subshells. At any rate, none of the modern sh's and bash force a subshell.)

What is true, however, is that a pipeline will execute in a subshell. Maybe that's what you're getting at here, and it is an important caveat.

a=y; printf "\n\n\n" | while read i; do a="x$a"; echo "$a"; done; echo "$a"
xy
xxy
xxxy
y
> Wouldn't that get rid of the troll?

That depends: in some cases it appears that they've tried things as blazen as having a shell company which licenses the rights to sue for a patent but doesn't actually own it. If the shell goes bankrupt, the only “asset” is that right to sue, not the actual patent, and the people involved are free to simply try again later.

If you haven't looked at this before, This American Life had a two part series with a good general examination of the system – spurred by a troll running around suing everyone who podcasts:

http://www.thisamericanlife.org/radio-archives/episode/441/w...
http://www.thisamericanlife.org/radio-archives/episode/496/w...

> Also, would it be possible to seek legal expenses from the shell corporation's creditors?

That's a really important question. The assumption has been no but there have been attempts to try RICO cases[1] and it sounds like the entire legal climate is getting more sympathetic to the idea that what we're seeing is extortion, pure and simple. Most of the legislation floating around Congress at least made some attempt to deal with this part of the problem but, of course, none of that counts until something is actually close to passing.

1. e.g. yesterday's story: http://arstechnica.com/tech-policy/2013/11/findthebest-destr...
I just stuck one end of about 3 feet of hookup wire into the antenna port on my TV and it worked fine. I made one of those HDMI antennas from instructions off the internet, and it only works marginally better.

The interesting thing is I could pick up channels over the air that were not on the cable TV lineup.
Well. 12% of the photos of the victims that she was trying to locate were self uploads so there are people who not only don't care if their nudity gets published. They actually want it.
I think this is why iOS is crap for gaming. I have yet to find an actual good game with some depth for iOS despite having a far larger market than when a lot of the classics where put out like all those pool of radiance games. I mean Boulders gate EE had an IOS port but Boulders gate 2 EE did not despite having the same game engine.
The cable and phone companies need to realize that they are ip providers only in the future. Either get with that picture or die. TV is moving to internet distribution (has moved for many) and mobile phones are computers with a voice modem that's not really needed. Just compare the audio quality of facetime audio to a phone call to appreciate the difference.

Mind you, what do i know, I gave up TV in 1991 - there's just for more to do on the internet.
Your whole argument about buzzwords is unfortunately contradicted by the linkbaity title. One goes in to the article expecting some flaw in Javascript, instead to find out that the topic is waaay broader. Both the use of buzzwords and linkbait titles are pretty similar....
Create SHA1 Message Digest in Java
All of these updates can be turned off ... that's part of the point of Google Now. You choose the categories of things you want to be notified of.
X-rays reveal another feature of high-temperature superconductivity
Amusing but the 4KB page still has a 20KB+ Google Analytics javascript attached to it.
Do you have any plans to add RSS feeds?
You should probably just be whatever sort of developer gets you the job. If someone posted a listing for a "JavaScript Engineer", they probably don't know the difference between a good programmer who happens to have used JS for a while and someone who exclusively uses JS. So what the hell, go ahead and call me a JavaScript engineer if it helps you sleep better and justify hiring me to whoever you report to.
I agree with the premise that one shouldn't associate their title with a specific technology but I stopped reading when the author suggested Java doesn't make the short list of employable skills/technologies.
Seems good although Quartz (http://qz.com/) daily newsletter seems more than enough for me.
reminds me of summly
Just trying to get the ball rollin.
Crowd-sourcing citations, conventional wisdom, and syllabi seems rather distinct from "the authority hierarchy", and the ROI is far more massive the further up that food chain you are, right? probably worth keeping in mind...
Not everyone is the same, for some it doesn't go away as easily. I've heard plenty of stories from talented artists, makers, and devs of falling into that mentality. It can be difficult to kick for the reasons I laid out. When it's hard it feels like you're a fraud, when it's easy it feels like you're cheating. It's not true, but people should be aware that these sorts of feelings are pretty common.

I'm reminded of the scene in Office Space where people are brought in an asked to describe what they do. That sort of thing is harder than one may think, it can be difficult to fully sum up how one works and in what ways one's skillset and expertise is valuable. For several years I had a job that was very difficult for me to describe to others succinctly. Mostly because it was hard to explain what I did if you didn't know many other details of the development process within the organization, some of them highly technical.

To use an analogy, it's a bit like asking why Beethoven is good music (without falling back on popularity). To express such things succinctly can be quite difficult, more so if you're put on the spot. Most people don't spend hours and hours thinking about how to justify the value of their own work, because that sort of thing can seem egotistical, more so if they already suffer from imposter syndrome. And without doing that when they put themselves on the spot they'll fall into the same trap of not having a good answer.
Love that quote & scene.
> IMHO GitLab is easy to set up compared to something like Postfix. Making a GitLab server do what it's supposed to do is straightforward. You just follow all the steps. Making Postfix work as a proper mail server is kinda a mess.

Heh, I feel exactly the opposite.
Viruses seem so weird to me. They're naturally emergent nanobots.
Money really became worthless. People have to pay other people to take it an store it.
haha I didn't really know how to qualify them, I just was making the distinction that people who were programmers before the 2001 bubble, or basically "programmers before it was cool", have a different perspective than startup kids because their work has been on enterprise software. Very different than making a iOS game or personal resume site (which is what a lot of people want to do).
It doesn't seem too different in scope from the Army's intel analyst course at Ft. Huachuca. At least the reporting aspects of the job.
[updated it]
> I'm guessing what you really mean is you can't watch it when you want to, you have to wait a little while longer.

This is a pedantic restatement of the original point. It's still the fact that there are many cases where the copyright holders choose not to make something available in any form for people who don't live within a certain region or use a specific technology. They might change their minds in the future but until that happens, the only intellectually honest description is “no legal way”.
While I agree that an argument of the form: "Well X does Y too, so Y is not that big a deal." is fallacious and poisonous, I do think it is important to talk about issues like this in their larger context and I feel firstOrder's comment mostly kept on the right side of that line. (I guess I think the context of the first paragraphs is important but the latter paragraphs verge on something that's less about adding context and more about excusing things.)

In this discussion, it is important to have the context that many governments engage in this behavior. Not so that it can be excused, but so that when we discuss how to deal with it, we can do it in a way that's informed and tackles the actual issues including the nuances of escalating bilateral cycles.

While I think it is perfectly reasonable to make a moral and ethical judgement based on a unilateral context, but it is a mistake to examine the foreign policy without discussing the bilateral or multilateral interactions that help create and sustain it.
Indeed, and that makes it even scarier.
In the situation I described, review [of drawings] was part of the QA process, and going through the QA process was a requirement before anything was "shipped" [sent to the plant for fabrication]. So all that happened was that the normal roles for junior and senior staff were reversed for a small portion of the normal work-flow [i.e. a senior staff member did a lot of QA and a little production and a junior staff member did a lot of production and a little QA].

If review was just something that was done sometimes [and those sometimes being either slack periods or seen as part of correcting a situation in need of remediation] then it would not have made sense. It was only due to the fact that the junior staff member's sign-off was required "to ship," that the process was meaningful.

One of the side-effects was that some of my wild and crazy ideas that arose from not knowing any better were identified as seriously off target. Another side effect was that some of those wild and crazy ideas got adopted as standard methods because they worked and improved workflow.

If it isn't clear, I don't think code review assignments as punishment or busy work are worth pursuing.