skysight-inc/HackerNews huggingface dataset:
Well actually

> If you're doing really badly, meaning the company is about to die, you may as well talk to them, because you have nothing to lose.
OO is better because bundling data and code together is better, because code is data, and I have no idea what I'm babbling about. </strawman>

The real advantage of OOP, as used today in Java/C++, is instantiation. Instead of having procedures working on global variables, you have procedure working on local variables, including complex data structures.

Instantiation took some time to get widespread adoption. Originally, even local variables were actually global, scoped variables, thus forbidding even recursive calls (see earlier versions of FORTRAN). Programming languages since use a stack to instantiate their local variables (and return pointers), thus enabling recursion. The instantiation of more complex data structures (arrays, user defined structs…) followed.

Ironically, instantiation took some time to become ubiquitous in the C language even though it fully supported it from the very beginning, with a stack and user-defined compound types. Case in point: Lex/Yacc, which use global names (and state) by default.

Now however, instantiation is so pervasive (global variables are assumed evil by default), that we don't even call it OO any more. We just call it good practice.
Many great hardware products and companies have been built on budgets a fraction of $45M. Even the Apple 1 was an ugly hodge-podge of parts. If you want to build pyramids, it's best figure out how to build sand castles before.
I don't know any other anti-cheat that has used a blacklisted username as a mechanism. Valve did not bother to obscure any part of this mechanism, they publicly confirmed that this mechanism was banning people due to their name. This is an open source cheat that has not generated any revenue, and it was worked around as soon as it was identified. Regardless, saying that this changes nothing is ridiculous, this mechanism was aimed mostly at cheaters, with some innocent in the crosshairs. Now, all cheaters have worked around this and only innocent are left in the crosshairs.
Well that very name hints that it is probably a very annoying bug, with an impact way more annoying that a simple ASLR address leak or data access trace (hell, Intel does not even consider side-channel data access / tlb tracing to SGX a vuln, so this has to be better than that kind of issues...)
Cherrypick for Books lovers
If you’re having trouble falling asleep, I found another technique to work well: stream of consciousness journaling.

You just take a notebook and writing down every thought that flows through your mind as fast as you can keep up. In about 5 minutes, I’ve found that I reach a calm peaceful state of mind and can get to sleep again.
Hi All,
I am very new to HN and this is my very first post here.I feel its worth sharing. I am one of those people who loves reading books based on good recommendations, which is what cherry pick provides. this website consolidates high quality blog posts, articles etc. recommending books for a specific genre. I came across this site while looking for something similar and loved it. I would highly recommend book lovers to this website.
In 2018 Cowardly Tech Lions Need Courage
That same type of "content transposition" tool would also be a way to ensure obfuscation of content source if applied to copied text.
Dubai Billionaire's Tech Startup Takes on Amazon
True, but the whole thing is based on Warren Buffet's advice: "Read 500 pages like this every day."

I wish I knew what books he was pointing to, but I think it's safe to assume they weren't escapist.
I have to say, after reading through that, I'm still not quite mystified as to what the differences are.
GP's statement is fairly accurate and so is yours. All mainstream news outlets are competitors in the online ad market, and The Guardian is about as good as you get in terms of independence and objectivity.
The source code of the kernel of Windows server 2003 and Windows XP Pro x64 was available to universities for education purposes. Someone leaked the code on internet years ago which is now everywhere on github (search WRK-v1.2). The code doesn't include the ntfs module.

https://web.archive.org/web/20120412091908/http://www.facult...
Bitbucket Pipelines vs. Jenkins Pipeline
The US Airforce is experimenting with using Falcons - https://www.bloomberg.com/news/articles/2017-12-05/the-milit...

Meanwhile the Police in Holland have abandoned an attempt to use Sea Eagles https://www.google.ch/amp/s/www.theverge.com/platform/amp/20...
Sure, but is that actually an actual problem? I and my mom while I was little have given keys to the house to maids and similar and nothing ever happened in 40 years. I know most people do the same.

I would be more afraid of actual problems like a malfunction of some kind (no battery, money in the house so that I can't buy batteries, etc. etc.), and I can't enter the house. Or, I lock myself out and no one can open that door (while regular locks can be opened by specialized companies).
The DRAM mfgs did respond to some extent & it is much harder - though perhaps not entirely impossible - to RH DDR4.
Not everything is a web app that can be patched in 5 minutes and doesn't need to run in one hundred million different environments.
It is.

https://books.google.com/books?id=Vj-NDQAAQBAJ&pg=PA346&dq=c...

Red Sparrow also has a canary trap, and they refer to it thusly.

https://books.google.com/books?id=l-lnAwAAQBAJ&pg=PA428&dq=c...
I’m hating the job hunt. Everyone wants a web developer who’s been using React for 10 years and has a PhD in Machine Learning. The good interviews I’ve had inevitably lead to me getting passed over for someone with “a little more” design or development experience (I’m a front-end designer AND developer). Hella frustrating.
Because you can write an OO domain model using a bitboard representation. It's an opportunity to demonstrate advanced OO knowledge, which this Quora answer most definitely fails at.
Sure, but what if the thing breaks or the batteries run out and similar?
I spent far too long looking at your comment history trying to figure out if you really were the author (since others have shown up here) until I stumbled on something semi-verifiable and visited Wikipedia (which should have been my first stop), only to learn the author Tom Clancy passed away a few years ago. :)
What is ReadMe.io missing that you'd like to see?
The city is hiring exterminators. They are using technology to make the people dispatching those exterminators more efficient or effective.

If the city were serious about getting rid of rats they'd provide incentives for or otherwise subsidize behavior that helps solve the problem (which is very different from penalizing behavior that doesn't, I know those two often get confused around here). I'm not seeing any evidence of such based on this article which leads me to believe this is probably not an effective use of available resources. Efficient exterminators and other silver bullets don't usually do a good job solving big problems in the long term.
Little Bro teaches this family some life lessons
I hate this so fucking much.
However, this article was written by an experienced executive who had raised a $45M seed round for the company. Lack of business acumen or paper-thin attempt to excuse himself of this ridiculous failure? You be the judge.
Love ≠ Trust

For example if I love a junkie, I wouldn't want to enable that person to easily enter my house to steal something to pawn for drugs.
Yes!!!!! Do it! They should have bought Waze too!
I disagree. Airbnb, Uber, Amazon and many others are extremely basic ideas that some person or another would have come up with sooner or later.

Basically it was a matter of being in the right place, right time, right knowledge (and execution, of course)

Winners took it all.
Can we use titles that are more self-explanatory? "So close" doesn't mean anything, and it forces me to take a peek at the article.

E.g. "how smart-lock startup Otto almost became a success, but eventually failed"
I think the author has gone through a mistaken involution in his exposition of his own alleged involution, which means that his "Ghost Not" is, ironically, true and his proposed remedy a fallacy.
composition over inheritance

https://en.wikipedia.org/wiki/Composition_over_inheritance
The manufacturer will at least attempt to justify the price based on what’s better about the car.
Including the Valve Employee that confirmed their issue?
>> "For every part of my code change, if I break the code, will a test fail?"

Since "breaking code" is super subjective, and generally speaking, trying to "cover everything" is a recipe for hell.

Anyone able to expand on what the author meant by this?
> since breaking code is super subjective.

Only to the extent that your spec is incomplete.
A typical smart lock still supports a physical key, so you have a backup method of access. It looks like this particular one does not, though.
And this: "Not to be outdone, the software team challenged themselves to complete the full user experience so that our customers would fall in love with the way they engaged the product and actually experience joy as they used it."
Copyright exists from the moment an expression is created. When you write a letter it is copyrighted. You don’t have to register it. There is no way to tax it.

The proper way to solve the problem with excess copyright is by properly limiting the duration as written in the constitution.
I entered a programming contest once, where the task was to take some input and construct an optimal solution to a geometric problem. I got irritated at the rules not being clear and well thought out, and I wasn't smart enough to work out a good implementation of the real-world algorithm they were hoping contestants would come up with. So I wrote code to provide pretty much the stupidest (most trivial) possible solution that fulfilled the specific constraints for a valid output that were stated. Because entrants were scored on a combination of speed, code size, and quality, my entry came in a close second, because it was by far the smallest and fastest. I kicked myself for not trying harder to optimize the quality even a little bit above "braindead".
Come on, please don't claim that you need to add more piece types independently so absolutely need virtual functions. That's hilarious for a chess game (and most other applications), but even if that was needed, one could still pass function pointers in those few places.

Anyway: No, they design their program to be efficient and readable. There is more often than not an alternative to switch statements: don't mix data of different types together. (Where by types I don't mean crazy artificial types built with a modern language -- but with regards to implementation of a functionality).

If this is about drawing chess pieces, you need only a single draw function for all of them. Just maintain a table that maps a piece to its material (sprite, mesh, whatever). Or alternatively, have a table that maps pieces to "types" and another static one that maps these types to materials. (Much better: Materialized type to simple enum. Can actually use this information, as opposed to overhyped static types).

More general answer: The best way to do it is usually not a switch statement but a data table. Because usually the switching is not about behaviour, but about data. (Not that switch statements are so bad).

Code gets so so simple, robust, and maintainable if developers are not preconcerned about static types, OO, and whatnot.
Cutting and pasting using Ctrl-Shift-V in Libre Office does the trick. (Then select unformatted.) You still have to manually eliminate the spaces.
2018 Is the Last Year of America's Public Domain Drought
People are too busy "playing boring politcian" on Facebook. But Reddit allows you to geek about certain topics without getting judged. If i make 50+ posts on FB about my favorite tv show on Facebook, i get called "obsessed" or get defriended
It's true that sometimes people can't make bail. Just a few quick notes about that.

1. Bail is refundable collateral. It's supposed to be priced within attainability, but it needs to be an amount sufficient to motivate compliance with the court. And when you're looking at criminal charges, that amount generally has to be quite significant, since compliance may result in incarceration or other seriously adverse outcomes. Also, bail will be set based upon the totality of the circumstances including the severity of the crime; the amounts you hear are frequently high because the crime must be serious and/or noteworthy to grab attention on the news.

2. There is a whole industry built up around helping people make bail. "I can't make bail" is not a novel problem and there is a lot of infrastructure in place to assist with this.

3. Excessive bail is not allowed and motions can be filed to get bail reduced.

4. No matter what, in every large system with rules that get enforced, there will be anomalies and anecdotes about the rules going awry. Isolated heart-wrenching stories of breakage should be addressed, but are not grounds for condemning the system as a whole.
> If so, then interface{} would be the greatest abstraction of all, and pure dynamic typing Python-style throughout the program the best design choice!

`interface{}` and dynamic typing aren't more abstract; they still have an interface--it just is hidden from the type-system. And in my experience as a Python developer, absent a type checker, many developers lack the discipline to keep their interfaces small. A type checker makes it somewhat harder for the author to make design decisions that the maintainer will regret. (Of course, when I point this out, dynamic typing devotees invariably respond, "You can write bad code in any language!", failing to distinguish between my claim and "It's impossible to write bad code in a statically typed language").
Don't use emoji in HN titles.
I think it should be easier to get past the cheater part after Valve confirms that it is banning people based off of usernames now...
Ha! Good catch. Sorry for my A-word fail.
basic != blatantly obvious. An idea can be easy to see, but difficult to value.
I thought the same until I stayed at a HomeAway property where they used the electronic locks. They defined an entry PIN for me for the duration of the stay, presumably revoking it after I was gone. This enabled me to come and go without worrying about their keys, and without them needing to change the locks after I was gone. While the lock was quite finicky, it worked well enough for the purpose that I surmised for it.
>However, the linked talk above notes that the researchers accidentally discovered that some "sensitive tactical law enforcement operations" were unwittingly operating in cleartext, and divulged to the open air "names and/or identifying features of targets and confidential informants, their locations, descriptions of undercover agents, [...] plans for forthcoming takedowns and operations," and a few other things you probably don't want to widely announce.

We expect block headed 18yo infantrymen not to send sensitive information over insecure channels. I don't think asking the same from our public servants is unreasonable.
> The difference between Pizzagate and investigative journalism as you've defined it is reputation.

Not with the example you've given. Investigative journalism is one form of journalism. I won't attempt to define journalism except to say the forms its stories take do not include posting a tweet in reference to someone's sentence fragment from a Facebook status. That may be a part of the "raw material" of a story that covers how conspiracy theories begin and spread. But neither that raw material nor the journalistic stories which essentially just tracked the effect of a wild conspiracy theory on a national election are examples of investigative journalism. (There may be pieces of actual investigative journalism wrt Pizzagate, but I haven't read them.)

But let's say we compare Seymour Hersh's story on the killing of Bin Laden and some random Facebook fake news story pretending to be a piece of investigative journalism. At least at present we're not at a point where a fake news artist can do a good enough job mimicking a piece of serious investigative journalism. But disregarding that, the main difference there would be reputation.

But that isn't a small difference. "Reputation" covers a lot of ground-- it includes the publication and the journalist. It also includes the age of the publication, its intended audience, its business model, and even whether the name of the publication appears to have been chosen to be similar to the name of a more reputable publication.

That certainly doesn't mean I reflexively accept all of Hersh's claims-- I do like other non-experts on the subject and withhold judgment until other experts begin to assess the veracity of his story over time. But it does mean that I can reject out of hand the viral Facebook link to some url that looks like "cbsnews.com" if you squint. I can save time and not read it at all based on reputation alone.

> And when trust in the press is lost what separates the curds and the whey is evidence which a fabricated story cannot provide.

It depends on why the trust was lost. If it was because a critical mass of journalists' track records got worse over time, then you're right.

On the other hand, if it is because a critical mass of readers can't tell the difference between a Pulitzer prize-winning investigation of media corruption and a click-bait website on Facebook, asking them to "weigh the evidence we're showing you for yourselves" isn't going to solve anything.
for each type of piece if the bit is set, draw the piece at that position.

if you click on a square and there is a piece in that square( there is a bit set in that position in any of the types), get the valid moves and draw them.

if then you click an empty valid space, render the piece moving.etc..

most of the details are usually hidden behind functions. You renderer should not care about the internal representation of your data.
San Diego Installs Smart Streetlights to Monitor the Metropolis
I'm not sure why that's apparent, but even if it is, is there any reason to believe that switch statements (or pattern matching, or look-up tables, or other related language constructs) couldn't handle any plausible requirement in this case?
Who are you asking? The article's author?
> Nope. I have big Django apps running (like 500k users/day streaming video sites) and it doesn't happen.

Mind sharing your stack? I'm currently torn between Laravel and Django. It won't be the first time I've used an MVC framework (CodeIgniter, some Rails) but I like working with Python. However, Laravel also seems to be heavily used. I don't have anything against PHP but wanting to compound my familiarity with Python is one big reason for leaning towards Django...
>The real advantage of OOP, as used today in Java/C++, is instantiation. Instead of having procedures working on global variables, you have procedure working on local variables, including complex data structures.

You can have the same in functional programming, by creating closures on demand.
To you I guess.

Many people value Facebook for the experiences it gives.

You sound like one of those people that 'doesn't watch TV' in the 90s. To many TV doesn't give any value at all -- it is mindless drivel. However, many others like TV. So it goes with Video Games as well. The product of an entertainment company is entertainment. If you don't find entertainment in the product then don't consume it, but don't act like a spoil sport when others like it. Stop purporting your own opinion as fact.
If rats are chewing through plastic garbage bins, make the bins toxic.
I'd rather fail the interview than work for the one who failed me in this case.

Assuming I am asked to design something in a domain I am familiar with, where an OOP-looking solution is not a good approach, I will simply go with a good approach instead. If this triggers a discussion, wonderful. If the interviewer assumes I don't understand OOP, shame on them for not explicitly asking for an OOP design in the first place. And if the interviewer suggests I should go for an OOP design instead of my solution, I will contradict them on the spot —politely. I may comply for the sake of the exercise, but will repeat and insist that there are better approaches to this class of problems —politely.

More generally, I am highly sceptical of claims that OO designs are in general easier to understand, maintain, and extend (this includes this chess example, where I believe the bit-board approach is competitive even for variable board sizes). They're often not, if only because being OO for the sake of it tends to generate more code. More code to understand, more code to debug, more code to extend… you get the idea.

I also tend to believe OOP is not the best approach for most problem domains, possibly even including GUI (I have yet to study this in detail). I'd rather not work for shops that insist on using OOP everywhere.
2017 was the safest year ever for commercial aviation
ECC as it is today may not be sufficient. It's mostly useful against single bit flips. Probably better than nothing, though...
But it correctly supports HTTPS right? If so, then a MITM attack shouldn't be possible unless your system trusts a bad CA.
Ask HN: How to connect Alexa to a standing desk?
I notice that most of the standing desks have the button block connected to the desk controller via a network cable and a regular RJ-45. This means that it should be possible to put a ras-pi and maybe a tiny switch in the middle, intercept/replay the signal and pair it with a simple Alexa skill to control the desk position. The only question is what does it send over the network? Is there any specification on that or does anyone have an idea on how to reverse-engineer it?
> For Venezuela i would say that judge is still out, but the slide started with the bet on oil exports to shore up imports, only or for the oil price to take a dip. but in this instance i can't eliminate the potential for foreign meddling as the leadership had incensed certain world powers...

The only thing world powers would have to do is let Maduro continue his economic policies.

There doesn't need to be an external plot, just stupidity in economic powers.

With such high inflation, nobody wants to take the BSF, so they insist on hard currency. Thus, prices increases. Even when you make bread, you need hard currency to buy yeast and machine parts (baking and mixing machines) as most of them are imported.

With prices spiking, the government gets the bright idea to slap on price controls, at an artificially low bring to "ensure the common man" has access to goods. The price controls don't allow breakeven considering the cost of production and imports, especially when the price rises faster than price controls allow. So they don't make anything that is price controlled.

Also, the price control board is controlled by the government. Every year during Christmas and before elections, the government goes in and slashes prices. Sure, you get a big screen TV for cheap, but they never get imported any more. Same thing with airlines. They're not allowed to repatriate profits at anything close to a realistic exchange rate, so they just stop flying there.