skysight-inc/HackerNews huggingface dataset:
It's pretty much the same example I used here a couple of days ago: https://news.ycombinator.com/item?id=7976227

Game development seems to be the poster child for composition over inheritance.

Here's a lengthy article that explains it way better (IMHO): http://gameprogrammingpatterns.com/component.html
The difference is that those aren't interfaces. I'm confused by the question?
So, word wrap? This is the same stupid argument that pro-spaces people make in the tabs-vs-spaces argument - that you have to use spaces (or hard line breaks) so that you can force your ideal indent size (or line length) on other people.

Just accept the other people have different preferences, and tabs and soft word-wrapping enables them to use their preference. If you don't then you're being selfish really.
Multiple inheritance with your discipline to not do more complicated things. Only inherit from base 'object', nothing else, so you will have no complicated inheritance problems.
My point was, classes and inheritance feel natural in Java. Object-Composition feels natural in JS.
He addresses all of these points in the blog post.
It's the time-of-flight difference between when the one ear receives the wave front and the other from a change in the sound that gives us the directional information.

That's part of it, the other part is the head related transfer function is the change in response of sound due to diffraction effects caused by the head, upper torso and pinnae. The pinnae also help us to judge elevation.
Seems a rather archaic requirement to be imposing on one's users, but thanks for clarifying!
Machines aren't a "species" of anything. Species is a biological classification.

Besides, this sounds pretty much like re-hashed Kurzweil.
Not that some of it might not come true, I hope it does, but there is a long way to go from here to there.
This is me and this is my gun
Indeed! We actually know the Pact guys – they're doing a terrific job in the UK.
I don't think that is a very good argument in these modern times, with the relatively huge storage and bandwidth availability. The extra size of such formatting markup is negligible.
Maybe for CS "geeks" but for those of us who came up through the EE ranks linear systems is our bread and butter.
In addition to what jzwinck recommended, I'd also recommend the Loudspeaker Design Cookbook [0] and the Master Handbook of Acoustics [1]

If you're an engineer that's comfortable with differential calculus, I'd recommend the grandaddy of them all: Acoustics by Beranek [2] (I'm actually linking to Acoustics: Sound Fields and Transducers which is an updated version of Beranek's original Acoustics cowritten with Tim Mellow)

[0] http://www.amazon.com/Loudspeaker-Design-Cookbook-Vance-Dick...

[1] http://www.amazon.com/Master-Handbook-Acoustics-Alton-Everes...

[2] http://www.amazon.com/Acoustics-Transducers-Leo-L-Beranek/dp...
With interfaces, the above example would look like this:

from abc import ABCMeta

class PhysicsobjectMixin(ABCMeta):
@abstractmethod
def update_physics(self):
pass

@abstractmethod
def apply_konckback(self, force):
pass

@abstractmethod
def get_position(self):
pass

class FightMixin(ABCMeta):
@abstractmethod
def attack(self):
pass

@abstractmethod
def defend(self):
pass

class TalkMixin(ABCMeta):
@abstractmethod
def say_something(self):
pass

class Character(PhysicsobjectMixin, FightMixin, TalkMixin):
def update_physics(self):
pass

def apply_konckback(self, force):
pass

def get_position(self):
pass

def attack(self):
pass

def defend(self):
pass

def say_something(self):
pass

class Pickup(PhysicsobjectMixin):
def update_physics(self):
pass

def apply_konckback(self, force):
pass

def get_position(self):
pass

class Projectile(PhysicsobjectMixin):
def update_physics(self):
pass

def apply_konckback(self, force):
pass

def get_position(self):
pass

This is not DRY at all. I like mixins much better.
Boracay Hotels - Vacation in this season (Tvinx :: News)
Microservices - 72 resources
iTerm 2 is supposed to have support but I'm not having any luck (https://www.dropbox.com/s/xvl46l7ti9sqv9o/Screenshot%202014-...)
Hm, tested the field/mountain comparison from kraken.io first page on JPEGmini - 184kb on jpegmini vs 242kb on Kraken.io

Seems their solution is both cheaper and better?

http://www.jpegmini.com/
I believe Eli is coming from a position of: reality is made up of things that can be studied, and rules that are universal, and those things and rules are what gives rise to consciousness in me. If I understand the process that gives rise to consciousness in me, I can look at other people's brains and see whether the process would apply in them as well.

"Consciousness in the philosophical sense", to the extent that it's a meaningful thing to talk about, is part of reality.
I agree. I bet the OP wasn't expecting comments like yours, just praise, but he/she is wrong. This is totally unnecessary, and is an elegant solution to an nonexistent problem.
That seems rather pricey even for specialty coffee. I usually buy at a great small roastery here in Vienna and 500g of coffee usually go for 10-15€.
...um, no he doesn't? I've made one "all of these points", and it's not addressed. Where does he talk about making items?
Yeah, that's how I had it. Newlines separating the words, and the chars that can't go in the filesystem get escaped to base64 or something.
A third of Google's image size is this thing: https://ssl.gstatic.com/s2/oz/images/notifications/spinner_3... which is basically a loading icon that is rarely seen.

How does HTTP compression factor into image optimization? Is it possible to optimize an image but the HTTP compressed size ends up being greater?

You should release a monthly report with this same algorithm. You should also put in a column for competitors algorithm (not the just ones you beat, all of them).

Don't forget that some images are loaded after the page and content load, so they have very little impact on user experience (and all these sites make heavy use of CDNs).
The ball and the cards were the only icons I understood at first glance. It's common to use a ball icon to mean "goal", the single card is probably yellow, and the double one red.

I still don't see any problem with using colors. If the goal is being clear at a distance (a good goal, that they failed to achieve), colors are way better than an extra line. I also don't like how they put everything inside a rectangle, soccer does not have rich backgrounds that you can't design around - it's mostly green.

That said, it's a nice idea to pop important information on a big font size on the middle of the screen, currently if gores mostly to the bottom and audio. It may also be interesting to write the numbers of the players above them, because at some distance it's quite hard to recognize them. And yes, the clock needs a serious redesign - not this one, but it does need some work.

Anyway, before touching any of that, FIFA should take a hard look at the refree procedures.
While it's possible to overuse inheritance, I don't think replacing it with composition is all that much better, and in addition all those forwarding methods that do nothing more than call another (could they even be optimised out?) are a great example of code that would need to be written, consuming resources like programmer time, but otherwise serves no true useful purpose to the functionality of the software. The complexity only changes form, so instead of tracing the flow through an inheritance hierarchy you're just doing it through chains of forwarding methods. It's for this same reason I don't believe so much his argument for readability and short classes - breaking everything up does not make things simpler, it makes the complexity spread out over a larger area; while it may be true that it is easier to understand an individual piece, it becomes more difficult to understand the system as a whole. This is especially important when debugging, where "can't see the forest for the trees" is a big hindrance.

I think his example of flexibility is the strongest argument for composition, because in that case the forwarding methods are not a waste - they would need to do (useful) work to determine which of the multiple composited objects they would need to work with.

Being mostly a C programmer who does OO-things, I use inheritance when it's obvious that most of the "methods" will be passthroughs to the "superclass", and composition when there is something more that needs to be done. Also, as I am not constrained by the OO model/conventions of the language, it's more flexible in that I can do things like "inherit" multiple times and even change that at runtime, so there is really no strict separation between composition and inheritance; to me, it's just "which function do I set this to point to."
Cycorp AI - Business Insider
table preservation and subsequent extraction becomes complex when the tables are in a forwarded email and there's a quote prefix (e.g. '> ') which takes one or more line lengths above 78 and then somewhere along the chain single table rows will then be split into multiple lines. In these cases, it takes all the kings horses and all the kings men to put humpty dumpty back together again.
One important aspect: this is going to be unreadable on CRT TVs

Yes, there's still a lot of them out there. Yes, it must be catered for them still.

Some TV stations still make sure their image looks good on B&W TVs. Really

You can't forget the fact someone is watching it on a 14' CRT, and it's not a small amount of people.
Yes! We need a website that encourages terminals and applications to use 24bit colour.
>> On the other hand I don't know about good examples of ADTs used outside of the context of functional programming, do you have some pointers?
> I dislike pointers (a necessary evil if you have mutation I guess...), but here is one example

Perhaps there was a misunderstanding. I asked you if you had some links to some interesting examples of ADT outside the context of functional programming.
Because I was assuming that this wasn't a discussion about Go vs purely functional data structures.

Your example clearly shows the benefits of strong typing with fully described types.
My point that this is orthogonal with Rob Pike's position about the importance of data structures.

Data structures exist independently on how we represent them. I don't see any irony or conflict in highlighting the importance of data structure vs. implementing language features that make it easier to write correct implementation of them.
It's true that they can be implemented in the same way, but the idea remains the same. Seeing mixins as inheritance is a far narrower definition than held by most languages (or libraries) that implement them. Mixins don't put any requirements on the polymorphism of the object that implements them, which ordinary inheritance does.

It's common to use the Flavors/Lisp defintion of mixins, but I'll make sure to read up on the Bracha-Cook paper about them.
By the way, I encourage everyone to try out their game, Awesomenauts. Think Super Smash Brothers meets Dota. It's a lot of fun to play!
Existing discussion: https://news.ycombinator.com/item?id=7992629
A friend does something similar in the Netherlands. He's interviews people on their preferences and sending them coffee based on their preferences.
Low frequency response needs size. If you're willing to cutoff at 200 Hz then little stuff will work. In my high school years I built a stereotypical mono subwoofer of the 2x4 sheet of plywood for front and back variety. Sounded pretty good, but could have been better.

A mantra thats repeated continuously, mostly by people selling mono subwoofers or uninterested in audio reproduction, is low freqs are non-directional.

Yet I go outside and listen to thunderstorms and passing unmuffled motorcycles and firearms and much bigger .mil weaponry and it sounds highly directional. I can point at the rumble of distant artillery as well as any other sound.

Surely if you build a directional subwoofer system and can only perceive a field, that'll work OK even if its an economic financial fail. But the other way around is an epic fail. So save money at the risk of sounding bad. Well, if the point is spending money to sound good, having an extra 3 dB of signal is never a loss...

Another puzzle is I know from experience that L-R and L+R sound different from FM subcarrier detection. Supposedly mono subwoofer people claim that magically only applies to higher freqs. I would think a single mono channel subwoofer would sound "better" fed off only L or R channel than some peculiar mix of unknown phase. The problem is which channel to connect to?

Phase relationships are a pretty big puzzle in audio once you get past simple response problems and simple distortion problems.
At first I assumed Google's reduction was so high because they'd scraped the site on a day when the logo was a doodle. But I just manually checked Google's main logo and was surprised to see a 40% lossless reduction. I would assume they dogfood PageSpeed (or at least use some internal version of it) which does image optimisation automatically for them. So is Kraken just better or is it just an oversight from Google?
Don't those mailing lists also require line wrapping?
Phone processors are at least one order of magnitude more powerful than (usual) 100 MHz CPU, therefore it would be of no use.

Anything you would want to do with that external processor would be slower and more inconvenient than doing it on the phone processor itself.
Handling double digit scores is something that you don't need to worry about in football. Not unless it was Brazil versus a local pub team.

LTR implies ranking also, but anyone who has watched a few games of football (other than in the world cup) knows that it actually signifies which teams are home and away.
ZE:A,Nene Muses Twist King Immortal Song 2 Klibi izle
Over a very short time frame, you mean? Show me a single example of a Bitcoin stock price chart that looks anything like this: http://bitcoincharts.com/charts/bitstampUSD#rg730zczsg2012-0...

ASICMiner is in the gutters, as is literally every other Bitcoin stock. Who benefited from the company going public? Over a short time frame, those who exploited the pump and dump; over a modest time frame of 1-2 years, the company profits at the expense of investors, every single time, without exception.
This Crash-Proof Drone Can Fly Through Forests and Disaster Wreckage
For me it was when I ran out of savings, sold all my stocks, ran out of that money, and still didn't have a shipped product. My cofounders are still going at it, and I wish them all the best, but we spent the critical months of our startup designing and redesigning a thing without ever getting user feedback.

For all the other folks out there at Google or other largish companies, who are considering quitting and forming a startup: Don't do it until you have at least once seen a project through from conception to launch.
I would have said for football (soccer) yellow and red indicate the cards the ref shows
You cannot align things on different lines with soft tabs. If you really need to change the indentation, you could always do it based on spaces (not that I have seen any editors capable of doing it) - again, you will mess up the alignment.

I completely agree with the soft wrapping of emails though.
There have been many implementations of mixins, and many that I'm aware of, like Scala, are inheritance based. The nice thing about mixin style inheritance is that inheritance becomes much more composable. The type of an object then is not its class, but the set of mixins it extends.
I forwarded it - given that, where would I be supposed to put my email? The email comes from me - shouldn't the reply be sent to me?

I don't understand what rules they are using for where to send the reply. I'll go have another look.

Edit: Just checked - I think I followed their instructions. There was an incoming email with a link, so I forwarded it to them. Surely that should work. What should I do instead?
There might be a browser support issue that prevents doing it.

The bandwidth and mobile loading might not be an issue because of their massive amount of data-centers to serve content from.

It seems like it to would be easy to test the new image to see if anyone reports any issues, but there might just not be any benefits to reducing the homepage image by 40%. Make sure you consider that the homepage image is being scaled smaller than the actually image is, some optimizers take this into account and will give you a scaled image.
Chrome translate is really good with this site.
They require sensible line wrapping. Line wrapping text is good, even required for commit messages, but line wrapping git patches is obviously a catastrophe. On Gmail you can't turn wrapping off (and you can't send patches anyway as it elides leading indentation and changes tabs to spaces).
If you understood how your own consciousness works on a scientific level, you would know exactly what evidence to check for in other people

Leaving aside the difficulties in unpacking the idea of scientific introspection under the classical rubric of experiment as observation, once one decomposes consciousness to where a scientific level can be extracted, there's a corpse on the table not a patient. The whole gist of consciousness is that it's unified and once we admit a distinct 'scientific level' we ought to own up to what we have done and say "by consciousness I don't mean what is ordinarily meant, but instead I mean exactly 'x,y,z' and therefore my claims are not about consciousness in general but about this special definition."

And there's nothing wrong with that, and it might be useful.
> What should be done, I believe, is that e-mail _clients_ should detect the 78-character convention and rejoin the lines into paragraphs if they think it would be best.

That’s what format=flowed allows. The sending client line-wraps long lines at 78-or-so characters and then indicates having done so by appending an extra space at the end of such lines. This way, clients can either

(a) leave everything as-is, the trailing spaces won’t hurt or

(b) rejoin the lines into one long paragraph.

I would probably prefer the latter behaviour on a phone or screen with less than 80 characters, whereas on the desktop, I’d rather not be presented with lines running over the entire width of the screen.

But really, this is pretty standard in mail clients…

Edit: added quotation mark, sorry.
It was, but Knuth called it "Hoare's Dictum". All the evidence seems to suggest it was Knuth himself that coined the phrase though.
I think both this, the parent comment, and a fair amount of other comments on this post are unnecessarily harsh towards the designers. Pointing out design issues is always helpful for improvement and reiteration, but attacking their motivations just makes everyone hostile and gets nothing accomplished.
I've worked through the strategy, and what you say seems simply to be false. As I work through the strategy I find that if they all have black hats the strategy has them all saying "Black", and if they all have white hats then the strategy has them all saying "White." I don't understand why you claim otherwise.
"So they sell what looks good on paper... THD"

From an EE perspective most of the "obvious" ways to screw up THD sound truly horrible. Crossover distortion, clipping, bias problems, truly excessive hum or noise...

Also note that just because your final PA is a modern class D doesn't mean there's not some opamp input stage in the box that is perfectly liable to classical transistor bias problems. So you can't get crossover distortion out of a modern class D amp final device as an inherent part of how those switch the transistors, but that doesn't mean you can't screw up the input stage of the opamp that is inside the box of an amp that none the less has a D-type output final stage. In terms of circuit design, A guy who can design a nice class D stage is not necessarily (but often is) the same guy who can design a class A or AB stage.

"Necessary but not sufficient" is a good way to describe good THD numbers.

I would have to think for awhile how to get a good THD number with foul intermod numbers... Maybe if you fed in two noise signals outside the freq bandwidth that when nonlinear mixed gave a difference freq of 2 KHz that would sound horrible even if a pure sinewave input at 1K sounds awesome. It would take some work to screw up an amp this way but it could happen.

Anyway nothing says "tradeoff" like engineering and I wouldn't trade off a pretty basic core characteristic like THD for improved ... anything, except maybe power level. I'd rather hear something good than something a couple dB louder. Reporting good THD is valid in marketing as a way to tell that you did at least the very first homework problem... I agree totally with you that there are multiple steps beyond it, but there's no point in working on any of them if you can't pass the first simple THD test. (Edited to add, I missed the PERFECT analogy: Its like passing the UL Labs certification that it probably won't burn your house down. That's kinda required, and its also possible to aim a little higher)
You can make anything sound daft by expressing it a certain way. The entire history of physics, all the way from cavemen to the LHC, is just a story of smashing rocks together in creative ways and watching what happens.

But obviously it's a lot more than that, and so is electric brain stimulation.
Depends on how the bricks were designed.

If you insert the bars during the fabrication of the bricks, yes, that'll do. If you insert them later, the steel will oxidate, and the building collapse in a couple of decades.
Except you are wrong. O(x) is an upper bound, Omega(x) is a lower bound, and something is Theta(x) iff it is bounded by Omega(x) and O(x) where (x) is the same[1].

And if a stackoverflow link isn't good enough, than go read CLRS, Dasgupta, or Skiena.

Quicksort has no Theta(x), it is O(n^2) and Omega(n log n) with an expected runtime of n log n. The reason that Quicksort performs so well is because it is only in very specialized cases where it devolves to its worst case.

[1] http://stackoverflow.com/questions/10376740/big-theta-notati...

Edit: Replied to the wrong commenter, so the replied to post isn't wrong, the grandparent post is.
How To Enhance Innate Business Leadership Abilities
Because plaintext is nice and simple.
From [1], page 8:

There is no doubt that the grail of efficiency leads to abuse.
Programmers waste enormous amounts of time thinking about, or worrying
about, the speed of noncritical parts of their programs, and these
attempts at efficiency actually have a strong negative impact when
debugging and maintenance are considered. We should forget about small
efficiencies, say about 97% of the time: premature optimization is the
root of all evil.

Yet we should not pass up our opportunities in that critical 3 %. A
good programmer will not be lulled into complacency by such reasoning,
he will be wise to look carefully at the critical code; but only after
that code has been identified. It is often a mistake to make a priori
judgments about what parts of a program are really critical, since the
universal experience of programmers who have been using measurement
tools has been that their intuitive guesses fail. After working with
such tools for seven years, I've become convinced that all compilers
written from now on should be designed to provide all programmers with
feedback indicating what parts of their programs are costing the
most; indeed, this feedback should be supplied automatically unless it
has been specifically turned off.

[1] http://cs.sjsu.edu/~mak/CS185C/KnuthStructuredProgrammingGoT...
It's hardly statistically invalid. This wasn't a drugs trial. They noted an effect on a subject from a direct stimulus and then repeated the experiment numerous times with variations that corroborated their finding. Obviously the next step is to find another test subject but I think it's pretty obvious why this is newsworthy.