skysight-inc/HackerNews huggingface dataset:
I just read the C++ Primer because I wanted to hack on some C++ code and the number of things you can do in C or C++ that result in "undefined behavior" is annoyingly large. There are some functions where they could have added a bounds check to the implementation, but the whole philosophy of the language seems to be that when choosing between lack of bult-in checks that would lead to easy to make errors that would cause undefined behavior and small speed increases on microbenchmarks the language designers choose the latter.
I like it, a mirror opposite of extreme "designed by committee" practices of big co. funded frameworks.

I feel purposefulness of Vue's design. There are no gigatons of features and behaviors which make you scratch your head and think "why it is there to begin with" like why Ang2 insists on using observer objects for HTTP responses, or why Ang1 had a such an extensive buildover around its component zoo to do just "new mySerice", or reasons for React's component rendering order peculiarities, or logic behind their choice of syntax.

Vue is very bare bones thing. It provides no reactive layer over complex object with non-primitive content. Lack of native support for maps or sets from ES6 is inconvenient a bit, but it is not hard to provide a function wrapper around any logic that uses them. I usually keep all business logic outside of Vue's instance and only wire though its inputs and outputs.

What I lack in all common frameworks is the ability to play smoothly with really complex DOM manipulations, like swapping prototypes of a DOM elements and mergings. Trying to do something like complex drag and drop logic usually means doing a lot of "do it within DOM element, or do it within framework's element" thinking
How to fix a toilet (and other things you couldn't do without Search)
Nice article covering both tagged integers and pointers in NaN: https://nikic.github.io/2012/02/02/Pointer-magic-for-efficie...

Copy of Mozilla's article presenting their switch to NaN tagging: https://evilpie.github.io/sayrer-fatval-backup/cache.aspx.ht...
HN discussion with more history & links: https://news.ycombinator.com/item?id=1569825
> Why is (x=1, y=2) more practical than nt(x=1, y=2)?

It was outlined in the linked article. Order of named arguments should not matter so new syntax would be better.
> With Typescript things that were really easy to do on Javascript like defining a simple object were more complicated to do on Typescript.

TypeScript in no way prohibits you from defining a plain old untyped object. Just don't assign a type to it, and it behaves just as it would in plain JS. I wouldn't use Angular 2/4 either, because of its needless complexity and over engineering — but not because of TypeScript. If anything, TypeScript is a bonus.

> React mixes both JSX/HTML with JS code which I just don’t like since I strongly believe in separation of concerns and it looks ugly IMHO.

This is valid only if you think separation of concerns is the same as separation of technologies. I don't think so. It makes more sense to group code based on function.

In fact Vue.js allows single file components that mix HTML, CSS and JS in a way that would violate the author's definition of separation of concern. From Vue.js' documentation: "One important thing to note is that separation of concerns is not equal to separation of file types." [1]

> Coding speed was an area Vue.js won by far, not having to learn JSX was of huge help.

It should take no more than 20 minutes to learn JSX.

1. https://vuejs.org/v2/guide/single-file-components.html#What-...
> Sure you can. This is the purpose of laws and law enforcement. Try to fly a drone with a knife to stab people and people will destroy it and arrest you.

There are lots of drones in the Middle East killing people with much more dangerous weapons than knives.

> Both Antarctica and outer space are military-weapons-free

This is a fairly academic point given the US is capable of nuking anywhere on earth that anyone could possibly want to nuke. There aren't weapons in space because the purposes of putting weapons in space are achieved by other means.
Think tank research does not undergo peer review, so there is no accountability
I love what Joel Spolski said about this "problem" in his article "Whaddaya Mean, You Can’t Find Programmers?" back in 2000.
https://www.joelonsoftware.com/2000/06/15/whaddaya-mean-you-...

"Now, let’s review some microeconomics. In a free market, it is almost axiomatic that the market always clears. That’s a technical term that means that when somebody tries to sell something, if they are willing to accept the market price, they will be able to sell it, and when somebody wants to buy something, if they are willing to pay the market price, they will be able to buy it. It’s just a matter of both sides accepting the market price."
There is a website you can use to keep track of this: http://www.fuelly.com/
this section:

its research committee approved my request to view the
records of this experiment, the so-called data set, which
referred to subjects by code names only. But because
kaczynski’s alias was by then known to some journalists, I
was not permitted to view his records.

is straight-up B.S.. the only (putative) purpose of withholding records is to protect confidentiality. but in this case, the journalist was researching with Kaczynski's consent. they might have been playing games with the author (alston chase) and omitted this detail so that he didn't come back with the signed slip of paper, but any of the subject's data should absolutely be available to the subject.

I say "putative" because the _real_ purpose seems apparent... to hide from an investigation.
> I don't understand what you mean by "fundamentally scoped" in this context, so perhaps we're talking at cross-purposes here.

If you have a social network and you have a user A and a user B. Each of them uploads a picture in private showing both of the users on the image. If user A deletes his or her account the picture in user B's account is not to be deleted even though it contains a picture of user A.
You think that if I ,or somebody else, would own Facebook that I wouldn't abuse it ? Wake up people!!
This makes a lot of sense -- and makes me feel like I'm guilty of over engineering a non-side project I started working on at work ...

I'm always looking to make the code as easy to change as possible -- the idea being that change is a precondition for any form of improvement ... Reading this article makes me wonder if I've turned that pursuit into an anti-goal
IIRC, Rust's HashMap uses a single raw vector containing for each entry its hash code, its key, and its value; empty entries have a special hash code as a marker, with the key/value left uninitialized. Also, the hashes are kept together (separate from the rest) for better cache behavior during the linear probing.
I'm amazed that society level efficiencies like these aren't considered a bigger deal.

If people are burning more gas than they need to that's less money for them to spend on everything else. It's like the whole country living on credit card debt and not worrying about the interest because it's in the future. It's making you literally poorer and giving you nothing in return, just due to a lack of foresight and planning.
Bad Interview Questions
> ECU can't count actual fuel flow

Thanks, this is pretty interesting.

It's the first non-bullshit explanation I've seen for why cars tend to display inaccurate average MPG on the dash. I always assumed there was a fully accurate measure of fuel flow into the engine and there was something else broken (or dishonest) about that calculation.

This has come up in the press occasionally and the manufacturers never admit that they don't have a totally accurate measure of flow:
https://www.edmunds.com/fuel-economy/your-fuel-economy-gauge...
Setting up a CI on AWS using git, CodePipeline, Code Build, and elastic beanstalk takes no more than a few hours. It's worth the few hours. Otherwise you're manually pushing builds out which wastes more time in the long. In the beginning your CI should be nothing more than ==> I check in code, it deploys to environment. Later on you can worry about triggering tests and preventing builds for deploying if they fail. Also if you use elastic beanstalk, you can scale as necessarily with a few configuration changes.
So here's where English gets in the way of understanding.

I can read the title two ways:

Best (Nude Travel) Destinations (that is, the travel is undertaken without clothing) or Best Nude (Travel Destinations), where you take off your clothing and leave it off when you reach your destination.

One of these sounds like more fun than the other.
ORMs are a solution to the problem of the impedance mismatch between an object model and its corresponding relational model. It's not that ORMs come with the problem.

I think it increasingly rare today to see real object domain models anyway - the original raison d'etre of ORMs. Instead it's common to see domain concepts modeled in the data layer and modified by logic (often limited to CRUD) in an application/service/controller layer. The problem with this of course is that as complexity increases, that app/service/controller layer increasingly approaches a big ball of mud.

Edit: grammar
Compilers (and thus, compiler writers, i.e., people) have gone off the deep end with C. In search of endless over-optimization (don't worry, they will tell you that this optimization is "important" because some stupid benchmark runs 21% faster), programmer intent (as well as mistakes) are turned into bizarro behavior. Why we accept this is beyond me. For C, in particular, it has made writing code that uses plain old C ints way more challenging than it needs to be, among other things. We need to rethink what is important: a little more performance, or representing (to our best possible guess) what the programmer actually intended. </rant>
It takes a lot of hubris (all too common in the software engineering community) to suggest that Marx and Hegel, two of the most influential philosophers of all time, produced nothing of meaning.
Why not? A charismatic CEO can get away with a lot, in terms of investors giving them more leeway. Sometimes this is good, like Steve Jobs, sometimes it is bad, like Elizabeth Holmes.

Eventually tho' SpaceX will be as constrained by demands for quarterly earnings figures to start making bad, short-term decisions, just the same as most Western corporations.
> We argue that modern leftists tend to have some such feelings (possibly more or less repressed) and that these feelings are decisive in determining the direction of modern leftism.

So he made a (controversial) argument about leftists which actually fits in with his broader point that humans these days are not able to self actualize and therefore suffer from repressed feelings. IMO the statement he made is significantly less crazy than Freud's "scientific" theory of penis envy (https://en.wikipedia.org/wiki/Penis_envy#Freud.27s_theory), which was treated as an actual theory by the scientific community for _decades_.

It's a bit polemic about leftists in that regard, but do you think the overall point is invalid? If so, maybe argue why instead of just calling him crazy.
Went to your website, don't see a careers or jobs page?
Goto statements still have their fans, and on the other end of the spectrum you'll find people arguing that things like multiple return statements and exceptions are basically the same. It's hard to find absolute truths in computing. I bet there are a few people who'd like us to ditch that whole binary kerfuffle, too.

But yeah, they're trying to be productive in the short term, so it's probably not worth overanalyzing whether a distaste of static typing isn't emblematic of other issues. Getting things rolling has a higher priority...
How do you know when you're using a SPA and when you're not? Seems to me, a well designed SPA is indistinguishable from a regular HTML site unless you're actively looking at the network tab. Could it be that you have a bad impression of SPAs, because you only really notice it when you're using a badly designed one?
XCode 9 has implemented refactoring:

https://developer.apple.com/library/content/documentation/De...
I have a personal Jenkins that's been running for years. Adding new jobs isn't yak shaving; it's a two minute task that gives me CD.

Same with my AWS "framework". And my CSS "framework" and my React component superclass and lots of other stuff I carry from one side project to another.

Some would (and have) accused me of over engineering; but I can discover my project is pointless very quickly.
An article[0] on Medium, albeit a thought experiment, offers an interesting take on the demonetization program the Indian government adopted. Here's a snippet:

"You [NDA/GoI] do two things — One, you neutralize the Congress with the only way you can neutralize their resources — Black money and Demonetization. Even if you don’t reduce their resources, you at least succeed in reducing their liquidity. You take a hit too but if you look at the damage you cause your biggest rival, this is a a shin graze."

0: https://medium.com/indian-thoughts/something-interesting-is-...
Why HPV Vaccination Rates Remain Low in Rural States
Isn't the obvious answer here that he creates a company that offers "professional level" support contracts, ala Red Hat, Sendmail, ...
That wasn't what I was trying to imply at all. My point was - maybe we should listen to the experts instead of self-serving politicians.
It sounds like this is more a political issue rather than a technological issue.
Are there things that can cost-effectively be done in existing houses? That seems a good way to create demand for greater efficiency - demonstrate the value on a smaller scale first.
From the article, we get "while the U.S. spends more than $50 billion per year on spying and intelligence, pennies go to Internet security".

It is wild to me that US intelligence is sincerely scared of their sources "going dark". I've never gotten over just how asymmetric the conflict is, and how much first-class privacy software gets written for little or no money.
I'd love to work through this, but I'm allergic to R.

Is there something like this in Python?
It wasn't technical deficiencies that killed the UK space programme, was it? Or was it?
When 120v (or the equivalent standard power outlet in other countries) recepticals are unavailable, people use extension cords. [1] The building codes are not written for the happy path. They are not just written for new construction.

That said, I think there is a role for an additional low voltage power system in dwellings. But it would run alongside the existing system just like POTS, CAT5, and coax because that makes it practical to upgrade existing buildings.

What is missing is a standard, but USB C seems to be heading that direction. The problem with USB C currently is that of all standards, there are so many USB C's to choose from.

[1]: http://www.fireengineering.com/content/dam/fe/online-article...
See, I'll play the lottery. I don't mind paying a dollar or two every now and again for the EV- hope of being undeservedly wealthy.

But even with a 40x return you need to dump TWENTY-FIVE THOUSAND DOLLARS into a highly risky investment to make a single million dollars. Christ on a cracker, $25,000. That's a year of frugal living in most places. How could you even ... ?
It's also pretty common that the job is already basically filled internally or (less commonly at the moment) by H1B but for various legal or procedural reasons there has to be a job posting.
Detecting fake banknotes using TensorFlow
If someone figures this out, please blog about it.
Really dank memes in your article.
"Even without evidence, everyone should believe it will solve the problem, but I won't believe it will solve the problem until there's evidence."

Is that what you just said? :)
Following your argument above, if the content publishers don't like it they should stop publishing content rather than enforcing your particular idea of an implicit contract.

If not then your supposed liberalism is strongly biased against those who disprove of advertising.
If income indicates ethical behavior, why are murderous drug lords so rich?

People vote for all sorts of awful things with their money. It's ridiculous to assume that means the people they bout for are behaving ethically.
There is a shortage of workers in as much as there is a shortage of BMW 7-series sedans for under $30k. I looked everywhere at that price. Massive shortage.
While not quite as "oh, that's neat" - a set of Wang dominoes might be interesting to people who know what it is (incidentally, Wang is the logician that had a conjecture that proved false and lead to the aperiodic set that Penrose came up with).

One aspect of the "this is undecidable" was that it to prove it is equivalent to solving the Halting Problem.

> In 1966, Wang's student Robert Berger solved the domino problem in the negative. He proved that no algorithm for the problem can exist, by showing how to translate any Turing machine into a set of Wang tiles that tiles the plane if and only if the Turing machine does not halt. The undecidability of the halting problem (the problem of testing whether a Turing machine eventually halts) then implies the undecidability of Wang's tiling problem

https://en.wikipedia.org/wiki/Wang_tile

In one of the books I've found - Andrew Glassner's Notebook: Recreational Computer Graphics - they have a set of tiles that implement some program. https://books.google.com/books?id=_4ZMC_QBAC4C&lpg=PP1&dq=An... (some other Turing machine Wang tile sets - https://grahamshawcross.com/2012/10/12/wang-tiles-and-turing... )

All that said - if you're willing to go with printed square tiles that implement an aperiodic tiling with edge rules, that might be an option.

And all that said... http://www.tessellations.org/real-materials-tessellations-16... is the story of making a Penrose kitchen floor.

> A potter friend, Jim Morrison of Cold Mountain Pottery (dot com), made several molds from my cardboard patterns for the two tile shapes. Over a period of several months I made about 1,300 tiles one at a time with the molds.

Another option to consider... instead of tile, wood. It might be a bit easier to cut to the right specification, and then use the clear epoxy penny floor approach to protect it.
seems to show the internet/media's ability to influence opinions is much smaller then they predict.

They were wildly successful at influencing opinion, just not in the directions assumed. The media narrative doesn't attempt (or refuses) to acknowledge the non-reductive motivation and positions of people that disagree with the implied national status quo of their coverage.

I still maintain that the major news organs would have stopped Trump's candidacy in it's tracks if they had focused campaign coverage around concepts of governance, civics and leadership instead of the horse race and clickbait hot topics.
That place reserved for child molestors and people who speak at the theatre?
Yes, I do. I think sometimes people just want someone to bounce ideas off. For me its primarily helping people to think logically about their problems, but there's also some help given from the years of experience I have. I'm not super-successful, but I've done 'ok' and I'm happy. The feedback from those I've helped has been positive and it feels good to help others. I think best way to get started is to just speak to people and see what problems they have and see if your knowledge can be helpful. Use your own network first - plus there's a fairly big network on here! :)
Privacy Badger is available on Firefox for Android. You might want to take a look at it if you use Android.

https://addons.mozilla.org/en-US/android/addon/privacy-badge...
> This API was around for years, with people using tuple indexing either explicitly or through destructuring assignment.

FWIW destructuring assignment uses the iteration protocol[0] not indexing.

[0] which can fallback on indexing if there is no explicit iteration support, IME that tends to be more unhelpful than convenient
More properly, they hand picked 40 businesses that later came out as being successful/capable of repaying the loan.

We don't have data to know if 40, 400 or 4000 businesses applied and then only 40 were financed or if all the 40 that applied were successful.

In other words, one may be reliable even if he/she has a bad credit record (along the established though most probably unfair current ratings), but the fact that these ratings are flawed doesn't mean that everyone with a bad credit record is reliable.

It is likely that there is a "gray zone" of people that do not satisfy the criteria of the current system credit ratings while still being good re-payers.

All in all this seems a lot more similar to VC funding than to "traditional" credit.
How snobbery helped take the spice out of European cooking
>Why should anyone be restricted in their actions because of your opinions?

Because the rights and protections under the law that advertisers rely on only exist because of my opinion and the opinion of other citizens.

Without the law, the concept of private property would be largely undefined. Corporations would not exist. There would be no limited liability, no chapter 11, no enforceable contracts, no trademarks, no patents, no copyrights, no courts, no police, nothing of the sort.

If we want to enjoy the protection that the rule of law affords us, we will have to accept that there needs to be some sort of social process that determines what our laws should be. It's a negotiation.

And no, using ad-supported services is not voluntary in any realistic sense of the word. There are many essential necessities of modern life that are ad-supported and have no real alternatives.

Also, voluntary is a rather ill defined term when it comes to things that most people cannot even know or understand.
But I don't think that's how job openings are calculated - they're mostly derived by asking employers, not just counting up postings.
But, in the standard perfect markets interpretation, that would mean that the task shouldn’t be done. Right?
> leaves in the end, for good reasons, more than 3 LOC in "committed" work

I suppose it depends what people mean by LOC. I guess my 3 LOC isn't actually just those 3 LOC. Definitely an interesting thing to think about at least. Ta!
Having done a good handful of interviews, I tend to look for "generic problem solving" (not in the sense of trick questions, but in the sense of running through ambiguous engineering and mixed social/engineering scenarios to see how they'd move forward) communication skills (the ability to communicate the above effectively, talk about past work, problems, successes) and frankly track record. (this is obviously harder for new hires so you look for things like coursework, projects, even successes in other lines of work can demonstrate someone's professionalism and capability)

You may note that these are all primarily "soft skills" and I would hope this is the takeaway from my ramble. My experience has been that it's often easier for a hire to pick up the technical rather than the nontechnical side of things. Depending on the level of the job, of course you have to filter for a certain level of competency as well, but I can usually get a good sense of that within the questions I ask above. When I get someone to really start talking about "what have I succeeded/failed at; why; what would I do different" I tend to find I can get a decent read on if they're bullshitting me or not.