skysight-inc/HackerNews huggingface dataset:
For point 10:

'_' is often aliased as gettext to ease translation of string:

from django.utils.translation import ugettext as _

translated_str = _('Something to translate')

so using it will overwrite the alias. Instead, you can use '__' (double underscore) as ncoghlan suggests below his answer [1].
or you can use the 'unused_' prefix as Google Python Style Guide suggests [2]
or you can change your code, so you don't need to use '_' as Alex Martelli suggests in his answer [3].

[1]: http://stackoverflow.com/a/5893946/720077

[2]: http://google-styleguide.googlecode.com/svn/trunk/pyguide.ht...

[3]: http://stackoverflow.com/a/1739541/720077
Could you explain the "stresses" in some detail? And if stresses are the problem, why all the talk of inequality? Will the stresses somehow go up if programmers can create even more wealth?
If only FB graph search worked as advertised. However, it's far cry from Google search and knowledge base.
While F&VD does a great job covering many different aspects of image generation, for this kind of work Real-Time Rending[1] is probably more useful. It is firmly grounded in a world of programmable GPUs (shaders & the like), and wastes little time talking about rendering techniques that are not relevant to modern graphics hardware.

[1] http://www.amazon.com/Real-Time-Rendering-Third-Tomas-Akenin...
How I Discovered My Growth Opportunity at Balanced
Transforming Data in Clojure with Map and Reduce
> I personally do not mind levying tons of taxes to level the playing field

My view is certainly tinged by living in a country where taxes are high but public services are mediocre at best, but there's no use paying high taxes if your money is eventually used in a war with Somewheristan, making the owners and stockholders of military-industrial complex companies richer.
The goal is to find something good enough for 80% of people - in the US bars are it and they are easy to organize. So for the US, it's a non-problem. In Pune, it's actually a bit more difficult to organize things.

Whatever group activity you pick somebody won't like it. Last year my company had a relaxation day and went to a baseball game. I hate baseball. Rather than whining like a spoiled child about how it's unfair that they excluded me, I just hung out with a pretty girl, watched Dark Knight Rises and ate some Indian food.
I work for a bank and it's absolutely on us to show that our transactions and treatment of financial information is verifiable. We have to be able to demonstrate due diligence, there is no assumption of innocence when the auditors come knocking on the door, whatever 'elementary logic' may say.

Thats why I completely believe the posters here claiming this wouldn't be possible in a banks call centre. What I don't know is whether PayPal operates at the same standard.
Quite a few people seem to squat on the western style toilets though.. at least that's what the signs forbidding it and the occasional footprints on the seat suggest.
Yes a number of times. Rapportive, Etacts and Xobni were all YC and competitors. YC has also funded a number of competing developer recruitment startups.
>> I have the feeling that at Facebook they tend to half-ass things, like Home or the redesigned Newsfeed.

That's their motto, is it not? "Move fast and break things". It's hard to expect anything well designed with an engineering attitude like this.
Wouldn't two threads possibly run in parallel in a multi-core system?

Concurrency, as I understand it, is dividing things into tasks that can run (to some degree) independantly of eachother.

Parallelism is two or more concurrent tasks running simultaniously.

This if you have one gc thread and one application thread, you have the possibility of them running in parallel.
Use the university provided method - students have to deal with it anyway, most likely, so you're not saving them any hassle. And however slow and ugly it is, it's already built and (presumably) works.
While I agree with you that content-wise it's just your news feed w/ a different look and feel, it seems to be filtered to just articles vs status posts. Furthermore, there seems to be an interest-based category filter.

Consider this. HN is a website community that you trust will post quality content. Similarly FB can also be that way, but the community is your friends. If I can filter this new app so that only I only see a subset of my friends (the ones that post quality content), then this app would be different and valuable, no?
And the "average tax rate for the bottom 99%" is 9%.

1. Mean vs. median. Here be dragons.

2. That roughly corresponds with my experience: it's easy for a USA'er to compute their federal effective income tax rate: the IRS's idea of your income is at the bottom of the first page and the "total tax paid" is about two-thirds of the way down the second. Mine was around 15% for many years; it has gone up lately, but I don't remember specific numbers any more.
That's because scaling is not in the domain of developers, as much as Heroku/AWS/etc. strive to blur the lines. It's in system administration and architecture.
The message, whether informative, promotional, or both, ultimately needs to reach its audience. On both counts, this article failed to reach tbirdz and likely many others.

It wouldn't have been too much trouble to bring those skeptics back to the conversation by adding a short disclaimer closer to the beginning of the article. So why not do it? If the article is going to be both informative and promotional, some will want that expectation to be set right from the beginning. And if the informative bits can stand on their own merit, there's no risk to the promotional side in adding the early disclaimer. (IMO, it's not an unreasonable request, and not without precedent.)
Thanks everyone for the feedback!

I must say that the list wasn't a full list of resources but the ones that I normally use. There are a lot of useful tools and resources most of the tasks can be done by several apps. The point was giving other people a starting point and getting feedback in new apps.

For example, I've been using PS and I've never liked GIMP ... not sure why. But hearing suggestions, like Sketch and Pixelmator, is motivating to start using them.

Another point is price (not value). There're a lot of tools that I find great but expensive for a single developer. I don't say that I wouldn't use them but... the post was getting super long and it wouldn't reflect what I normally use/check on a daily/weekly basis.

Thanks again!
It's not difficult to understand, it's difficult to enforce. Mexico can set up laws about polluting their own water, but how are they going to enforce it in the USA? Same with CA--we can ask China to cut down on pollution, and they'll apparently promise it, but who's to enforce it? Ask more nicely?

Or is it on the factories / companies themselves? Is a factory in China going to sacrifice economic growth so that a Californian can breathe cleaner air? Or is a US drilling company going to buy more expensive formulas so that Mexico city can have clean water someday? These things won't happen on their own.

Ultimately that's the problem, in my opinion.
I would say that Apple's advertising has become far more relatable recently. Most people can relate to a christmas event with a detached kid, or calling home to Facetime with their family. Granted, the people are unrealistically good looking and well dressed, but it's far more down to earth than this Facebook piece. I found the overly-hip nature of the characters in this extremely un-relatable. I could feel the jealously and dislike inside me. I know that's horrible, and I suppressed it like a good social being, but it was there. Advertising shouldn't create those kinds of feelings. I don't know what the trick is to avoiding them, but many successful advertisers do.
I think part of the reasoning behind the truthy / falsy mechanic is that it's more robust. If, for whatever reason, we did:

name = None

instead of

name = ''

Then the second conditional would fail, whereas the first would still be fine.
The Pragmatic Programmer website uses this system to allow you to prove that you bought a hard-copy of a book, so they can offer you a discounted ebook.
I depends on the complexity of your application, sure it could be easy, it could also be a nightmare.

People make the same arguments about using interfaces (think Java not Objective-C ones), they are only useful when you need them, but almost all of the time it's easier to do it in advance than at a later date.

At the end of the day it's your call as the architect of your application. If you can convince yourself using a singleton is a better fit that another method go for it, chances are you'll know your application better than a one of the GOF.

If it then trips you up down the line, you learn from it and revise your thinking the next time you face this problem.
Self-funded health insurance plans are very common with employers. Third-party administrators (TPAs) that provide the claim processing are big business.
How much does google/apple/top tier corps pay their top engineers?
I have some data points but I want to hear others.
I've always considered marketing by super-huge companies to be the majority of marketing. When you consider the number of brands owned by Yum!, GM, InBev, and the ones in the financial industry, that's a ton of marketing efforts done in an unethical way. I haven't seen numbers so my assumptions might be way off. Maybe it's different if you're considering the dollars spent vs the actual number of marketing pieces.

But it's not just super-huge companies. Listen to conservative talk radio and it's not long before you hear local ads using fear mongering, anger inciting, self loathing or inadequacy inducing marketing to sell whatever version of local or small time (when compared to super-huge conglomerates) snake oil they have.

Is this advertising? Is advertising separate from sales and marketing and is where most of the evil is introduced? If so it still doesn't give Yum! and the financial industry a pass for what they sell and how they sell it.
Pushed to CDN too http://www.jsdelivr.com/#!bootstrap
Hey, that photo was from today. Gimme some cred
"Hadrian's Firewall" and Internet Censorship in Britain
Privacy Hackathon (Info and Looking-for-Group)
It's marketing. You'd be surprised how less often informative works vs. emotional.
> Third-party administrators (TPAs) that provide the claim processing are big business.

Big enough that a certain big data company might want to make a business out of it? I mean, if they're already using them and know how it operates...
Bingo. If you want to test class Foo in isolation, it is essential to know that it depends on Bar. Furthermore, when taking testing seriously, you might want to test Foo's behaviour in combination with differently configured instances of Bar - which is only possible if Bar is not a singleton.
Solve what issues? I did not mention any issues. I see no difference between the two, other than one basically enforces initialization by gating it through a "getInstance" call. (And thereby also enforcing an additional function-call penalty on every functionality presented. Nothing is free.) I could do the same, with the same trade-offs, by simply invoking init() at the start of every method call.

To address your points specifically:

1. Whether the item is lazily initialized or not is an implementation detail. In fact, the call of "init" on the first format is lazy initialization; an eager initialization would have completed at class-load.

2. Either method can implement exclusionary locks. There is no difference here.

3. This is the big difference between the two, but you write it as if it's a benefit unto itself. From an API perspective, why do I care whether I'm manipulating an variables that live on an object instance or statically on the class?

Here's an exercise. How would you even know whether the code to a Singleton class looks like this?

class SomeNumber {
private static Integer value;

public static SomeNumber getInstance() {
if (value == null) value = 5;
return new SomeNumber();
}

public Integer getValue() {
return value;
}
}

If you cannot tell whether the Singleton class was implemented this way from the external API, then there is no difference between the two implementations.
Hacking Hack Schools to Make Them Work
Agreed.

If someone is professing either of those things or something similar they may be missing the point.

People are not poor BECAUSE the system is stacked against them. But if they are poor (by birth, by screwing up royally, what have you), they have much less of a chance to become not poor, because the system is stacked against them.
The main Bootstrap site has been updated to 3.1 just a bit ago: http://getbootstrap.com
He's referring to the special methods available to classes that allow implementation of the truth value of an object. In version 2.x of Python, this method is __nonzero__[1] and in version 3.x it's called __bool__[2]

[1] http://docs.python.org/2/reference/datamodel.html#object.__n...

[2] http://docs.python.org/3/reference/datamodel.html#object.__b...
I've seen this before. In this case, I am already doing something I want to be doing. So it is an idea that maybe someone else can execute on. Maybe they can't.
The points you raise are good ones, but the question raised wasn't the cost of covering those at the bottom, it's the cost of also distributing it to the rest. Of course, if you couple basic income with an additional flat tax (that is, add X% to all tax brackets) that covers it, you would - net - be giving a lot of improvement to those at the bottom, asking a lot of money from those at the top, helping those just below the mean a little, and asking just a little more from those just above the mean. Of course, there's all the usual concerns around changes in tax rates (including tax evasion) still apply...
And this would be more idiomatic:

'Thanks!'

(It is faster also! :D)
The increased average wealth/income increases demand and makes things more expensive for you.

You are confusing wealth increasing and inflation.

The issue of the Bay Area housing prices is an issue of wealth (specifically, building permits) not increasing with population. That's Malthusian depletion, not inequality, and it would be a problem even if the newcomers to SF didn't have money.
Defining all 4 screen sizes gets tedious. That aside, The new landing page on http://getbootstrap.com/ looks great
I think the shrinking middle class has more to do with our monetary system than technological advancements. It is well understood that devaluation of money through inflation is not an effect evenly distributed. It is a significantly larger effect the further from the "source" of the inflation an individual is in the economy. The middle class and poor are quite far from the source.

There is also the "feedback" of wealthy individuals being able to more effectively lobby the government to pass economically favorable legislation for themselves. I believe this is a very strong factor in the shrinking middle class as well.

Although the author gives statistics showing the increase in wealth disparity, there seemed to be little evidence supporting the thesis of the article which is that technology is driving this phenomena. Also, more compelling data would also be showing a period in US history when the middle class was expanding and then began to decline. Then the author could give a better argument to what changed. Though, I guess technology is always "advancing" so in that sense, he/she would never be able to find a proper place in time. Maybe "the dark ages"? :)

tldr;? Liked the data showing the increasing wealth gap, felt the argument that it is fueled by technological advancements to be weak to nonexistent.
Are you a good liar?
I'm happy to be the lawyer of a group. I have some small developing experience, mostly just html/css/js-jquery/xquery.
> You seem to ignore my point, which is that people who vote for higher tax rates and increased redistribution of wealth are not actually doing very much to solve any real problem.

This requires the assumption that the distribution of wealth that is being address is not a real problem.

> Voting to raise taxes on the rich demonstrates little personal responsibility, as the voter does not pay to solve the problem

Payment to solve the problem is a method to "demonstrate personal responsibility" because it is one method by which one exercises one's power to solve a problem one has perceived, but voting is equally so a method to "demonstrate personal responsibility".

> and does not even try to convince others of their moral responsibilities.

Well, sure, voting itself may not be an mechanism for trying to convince others of their moral responsibilities (then again, it may be, people have been known to cite drawing attention to an issue and raising awareness to be motivations for voting behavior on issues and candidates), but even where it is not it is often not an isolated behavior, people who based on a preference for a particular policy very often engage in advocacy around the policy, including advocacy based on the premise that it enforces a moral obligation.
I'd used BT Sync for a couple of weeks to sync data between my own machines. It works neatly. One question here. When you modify some part of a big file, does the program send out only the difference to the other authorized machines, or entire file? Let's say a researcher exports her data to a 1GB CSV file of my interest. I download it. In the following week the same researcher updates her CVS with more data, now it has 1.01GB in size. How big my next download will be?
Software Engineer(Web Frontend) Medtech
the only important finite resources in the information age are smart people's time and energy. And even energy will be infinite given enough smart people's time.
Something I can put in my feed reader (rss or atom)?
Also an easy way to fake a do ... while loop.
My extremely earnest, extremely honest cousin getting his doctorate in marketing would have a heart attack over this, ha.

The chestnut for a while has been that marketing consists of 4 p's:

price (how much? how many market offerings? should price go up over time [discounts for early adopters] or down over time [getting rid of excess inventory]?),

product (does anyone want this? are we building a rocketship when they need a bicycle, or vice versa? Are we following existent demand, or creating a new market [iPhone]?),

promotion (this is what 99% of people think about when they think of marketing, but it's important to note there are good things here too. Spammers live here, but so does Apple's 1984 ad), and

place (Do we even want to sell this in Alaska, given that it costs a buttload to ship our product up there? Do the Chinese have an ancestral taboo about our product? Is it so fragile that it's hard to ship reliably, and if so, how do we deal with that?).

The full discipline of marketing actually involves some pretty darn cool stuff, that I guarantee would appeal to your developer mind. One that I'm partial to are shape grammars (https://en.wikipedia.org/wiki/Shape_grammar), where brands try to figure out what about a design (of say Apple, or a Harley Davidson) screams "$BRAND" to a customer.
If I stay in a squat position within a couple of minutes my legs become really tensed up and it feels as if my I'm cutting my blood flow; squatting for even 5 minutes is not feasible for me, let alone 8 hours, and I don't believe it to be a matter of training. I think we are a long way from our fellow primates.
I actually liked the questions because if you spend enough time writing web apps, I feel you will run into all of these situations, e.g. manipulating arguments

I've been writing code for web sites since the web was a new thing, and I don't remember ever writing code that used the arguments pseudo-array in JavaScript. I'm sure I've probably used plenty of tools that relied on arguments for their implementations, but not reinventing wheels and all that.

I tend to think these kinds of questions are almost as flawed as brain teasers if you're trying to hire someone who's actually any good at programming. A long time ago, when I first started programming professionally and only used one main language, I was quite the language lawyer and new all kinds of arcane tricks. Today, I often look up how to find the length of a string/array/list/vector because I'm not sure whether it's x.length, x.size(), len(x), or any of another half-dozen variations that are used in different programming languages I know. I usually do get it right, but experience tells me it's faster to check anyway than to wait for a Lint tool to run or a compilation to fail if not.

Knowing the concepts in each language is important, so you know what to look up. If a JS developer doesn't understand what "this" means or how prototypes work, and by extension they don't have some awareness of why you'd need to use "call" or "apply", they might struggle. But we have IDEs and search engines and automatic style checking tools and all that good stuff today, and there are more important things to remember than details I really can and do look up in seconds when I need them from time to time.

The way I see it, asking an obviously experienced developer how many little details of a specific language they can remember is rather like asking them to take a typing speed test. In theory, the result might tell you something about how fast they can get work done, but in practice you're unlikely to learn anything very useful because the result won't be strongly correlated with writing good code that gets the job done well.
Hey, original author here.

I appreciate your perspective. Which CTA, specifically did you find awkward?

(As a side-note: I've had other posts with similar traffic and same landing URL. This one outperformed them by quite a bit. The launch list itself grew 2x)
Spring does it right. This is a IoC container btw, and not unique to spring.

This isn't a singleton, but a single instance of a object.

You can change the lifetime of an object, by changing a setting in the IoC container. From ApplicationLifetime To SessionLifetime quite easily. That solves the biggest problem of the singleton, which if you ever DO need more than one, it requires a refactoring.

I hate singletons, and I'm a iOS developer. So i'm continually mad about misuse of singletons(Working on legacy code).
Right, but the second you need to modify either the key or the value, you are better off with the dict comprehension. It's like map() vs [...].
>>Van Gogh's paintings would be very cheap if they didn't have his name attached to them.

I suggest you discuss Van Gogh with an actual fine artist. I did recently with a coworker and they amazed me with their description of progression of his "style."

The artist made the point that his works are the result of his unique brain chemistry, the same that chemistry that caused all his personal problems.

I don't see how your claim is defensible.