skysight-inc/HackerNews huggingface dataset:
> it'd feel lightning fast compared to what we have now

I disagree with this completely. So much of what JS does is increase the (perceived) speed and sanity of the user experience. For example, in a scriptless world, your HN up/down vote can't be done without a full page load, which would come with the added headache of changing the state of the world on your page because stories and comments have changed their ordering. Solution? Return of the chronological thread (no thanks).

And there are a lot of other applications in this same boat. I don't know if you are old enough to remember webmail when the refresh button was how you checked for new mail. I'd greatly prefer what we have now, where mail just appears over a socket. Online drawing/CAD apps or games without CSS and JS? Forget it. Or go back to Flash.

Bottom line, we have the ecosystem we do today because the users demand it. For us as devs, it could be better, more consistent, etc. but we need the capability.
> Is there something about C# that has let it avoid this?

1) You can write more hacky code in C# than in Java. In Java, everything has to a class and you have to write OO. In C# you can mix in hacky practice you may practiced before in Visual Basic. You can do increadable hacky things with threads in C# that just work (tm), while in Java you are hindered by it's monitor or later adoption of green thread implementation, maybe a good thing(tm).

2) OO patterns. The Design Patterns book written by the Gand of Four comes with Java examples. "Factory" and other patterns got introduced with this book to many new devs. If you came to programming from Visual Basic or have no university degree you probably never heard about programming patterns at all. And just code whatever comes to your mind.
Does anyone here have any experience with MANETs? I really like the idea, but is there any way to defend against malicious actors? Are there any protocols that are clear winners? Is the reason it hasn't caught on solely because the big ISPs are against the idea?
> I'm not a Bitcoin expert, but I don't see how anyone can view Bitcoin as anything other than an elaborate pyramid scheme.

A pyramid scheme requires unsustainable exponential growth in number of new participants. Bitcoin can survive without that, so it's not a pyramid scheme.

> Said another way, why would anyone "invest" in Bitcoin unless there is an expectation that the price of Bitcoin will increase?

Investment being motivated by expectation of future price increases is not enough to make something a pyramid scheme. I mean, that's what motivated most investment in anything.
When forex trading becomes illegal for the regular Joe, those trades just goes out on the street instead. See USD/Peso situation in Argentina for an example.
As the linked article points out, we have defined terms like “poverty” and “low income” relatively, so telling us the percentage of people they cover doesn’t convey any information.

The 57% figure is much more illustrative, in large part because it conveys an absolute capability which people can lose or acquire.
I like GitKraken
> committing single lines from hunks that can't be split.

Could you elaborate here? Personally I've always been able to commit just the pieces I need via `git add -p`. Never had problems staging a single line before.

Since this is text I should say: I'm not doubting you, I just like to know the limitations of the tools I'm using.
Why is this submission getting so many upvotes?

Edit: Was just wondering why this would immediately end up on the top of the front page. It seemed more like the result of a voting ring than genuine HN interest in yet another TPB mirror. I know it's against the rules to comment on voting behavior, but this one stuck out and I was curious if I was missing something :)
VSCode or Github Desktop (even if the project is on Gitlab).
The Linux commands you should Never use
One day, years ago, I was working from home and I heard the intermittent "beep!" my uninterruptible power supplies make when they're unplugged and running on battery. I checked all of my UPS's, then turned off all of my equipment, but still every few seconds, "beeep! ... beeep!" It seemed to be coming from underneath my computer desk.

Eventually a spark of inspiration hit me, and I reached up and pulled the cord on the window blinds behind the computer desk. I found myself nose to beak (through glass) with a startled mockingbird. "Beep?" it said, and flew off.
My friend works for a small company that doesn't use a VCS. They just make a new folder and copy the project into it every once in a while.
I believe files can be accessed by Webdav https://www.fastmail.com/help/files/davnftp.html
A Startup Uses Quantum Computing to Boost Machine Learning
Seed funding of $1M for improvement of small scale farming in Nigeria
Honestly, a lot of what's wrong in git is that people seem to mostly memorize or copy-paste a finite amount of commands, and when something goes wrong they are completely lost unless they can find a way to copy-paste a solution.

Instead of saving a 6 command list for some use cases, why not just get used to the simple but kinda unintuitive way of how revisions and branches work? If you know that, you can solve any problem with `commit`, `checkout`, `reset`, `reflog`, and occasionally `cherry-pick`.
BundlePhobia: Reducing JavaScript bloat one package at a time
The game to find a new piratbay clone every few months is indeed tiring.
I use sourcetree, but I would like a console feature that shows me what commands its running. Similar to sequel pro's "console" feature shows the raw sql being run.
Well, I think it tells how much time some developers are willing to spend learning the tools they are using.
Not an official piratebay client - It's simply running coinhive in your browser.
I've personally seen the kind of engineers who simply pattern match rather than thinking things through go into nesting as many GoF chapters as they can into a commit. I was literally told during a code review when questioning what these layers were achieving for the product that 'all abstraction is a benefit since you can then always work at an even higher level'.

Java for whatever reason seems to attract these ideas.
Important to note: this effectively disables garbage collection, and therefore obviously can lead to a LARGE increase in memory usage.

In C++, there are kinds of programs where "#define free(x)" results in the same effect, including the large speedup.

But this is an important trick that also works in Java, C++ and Go.

It can be combined further. For instance, where you're keeping track of many small pieces of a big chunk of data, having the big chunk somewhere with a big primitive type array containing the actual data and then having Flywheel pattern accesses to it can result in incredible speeds.
Probably because ThePirateBay is blocked in many locations (at least in Spain) but luckily there is bunch of proxy-websites that are accessible. Problem is that they are often slow, filled with ads and generally have a shitty uptime.

Oh, and people upvote what they find interesting!
When I was young and my hearing was better, I think I had a slightly-better-than-normal upper end to my hearing. Often, I would hear CRTs whining that no one else did.

I vividly remember when I realized it. One day in class we were watching a tape and the TV was whining the entire time. After the tape was over, the teacher started talking about what we'd seen, but didn't turn the TV off. I asked him to, because the sound was so annoying. A bunch of kids started saying they didn't hear anything, which made me think I was crazy until one other kid stuck up for me and said she heard it too.
Top UX design trends for 2018: 10 experts
Why are there so many TPB mirrors? I am pretty confused as to what happened to TPB after the takedown a few years ago, since then it seems to have fragmented into a dozen copycat sites. Is there still a legitimate TPB?
Still uses the coinhive js mining script though.
I would really like to see a detailed analysis of why Medicaid is paying these higher prices.

It seems to be because their payments are benchmarked to what private insurers pay and the private insurers don't fight price hikes on drugs with (for them) small total costs.

One fix might be to use a benchmark that is less dependent on whether private insurance bothers to negotiate. Another would be to allow HHS (working with FDA) to arrange for import of certain drugs.
Curriculum changes aren't retroactive.
distributed repositories are bad for business.

If you read the whole essay, you will see that "distributed repositories are bad for business" is exactly the argument being made.
https://coinhive.com/lib/coinhive.min.js

na & lol
Everybody that is not a programmer (or otherwise IT/technical) doesn't understand version control at all. So as other commentators have said, their idea of version control is to save the file with a different name, a different extension, etc.

I have seen it as files on a shared drive.
I have seen it as files on a sharepoint drive.
I have seen it as files inside of an SVN repository.
I think lists like these are part of the problem. You shouldn't rely on tricks to use git, you should understand how it works.
Comic: When you got into BTC and why
Are you arguing that privatization of an industry is likely to result in better management of its externalities?
GitHub's GUI is the worst. It has a "sync" button.

As soon as I saw that button I knew I'd have trouble using it.. what will "sync" do? Push my branches? Pull tracking branches? Will merge commits get implicitly created? Or will it just fetch? From what servers? I didn't want to risk having my local master get pushed into production just because GH wants to make things easy for me, so I just quit it and went back to the CLI.
That was a cringy, painful read.
That's unkind - you know GP couldn't have been paid a whole 50 cents for a comment that bad.
> A median-income household owning a median-priced house

A median-income household is unlikely to own a median-price house for a reason very similar to the reason they are unlikely to own a median priced jet, because home ownership isn't uniformly distributed across income levels, as low income households are more likely than high income households to be renters, and high income households more likely to be homeowners (and to own multiple homes.)

If a median-income household owns a home, it is likely to be a singificantly-below-median-value home.
I'd definitely concur that your first paragraph holds. Having a flutter is one thing. Buy £5 of ether on Coinbase, see what happens! Investing seriously, OH DEAR GOD NO.

The motivation for this is that I keep hearing from friends asking "help, [relative] thinks bitcoins are a good idea! what do I do?" So instead of abstruse jargon-laden blockchain inside baseball posts, I tried to write something more accessible about the problems.
What's wrong with "bullshit" ?
Thanks for pointing this out. We'll work on getting fixes in ASAP.
Here is the dragos write up on this (pdf): https://dragos.com/blog/trisis/TRISIS-01.pdf
I thought trades past a certain size had to be disclosed? But yes, this is probably the reason: I simply wouldn't be able to know until long after the fact.
You're confusing GDP with taxes

https://randomcriticalanalysis.files.wordpress.com/2014/11/t...
You are describing this:

Canada->US, approved
US->Canada, approved

i.e. Canadian companies are successfully selling to the united states medicine that is manufactured in Canada and is regulated by the US. US companies successfully selling products to Canada that are manufactured in the US and regulated in Canada.

If we had a reciprocity then we would have:

US->Canda->US auto-approved
Canada->US->Canada auto-approved

i.e. if a product is sold to Canada then it can be re-imported into the US.
When I'm on the go, virtual desktops are a lifesaver
In a recent project we went without an ORM.

We took a tack similar to how PostgREST and PostGraphQL are structured. We use views in the public schema to build our objects. Functions constrain our mutations. Triggers respond to events and maintain consistency.

It makes our web API code simple and hard to introduce errors that invalidate our customers’ data.

Don’t miss having an ORM. Always seemed like more abstraction and complication than was necessary given recent advances in servers like Postgres.
Spam, scams, and bad ads have been around since the start, what internet were you using?
>>But then there are other states, like Florida IIRC, who have also been running that experiment and succeeding.

Succeeding by what measure?
The network adjusted difficulty aims to average 10 minutes between blocks at all times. In order to get a point where you could feasibly calculate a hash you would have to have an extraordinary breakdown of something (like all of the hashpower vanishing) in order to get enough time before the next block.
It depends on how you compare them. Based on driving performance (acceleration, braking, turn handling, etc.), the Model 3 arguably out-competes its in-class competition.

Based on driving experience excluding performance (i.e., interior comfort, QC, etc.) it's worst-in-class. The interior furnishings are about equal to a Kia or Scion--both of which are in a different, less-expensive, class of cars. Tesla's QC is about on par with Dodge, which is not a compliment, as Dodge has consistently been a bottom-dweller in the reliability department for years.

So it boils down to this: if you want an EV as your primary commuter vehicle, the Model 3 isn't it. If you want a Model 3 as a secondary car, it's probably worth it for the cool factor if Tesla's quality control improves but until then it's not worth it.
I worked with the UCSB team on some of the thermalization calculations that didn't end up making it into the paper (I am at a different university). It's really cool to see how quickly phenomena we study in simulations came to the forefront of experiment. The actual paper can be found here - https://arxiv.org/abs/1709.06678
> It's clear I'm not going to make my fortune off manual mining, and I haven't even included the cost of all the paper and pencils I'll need.

He's not taking into account price inflation over the long term. If BTC ever cracks a million USD, he'll really regret not squeezing every last bit of hashrate he can now.
What a cry-baby. Show your code! 95% that you are doing things wrong.
Cooking for engineers
The funding article:

https://electrek.co/2017/03/27/electric-vehicle-startup-nio-...

I really like how ‘up to $600 million’ is in quotes.
It can reasonably be called a headless ponzi, I think.

https://prestonbyrne.com/2017/12/08/bitcoin_ponzi/
Book recommendations for engineering organizations
I worked on Secure Scuttlebutt and then founded Beaker. Happy to answer questions.
I've used it a lot without autotools, but that doesn't change my opinion re: autogenerating makefiles.
I disagree, if people have given up trying to fly on the years of continous crashes, we would never haven gotten mainstream comercial flights.

Many times there is a need of ongoing investment, where things are failing pretty bad, until they actually take off.
Someone posted this link on reddit today.

https://think.ing.com/uploads/reports/171218_Why_Bitcoin_to_...
My wife gets increasingly pissed off when she searches for various materials she wants to purchase. A specific site keeps coming up for her that she absolutely hates and starts with an E. And there's nothing special about the links, and likely nothing important about the specific products other than the domain name that starts with E has billions of cross-links all over the web. It makes the random long-tail search terms (that mind you are so freaking obscure) all go to this same site. It's driving her nuts.

At this point SEO has been totally gamed and search is totally useless now. We NEED an alternative.
What Bitcoin shows us about how money works
This Evangelical Leader Denounced Trump. Then the Death Threats Started
> The problem with that approach is that you have to define all your possible use-cases up front. If the web had stayed as a simple document format, it wouldn't even be worth talking about now.

Everything but web apps and spy-vertising would be better (for the user) without Javascript, overall. I submit that those can live on some other platform (the current Web could keep going) while most of the rest could switch to the low-footprint client that cannot spy on you or do user-hostile crap with its interface (popups, hilariously bad layouts/styling [see: Medium] that "look cool", and so on). Keeping low-trust scumbag code strictly separate from safe sites that don't try to screw with me because they cannot would be very useful.

Ecommerce, Facebook, webmail, all that stuff would be fine without Javascript, if anyone cared to do that on this hypothetical Web alternative that treats the user with respect. Tried basic-HTML Gmail lately? It's faster, with its full-page loads on every interaction, than Ajax gmail and way faster than Inbox, and many of the most useful features it lacks from those could be added server-side with no more, or even less, difficulty than adding them client side (Inbox's categories, for example). Its worse layout issues, especially on mobile, would disappear entirely if we had sensible defaults (user overridable) for each platform's browser to which pages were forced to defer.
Yep that’s it. So it wasn’t the cars then, it was the networks being updated.
Grafana 5 alpha preview
Because nested factory patterns are a legacy of an era where lambdas were not well understood, or poorly represented by the type system

Continued use of Factory patterns doesn't deserve outright mockery, but does deserve immediate and firm correction. It introduced confusion and complexity and ontology to a place where a nullary lambda would do everything it does, and slice away all the ambiguity.
None of developed countries have healthcare in any way worse than US, but drugs are waaay cheaper.
>One question I have is why you think that specifically about Bitcoin and not about other things like gold or stocks?

Gold has similar issues. But there is significant non-speculative value in gold. How much, I'm not sure, but it's useful for electronics and for decoration, etc. Also, gold's value is the supposed stability. Bitcoin's value is it's supposed growth, which leads to nasty feedback loops.

I wouldn't invest in gold. I think it's still in a bit of bubble caused by the 08 financial crisis.

Stocks are a different story altogether. You are buying equity in a company that has value. The stock market might be under or overvalued at any given time, but it is still tied to the value of the companies.
Front-End Frameworks: Solutions or Bloated Problems?
Because it's rude and antagonistic and it compels a lot of people to post to defend themselves. It's classic trolling.
We had a wired remote for our VHS tape player in the 80's [0] as well as a cable TV channel changer [1].

[0] Was this exact one: https://i.ebayimg.com/images/g/kyIAAOSwz71ZPcLZ/s-l300.jpg

[1] Looked something like this, IIRC: http://1.bp.blogspot.com/-O2PtM-x0fDc/UyFjySzfuCI/AAAAAAAAJ9...
Thanks.

Also, I discovered your blog. Good stuff!

Currently reading your Insanity with Elixir + Phoenix post at http://www.brightball.com/articles/insanity-with-elixir-phoe....
Why is America more tolerant of inequality than many rich countries?
I have a similar problem with SEO for recipes. There are tons of recipes SEO'd to a certain site that has a registration/paywall that frequently appear at the top of search results. Luckily they are relatively easy to avoid in the search results.
CLI and GUI are both user interfaces and magic is in the eye of the beholder: if you know your tools, you can predict what will happen under the hood when you click on a button as much as when you submit a command (it's not magic anymore).

Personally, I use the CLI and often have no idea what I'm doing ;)
I am glad hg has both Facebook and Google using it. Otherwise Git would have suck the air out of DVCS.
> a distributed datastore has to redundantly store everything

Scuttlebutt gets around this: you only store and rebroadcast your friends' stuff (and anything else relevant to you).

You're actually seeing content from your local storage — which is why Scuttlebutt works seamlessly offline — so there's no need for altruism.
Artificial Intelligence for Marketing Operations – New EBook
It's not ideal, at all -- and if someone else has pushed in the meantime, they risk losing the commit. But if you're in a situation where doing this would be a significant problem, you should probably not be pushing directly to master in the first place, instead relying on a PR workflow.
This is probably the only way to enforce the correct incentive for manufacturers. Build them right or they will fail.

IoT being so hyped right now is specially troublesome since all they will care is time to market, and when the market is filled with insecure devices what else will there be to done?
> One last tool is Fugitive. This blows away anything else I've ever seen for interactively traversing history at the line level.

Sorry if I'm being think, but how do you do that? Are you talking about Gblame?
"Instead of blaming the tools, you (and your team) should probably learn how to use them."

From the essay:

--------------------

And Git is intimidating, not just to non-technical staff, but also to inexperienced programmers. In How To Destroy A Tech Startup In Three Easy Steps I talk about Sital, and his unwillingness to commit things to Git. He was learning a great deal about many other technologies, and he didn’t have any spare energy to learn about Git. He went a month without making a commit, and then he only did so because I insisted. After I put a lot of pressure on him, he got to the point where he would make one commit a day, at night, when he was stopping for the day. He would commit to the master branch, because he was confused how to handle different branches. When there was a merge conflict, I would resolve it for him. We worked together for 6 months, and in that time he learned a great deal about a lot of important topics, but he never really learned how to use Git, because it was a low priority, for both him and our CEO.
Or, my personal favourite:

https://www.goodreads.com/book/show/77377.How_to_Shit_in_the...
The problem is that most people don't set out to be masters of make. They just want to get their shit built so they can make forward progress on the thing they want to create.

Having to learn all of these subtleties is what gets you into these problems in the first place. I'll happily take a more opinionated build tool with proper escape hatches over something that expects you to know it in detail for even the most basic tasks.
> this dates back to a time when not joining the NPT was seen as controversial

I hope it's seen as no less controversial today!
Like gmail long? also, isn't something you open two/three times a day and leave it open?
It's a big surprise to me for a while that China Government blocks so many U.S. internet services but no complaints from the U.S. government what only complaints on old-type of unfair trading: steel, consumer goods, solar panels etc. The digital economy is much a bigger deal.
That's pretty fucked up, http://www.politifact.com/punditfact/statements/2015/apr/28/...
IBM Watson (and, separately, Epic) certainly helped get the former President of M.D. Anderson "fired":

https://www.statnews.com/2017/03/08/md-anderson-depinho-resi...

The CIO (Lynn Vogel) "departed" recently as well:

http://med.stanford.edu/content/dam/sm/cancer/documents/pdfs...
It's a cultural issue.

Patterns are things you can avoid to use, they simplify a prior existing problem. But if engineers don't ask themselves what the code would look like if they wrote it differently, a lot of stupid code will be the result. That can be Boilerplate or it can be Spaghetti.

More communication within the team will help.
Very cool!

I wonder if the word "dark" makes the name have a negative connotation?