skysight-inc/HackerNews huggingface dataset:
* What this often means, in practice, is that it provides a structured way to write spaghetti code. *

I've had to refactor code that my co-workers have written several times because they end up throwing code in a class where it works but doesn't "belong".

For example, the REST API I'm building has thin controllers, thick domains, and thin data access layer with various supporting models. I had a co-worker write a Domain object that acted like a model (a single object that should be instantiated, properties set, and a calculation function run).

I had to refactor all his code out into a reusable model and then build helper functions in the domain for the controller to consume.

Whenever I see that I need to do the same type of operation in multiple places, it tells me that code should probably be consolidated into a structured class to make sure that any bugs in the code can be fixed in one place instead of a dozen.

So in a way the code was structured in a class but was still a mess. OOP isn't just about classes and inheritance but about structure, architecture, and how classes interact with each other.
I've never understood these sorts of statements. You can write spaghetti code in a functional language too. Instead of objects floating around, you have functions. Instead of objects interacting with each other in various ways, you have functions interacting with each other in various ways. You can "build programs by accretion" in any language. Ultimately it all comes down to complexity. Simple code is simple, complex code is complex. You're not going to magically get around this by switching to a functional language. Right?
Yeah I like it. Super convenient, no registration, no adverts and with CISPA passing today, not having to worry about the government peeking into what seeing what files I share is a definite perk.
Nike Lebron 10 X Prism Grey White Green New Cheap for Sale
Clearly I hit a nerve by praising Apple. You can argue that they're doing things contrary to what some user's might want, but I have a hard time seeing where they're doing it for self-interested reasons.

As far as I can tell, the people on the ground there genuinely believe what they're doing is what's best for their users. That's quite a bit different from knowingly sacrificing user experience for something you know isn't best for your users.

It's a shame that the leading comment on hacker news is that smarmy and user-detrimental business behavior is a good thing. Then again, the audience is as much "startup hustlers" as it is hackers, if not more so.
The figure I've seen is $2-4mm (based on payouts from life insurance by the government, etc.), but this was a few years ago, so maybe inflation.

Obviously there are huge differences between humans.
This is Amazon affiliate spam... check the `tag=...` in the book link.
I did not get this email.
Tech-related question:

How far are we from having sufficient facial recognition technology that we could clip a photo like this, drop it into Facebook image search (or whatever), and the person would come up? Is that feasible with today's technology?
I haven't read the book and dunno about PG's definition of spaghetti code, but "we can make all these types of modifications without even looking at the rest of the code" sounds like the opposite of what all people I know call sc. I thought that a necessary property of spaghetti code is that almost everything is connected in a way so you can't make a change by only changing something in one place because everything is connected in weird ways because of the lack of structure, so you need to keep the whole program in your head while working on it.

Isn't the whole point of well structured programs to be able to work on them while holding as little of the program in your head as possible, so you can work on part of it and be able to "make all these types of modifications without even looking at the rest of the code"? If you have a program that can "evolve" successfully without the need for anyone to "hold it in its head", then a large team can work on it and you can usually replace a 10x programmer with a swarm of 1x ones, basically a pointy haired boss's wet dream...
Agreed. I generally feel incredibly safe around Cambridge in general- let alone on Boylston St near the library, or anywhere on MIT's campus. At most I'd expect to have something stolen, car broken into or a common mugging around there- not a random shooter running around.
I'd take citizen journalists playing fast and loose with the rules of journalistic integrity over the mainstream news media which sold their soul long ago.
Help me raise $500 for Python Software Foundation with tees
This is a bit misleading since the Excel error in question merely overstated the magnitude of the impact of high debt, not the direction.
Actual High Res: http://graphics8.nytimes.com/images/blogs/thelede/posts/susp...

Bottom left corner.

Edit: Higher Res
What do they do to prevent fraudulent charities?

E.g. a "save the seals" campaign that spends all its money on lavish salaries and helps one seal a year?

People paying only one dollar are unlikely to do much research.
Google's One Today brings app store scale to charitable donating
April is the cruelest month.
Alan Kay's idea of OOP-- encapsulate complexity behind a simple interface, and separate the two while preferring stability in the latter-- was utterly sound and right. He wasn't saying, "go off and write opaque, complicated objects". He was talking about what to do when complexity becomes inevitable.

The SQL database (a brilliant, wonderful thing despite the hatred it gets) is an example. When you write a query, you don't tell it which indexes to hit and how to micromanage details. You send a declarative query to this "black box" that, most of the time, does the right thing.

I think Objects are a good thing, but they should be rare. Very rare. As with macros, only use them when the simpler tools (referentially transparent functions, immutable data) won't do. Files are a case where the object metaphor makes sense-- there's a bunch of tightly-wound connected state, and I/O is inherently stateful.

The problem with "OOP" is that it's "programming as micromanaging, inept businessmen understand it". Instead of math, it's Factories and Visitors and other nonsensical "big picture" bullshit that doesn't map in any coherent, reliable way to the underlying substrate (mathematics, logic) of computation. I'm sorry, but programming is a game where if one doesn't understand the details, one doesn't understand the fucking big picture (which is made up of extremely important details).
>Edit: Why all of the down-votes, is my response offensive?

Because you described "1/3 of the internet" as "a miniscule proportion of ones' users", probably.
So the download links just redirect to an S3 URL. What's to prevent someone from sharing the URL of the file itself and bypassing the quota?
The excel error:
Coding Error. As Herndon-Ash-Pollin puts it: "A coding error in the RR working spreadsheet entirely excludes five countries, Australia, Austria, Belgium, Canada, and Denmark, from the analysis. [Reinhart-Rogoff] averaged cells in lines 30 to 44 instead of lines 30 to 49.

http://www.nextnewdeal.net/rortybomb/researchers-finally-rep...
A fair number of muggings with knives/guns in Cambridge, though. (I had someone pull a knife on me near the Harvard Bridge Boston side late at night).

"On campus" is kind of a more vague thing with MIT than with some other schools, since it was in the 1990s and before a very open campus in the middle of a city, with a few major roads running through it.
Why increasing employee engagement is a waste of time
Screw that. If you can get through it you will be fine. Even if you can't or decide you don't want to you will be fine but life is a lot of work either way and it can wear you down.

I gave up. Stopped going. Dropped out. That was a mistake. (Or maybe it wasn't) It took me roughly ten years to recover and get back to what I had originally wanted to do. Is programming what you want to do? Not school, but creating something with your mind and a text editor? If so keep at it. If not then find something else because life is actually really short.
Pardon my ignorance, but aren't the pipes that actually go to Australia relatively small? So, wouldn't this just increase burden on those interconnects and maybe not help unless connecting to somebody else in Australia?
Interesting. Whenever I see aggressive confidence in an interviewee, I immediately think Dunning-Kruger because statistically it's by far the most likely cause. Either way it's down to empirical evidence though.

Anyway, as far as anecdotal evidence goes, I tend to intentionally give off a pretty neutral vibe and rarely worry about flunking an interview. (I chalk it up to mad skillz rather than body language though.)
That's good enough for someone who knows him.
I heard there was a break-in at the VUDU office. What happened?
Thank you. Hopefully you can actually use it
This article just seems to reinforce how the markets really are only driven by greed and fear. Obviously fear is driving this downward trend. Legitimate that Apple is potentially butting up against some growth constraints, but it seems ludicrous to me that Apple would be trading at a $9 price/earnings ratio while LinkedIn would be trading at a $914 price/earnings ratio. That seems a little misguided to me.
My bank does that with bills. Honestly it is one of the reasons why I hate my bank, but the worst part is I can't turn it off.

Just send it to me, my email is better protected than your site anyway.
It's not about being able to access 1.x in the long term from a CDN. The problem is whether it will still be supported. If there are bugs in 1.x, will they be fixed? Will 1.x support Chrome v40 and IE 15?
I think Clarke and Dawe did a fairly decent video on the LNP alternative. http://www.youtube.com/watch?v=TptIs0k-spg
> So Google's not getting $39m worth of stuff for $1, they're getting $39m worth of assets plus $Nm worth of liabilities (where n > 39) for $1.

Pete Ashdown of Xmission says "Google will not assume any of the debt, the Provo city taxpayer will continue paying that."

http://transmission.xmission.com/2013/04/18/the-1-fiber-opti...

Who is right? I haven't looked into it.
Whats the harm in shipping both? I love that Google is doing this, and I hope all the best for people that benefit from it, but the term "Google" is not synonymous with _charity_ for me personally. Get your app out there with some official branding from respectable charities ("certified by the red cross etc") and I would DL yours just as quick as I would DL something similar from Google.
Ask HN: Copy texts to clipboard via pure javascript?
It's 2013, is there a way to Copy texts to clipboard via pure javascript ? meaning without flash, targeting iOS devices, thanks.
Just FYI, most of this is a lot easier in python. You can get the full stack trace and all of the values of all of the variables when there is an exception, something that is orders of magnitude more difficult to do with Java/Scala.

You'd have to be a bit creative to get the "full variable value history" stuff working, but it would probably be possible with some hacking on the setattr methods for your objects (assuming you have full control over the system)

I had a bunch of code like that for my previous (python) projects. I've really missed it now that I've moved to scala/java, so I'm pretty excited for this project.
Wow. Now that's some cool shit. Great job!
Deployment/distribution can be handled by bundling the app. For Python 2.x, there's PyInstaller[0], Py2App[1], Py2Exe[2] all of which do much the same thing: make a single binary out of a python app and all its dependencies including the interpreter. Then you distribute that and don't worry about what the user has or hasn't got.

[0]http://www.pyinstaller.org/
[1]https://pypi.python.org/pypi/py2app/
[2]https://pypi.python.org/pypi/py2exe/0.6.9
Just for the record, Roxbury and Dorchester are part of Boston proper, and gun violence is those neighborhoods are unfortunately too common:

http://www.universalhub.com/crime/dorchester.html
http://www.universalhub.com/crime/roxbury.html

(I have family in Roxbury, Dorchester and Mattapan)

Generally speaking, the areas around MIT and Harvard are relatively safe, although muggings and petty theft aren't unheard of. Things have been a lot better since they cleaned up Central Square in the 1990's.
My uni has just that, and the nagging question I keep asking myself is just how much money are they spending on that service that is profoundly useless. When there is an emergency the police show up damn quick, and there is nothing to be gained for people on the other side of campus to receive a text that building X is on fire. I feel the money would be of more use elsewhere.
isn't it covered enough by mainstream news?
I agree that most of Cambridge and much of Boston are very safe and gun violence would be big news. But there are neighborhoods of Boston (ie officially part of Boston) that have shootings frequently. They are never reported unless there are deaths, and even then many people don't take notice.

Note that the following link only include incidents in which bullets actually hit people. http://www.bpdnews.com/wordpress/wp-content/uploads/Shooting...
If you have a program that can "evolve" successfully without the need for anyone to "hold it in its head", then a large team can work on it and you can usually replace a 10x programmer with a swarm of 1x ones, basically a pointy haired boss's wet dream...

Why is that the PHB's wet dream? I mean, by observation I agree with you. That is the case, so I am not challengingyou on that. But what could be the underlying reason, seeing as 10x programmers are only 1.5-3.0x as expensive?

It seems like PHBs shoot themselves in the foot, repeatedly, without mercy.
It would be a huge security issue if this was possible. Imagine every site spamming whatever they wanted into your clipboard.
How is that not low-risk arbitrage? Good HFT strategies typically have returns of 10-20% daily on capital, there's relatively little risk holding long to allow your strategy to trade when you cover the maximum possible cost of carry in a week.
Speech With Milo Featured on the App Store
If anyone is in St. Petersburg, I'm in town for an academic conference and would love to meet up sometime this weekend!
Pissing off your users is always a bad design.

In this case it is why I don't usually click unsubscribe, but either set up a filter or report it as spam.
Are you kidding us?

You cannot compare 'human lives' by comparing dollars. And surely, the site does not "cost" one 50th of "a" human life.
Not nearly enough! By reposting, we increase the chance of the case being solved using our expert skills.

HN needn't fear, though. Reddit's on it.
The image linked at the bottom of the article has a higher resolution version of the photo that what you linked.
I don't know much about the pipes actually, but I do believe a new one is being constructed. That said, I am curious to know the answer to this question too.

I guess torrenting within the borders will be a speedy affair however.
That's cool, $500 is a good amount if you can manage to do it. I purchased myself one!
I enjoyed how he brings up and then completely glosses over the fact that:

"Once a city is routinely surveilled, the government can turn every indiscretion into a criminal matter. You used to be able to speed down the street when you were in a hurry. Now, in many places around the world, a speed camera will record your behavior and send you a ticket in the mail. Combine cameras with facial-recognition technology and you’ve got a recipe for governmental intrusion. Did you just roll a joint or jaywalk or spray-paint a bus stop? Do you owe taxes or child support? Well, prepare to be investigated—if not hassled, fined, or arrested."

An idea also notably absent: the current amount of surveillance we stomach as a nation has helped and continues to help in many criminal investigations.

From what I understand about terrorism, many times the terrorists don't get a chance to leave the scene.
Ann Curry “tortured” by co-anchor
RT @NBCConnecticut: #Breaking : Mass State Police confirm #MIT officer wounded in shooting has died.
confusing and overfeatured?
Doesn't matter. The credit bureaus mix people up all of the time, particularly if you shared a name and street in the past.

My wife and mother in law share a first name. And a middle name that varies by one letter. (Ie. Mary Ann and Mary Beth) credit reports routinely mix them up.

When I was in school in 1996, a collector managed to get a business debt of my grandfather (who shared a name and died in 1986) attached to me.
There's a working draft for an html5 clipboard API but as far as I'm aware it's yet to be implemented in any browsers.

edit:
http://www.w3.org/TR/clipboard-apis/
clamav is GPL and has a virus database. I used it at a previous job to scan email and a samba file share.

I couldn't find a download link but if you install freshclam it will download the signatures for you.
I didn't really mean to imply that that's how the experiment was initially performed -- or that there's no correlation between poses and hormone levels.

I was more wondering if the results could be replicated with different poses (and a different context).

Then again, if people already "know" that the poses are (relatively) high or low power (hence are able to "see through" false explanations in an alternative study) -- perhaps the mental state is more important than the actual pose.
No its not possible, you have to use a flash plugin to do something like this. Check out ZeroClipboard, it works great for my projects
I hope this goes through, I am excited about the shirt. I am in for 2.
Do Teespring allow you to sell polo's? I'd definitely buy a couple of polo shirts w/ Python logos on the chest to wear at work, if they were available.
Windows azure price rise after GA
It would be better if you have hired or asked a designer. Why didn't you just type Python word in the same font? I wish you luck, here's my 5$.
I don't disagree. The documentation needs work.

That said, the compiler needs a lot of work as well, as those who have used the language for any amount of time can attest to. Everyone sees the dreaded "internal compiler error" message. Everyone encounters borrow check and code generation bugs. Everyone misses a working package management system and pretty printer. Everyone bemoans the slowness of compilation for small programs. These are things you just didn't see for Go when it was announced--because it was Google-internal then.

We intend to fix the documentation before calling it 1.0. But compilers are complex, especially for a language with a rich type system and a nontrivial static analysis built in (the borrow check). There are many things to do, from documentation to bug fixing to feature work (macros and default methods are unfinished) to tooling work.

Note, however, that the code examples in the documentation are kept up to date and enforced via the test suite. So there may be inaccuracies in the prose, but we do perform automated quality control as best we can.
Having never lived in the US, I find it astounding that you could make a comment like that and get so many nods.

I've never even heard a gunshot, and I don't know anyone who ever has.
All files are uploaded directly to a private S3 bucket. Every time a download is initiated through a Dissipate private URL, the user is redirected to a signed S3 URL that is generated with a short TTL. The window in which someone can do that is limited
Why not the 'Arithmetic Error Depression' in place of 'Excel'?

To accurate/concise for Krugman? Must be half a dozen articles about this I've seen now and all have titles suggesting Excel made the error.
It actually did drop. What makes you think it has risen?
Yeah! I'm totally with you - I made a lot of these same points in my TEDx talk last year: http://tedxtalks.ted.com/video/You-Should-Learn-to-Program-C...
So ridiculously simple, I love it!

That being said, would it be possible to add an option to only count a successful download as a download attempt? Right now, if I just hit the download button, the count gets decremented.
Read my subsequent comment. Maybe I should make it an edit because it's really important, but I don't ACTUALLY give a shit, and in fact am actually really happy to see Google seeing the same opportunity as me and my partners/clients. They actually ARE synonymous with charity and have a much, vastly grander vision. I actually hope very strongly to reach out to Google to partner on what they're doing once we go live.
You can't blame google if the government officials were stupid enough to not extract the right value out if their assets
"The MIT officer, a member of the Cambridge Police Department, died from his wounds just before midnight."
"Inheritance breaks encapsulation," the elders said, and as with all extremes, they each have their problems. Language is a lossy codec for math/logic/thoughts, computer languages no less so.
Allow me some time to find the statistics again on this, but from what I've gathered following the NBN debate for a few years now: No. The pipes are more than double our current requirements and growing faster than requirements do due to some funny incentive scheme.

Total capacity: ~2TB/s [1], but the PPC-1 line has potential to add another 2.5TB/s. The others are being upgraded too [2]. "Currently, Australia has a theoretical 5637734.4Mbit/s of transpacific bandwidth, however lit capacity is much less."[3]

"The total international capacity in use for the Australian market in 2009 is estimated to be around 300 gigabits per second."[4]

References:
[1] http://en.wikipedia.org/wiki/Telecommunications_in_Australia...
[2] http://www.itnews.com.au/News/157753,ppc-1-delivers-more-spe...
[3] http://en.wikipedia.org/wiki/Internet_in_Australia#Internati...
[4] http://whirlpool.net.au/wiki/nbn#nbn_faq (See section 5.7 - "Does Australia have the international capacity to provide every customer with 100 megabit internet?")
maybe work at hubba co-working space, couple of coders there. can contact me if you want, contact info: hasclass.com also have sign up at hackerhut.org
Oh God, I can see it now, startup pickup artistry:

"Yeah, I negged that investor twice and then escalated kino, and then popped the termsheet. You're a beginner--try a cold-open with a Paul Graham story and look for indicators of interest."

Yuck.
http://news.yahoo.com/teen-am-not-boston-marathon-bomber-175...
Yahoo Mail for tablets realeased
The point of my comment is that with an imap on <a-j>, you can't input the character ê because it will trigger the mapping. This includes option+i, e on OS X.
Where I come from, we derisively called this "Lasagna code." It's not tangled like spaghetti, but there are many, many layers.
A drivers license is a higher trust level document, as your driver ID and document number can be tied to an actual, trusted physical interaction, and it links you to a physical location.

SSNs are horrible IDs for a variety of reasons. Thousands or millions of Americans do not have valid SSNs or use EINs for personal IDE identification.
Like the where's waldo of "high res suspect photos"...
PHB's tend to measure themselves by how many people they're in charge of; better 10 guys than 1 that's productive as 10. PHB's aren't entrepreneur types, they're middle managers who require underlying to justify their existence, the more the better.
This is possible now. You need a database of faces. You could store and search them without compression in like clouds. Or you can compress them. 7 billion isn't that many pictures.

One problem is the databases of tagged faces typically have passport style photos and not sides. It would be easier with 3d type data of faces, like when we start using depth cameras at the DMV too. Or, we will develop sufficient methodology to figure it out well enough from the existing photos... depth from a single image.

It sounds sort of disturbing to me. Google reverse image search for faces... that team has done it or could do it easily. But privacy.
I've added that to my notes. Really appreciate that feedback.