skysight-inc/HackerNews huggingface dataset:
Ask HN: How does code documentation work in your company?
Do you generate code documentation at work?

Do you use sphinx or doxygen? (other alternatives?) or you use a separate wiki? How does code documentation kept in sync with the code?

Any other methods? What are the problems (with doxygen for example?).

Does your company have a good culture to encourage code documentation?
There are upcoming optimizations that will allow the bitcoin protocol, via layer 2 solutions, to run at the same capacity as visa.

Yes, it really is possibly that bitcoin will have a higher capacity for less energy costs.
At both of my jobs, I am working way too much, I am working in pre-C++11 codebases which now allow C++11. Both are working to for -Werror everywhere and that helps a huge amount, and we can try to get more warning listed and make broad but subtle changes to the codebases.

At one place we are in a race before a tight deadline and at the other we are breaking a large monolith into smaller packages. At one place we implement a new practice for all our code, and at the other we implement all our best practices as we chop code out of the monolith. Both places are seeing a reduction in bugs. The place with the packages is probably reaping a larger benefit because they are aggressively re-working old code and have better test coverage and can do so with confidence.

Code bases do grow organically, but like places they can be tended and pruned to make impressive orchards or topiaries or left to the wild to become impassible jungles. Tools like RAII, exceptions, classes, etc... are just tools for managing this.

I think the tools in C++11/14 are at least as powerful as in any language except perhaps Rust. Every time I hear a C developer say "C can be just as safe..." I am imagine a person with nothing but a pocket-knife trying to manage a whole forest.
At the rate they are adding and modifying stuff, i am sure we can turn service files touring complete soon enough...
Between this and their terrible search and filling up all the white space with ads, it's clear that a FB replacement is nigh.
Blind Expands Its Anonymous Community to Everyone in Tech
Not only that, but many of those local ISPs monopolies have been going on for decades, so even opening the market up to competition gives them an unfair advantage since they have had decades to invest monopoly revenue in their infrastructure.
Ironically works great with my iPhone and my Surface Book. :)
That may be but I thought it was an excellent analogy. I don't think he is really concerned with imparting information about how hearing aids actually work, it is just a device.
In Brazil you can. Idea is get corruption.

For example, we had a governor that had as wages about 10000 usd month... yet was spending millions.

Not even the craziest bank would fund that, so it must have been corruption. (It was, he received if I remember correctly about 100 million usd in bribes)
ACA's goal was to de-couple insurance from employment by having exchanges that anyone can enroll, and in theory you gain some negotiating power by participating in a plan that thousands of others have chosen.

I think one problem is perception - when you don't see the health insurance premiums on your pay stub, you tend to think of them as $0, so going from $0 a month to $800 a month does seem outrageously expensive.

The other problem is the tax treatment of health insurance premiums - they're deductible for the employer, but not deductible for an individual. One of those inconsistencies needs to change, most likely deductibility on the corporate front, as that somewhat contributes to the rise of total costs ("who cares if it's 5% more expensive this year, it's a write-off") and is a corporate subsidy - the money that could've gone to the benefit of all citizens is funneled to large corporations to help those nice fellows cover their costs of doing business.
Hans zimmer instrumental.
> Hint: you're assuming the only cost is just the raw spindle.

Not me, not sure who you are responding to? I was just correcting the record that Backblaze ONLY used "consumer" drives when some of our drive serial numbers are "enterprise" drives, I wasn't commenting on total cost of ownership.

Backblaze has our own spreadsheet of total cost of ownership, and we are mostly deploying 8 TByte drives right now because the increased density means renting fewer cabinets and paying less for electricity. I'll just make the point that the spreadsheet takes the inputs of WHICH DATACENTER because different locations pay different amounts for electricity.

> I am a co-author of the "Disks for Data Centers" paper.

I read it when it came out, it is filled with good ideas, concepts, possibilities, and suggestions. Very worth reading. However, it is all about spinning drives, which may not be the lowest cost and highest performance in "X" number of years. There is a lot of disagreement around this point (even within Backblaze) but I think "X" is "really close" like within two years. Even if the individual SSD costs more per GByte, like you brought up, the savings in electricity (our number one datacenter cost) are really good which might make up for it soon (again, depending on the region they are deployed in).

But for at least the next two years (and possibly five?), I think we all know we're deploying spinning drives. :-)
> And yet Netflix won't give me even that.

Cancel Netflix then.
Is it really harder than making autotools work?

Anyone releasing software in C, Python, Haskell, Ruby, Lisp, or whatever language has extra work to do. I don't think there's any sizeable difference between any of them.
Those companies don't really employ very many people. They won't explain widespread demographic trends.

(In fact, I imagine they tend to counter the specific trend, attracting people to high paying jobs)
French Court Throws Out Google’s $1.3B Tax Bill
the distribution today is evident in redditors being made into millionaires, and in venezuelans buying basic goods and health care.

the traditional government control on value is only starting to erode though, and who knows what the future looks like.
I don't really feel like this is a fair statement if you have done any game engine related development. Even 'writing from scratch' is still gluing together a whole soup of libraries and many of those libraries are C API only. Fonts? Use freetype. PNG's? use libpng. COLLADA? Audio? Audio files? Input? OpenGL/DX?

As soon as you say you are throwing out C/C++ you better have amazing alternatives that make sense for the language you are working on. Games are large enough projects with broad enough scope that if you don't have a language that works well with a bunch of external libraries you are immediately in the weeds once you end up with a problem that isn't covered by what is already available. If you find this out too late in the project (especially in a hobby/side project) this can be a death knell.

This is a constant problem in game engines or other large frameworks- once you get off the rails in a significant way all your development time is going to making that kludge work. If you are using a language that is just wrapping C API libraries often a lot of this development time is just fixing the wrappers to the actual library instead of getting anything done.

If you know the end product is 100% covered by a game engine you can save all the game engine development time and the kludge fix time all at once. I had written a whole tutorial series based on XNA for instance because it was easy to demonstrate the concepts I wanted to share, but when trying to start working on a particular topic I realized the engine's limitation and it all went to hell and I had to scrap it.
> You want to prioritize the remote surgery protocol above all others...net neutrality allows that. If, instead of protocol, you prioritize by source/destination

Yes, I absolutely want the ability to prioritize remote-control packets between the hospital and the doctor actually performing the surgery, not any random other packets that happen to look similar. Such a priority channel could be set up on the fly, such as via software-defined networking.
People in that station actually talk to each other, so a few % of app users in the crowd might result in a large number of people knowing.

I'd hate to imagine what would happen during peak if a train came in on an unexpected track AND a different train on the expected track - it is not unusual for multiple trains to be announced at once. Then you'd have a pile of people trying to go up those narrow stairs while a pile of people were trying to go down.
Yep, see 40% cells used 4 years ago in http://www.businesswire.com/news/home/20130426005162/en/Amon...

(36% eff in practical application due to system losses)
Rarely Heard Ragas by Vilayat Khan (sitar) is very good for listening to while working, IMO. Similarly other mild melodies on stringed instruments. Relaxes you while you work.

https://jugad2.blogspot.com/2013/10/music-video-sitar-vilaya...

http://en.wikipedia.org/wiki/Vilayat_Khan

Edit(s):

Vivaldi's Four Seasons is another good one for this.

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

https://en.wikipedia.org/wiki/The_Four_Seasons_(Vivaldi)

Barclay James Harvest. The story of how they got their name is interesting :)

https://en.wikipedia.org/wiki/Barclay_James_Harvest
We already have standards for encrypting/authenticating email transfer between mail servers and between the server and user agent.

This doesn't solve the problem of mail being encrypted in transit. As far as I can tell the server operator can still read the user's mail. What we need is end-to-end encryption, lack of support in MUAs (iphone mail app, thunderbird etc.) is the problem here, it has really nothing to do with the server.
Pay turn off ads. A certain percentage of visitors are asked to rate the content (to avoid paying) the rest of the visitors are automatically billed and pay the average rating.

Each user can specify a maximum payment and can opt to view with ads if payment requested is too much.
你个五毛
> dramatically increase page load times

This is true, but with a reasonable cache design, it shouldn't be too bad.
> Looks like it could be interesting to submit a PR to some popular hashing libs to have a 'adblock-safe' mode (append some postfix if hash ends with 'ad' etc)

Why is that preferable to a PR that fixes the bad regex?

I would suggest `[^A-Za-z0-9]ad.js` is better - it's not just hashes that would fall foul of this, any word that happens to end in 'ad' is going to break. If it's actually about ads, the prefix is probably going to be something like 'blah-' or 'main.' or whatever, surely?
X didn't (doesn't) run on PDP-11s.
These images are even more proof that a bitcoin is worthless and the market is manipulated.
There aren't that many leaving simultaneously - plus they tend to be slotted into the same group of platforms.
it's sad that nothing more has been published on that architecture for 2+ years...

One would imagine most of the research dollars being into how to make multi-junction cells cheaply, rather than into other much lower efficiency cells.
It is not just that they only talk to each other, but that the way they talk to each other is willfully undocumented and fluid, so that the devs can change things at their whim.
The point is that almost nobody uses bitcoin, and it still uses as much electricity as VISA (or more). If it became the currency of the masses, we'd spend half the world's electricity farming blocks.
The stuff linked on the page is stuff you'll learn as an undergrad or before.
Your comment wasn't good enough to lazily copy and paste from that other thread. I mean, it's even got a broken URL.

> we're still discovering new species

Just an observation: this has literally nothing to do with how many species exist in the world. If you're interested in finding something to comfort yourself about with regard to current high rate of extinctions, this isn't it. You'd have to observe the birth of new species.

(your link is broken. Does it contain a scientifically credible claim that new species are being born at the rate that old ones are going extinct?)
Now if only this were linked from the bottom of google.com .
> Well, no, because why would they want their own 4K content to be easily ripped and uploaded to Usenet?

Sorry to break it to you: That's already happening with DRM.
Usually far less than 1 MB. It's about cost, footprint and power consumption.
That's a changelog.

I don't mean once-a-year posts that no one reads because they are too long. I mean regular, valuable information about the product.
I have an ergodox infinity on the way, but for 9 months now, I have been very happy with my Atreus keyboard in dvorak configuration.
Most people don't use them. It is too hard (10 extra seconds is too hard). Facebook is good at figuring out from the pattern of likes who else will be interested in seeing something. It is only when you have an important announcement that they screw up.
and you get access to the common carrier of cars around your city: the road. Maybe you'd prefer if ferrari paid to have dedicated ferrari lanes that went to dedicated ferrari restaurants
> Why not move to proof of stake?

Because it doesn't make sense. If a chain, on which a token exists, needs securing, you can't use that chain's token to secure itself.

> Mining has huge energy requirements as shown by the article.

Mining has no requirements at all. People just follow the best chain, and miners can sell the bitcoins they earn by extending the best chain. It's entirely voluntary.
Google Container Engine now runs Kubernetes 1.7
I just had my panels turned on. I love solar. It's still difficult to justify it short-term on a cost-basis, but I'm saving about a dollar a day after all things are said and done.

That being said, I'm generating my own electricity and my panels will run for a very long time. The best is cranking the AC and still watching the meter run in reverse during really scorching days.
> If I get notices from pages/groups I dont care about anymore, I either unfollow or mute the next time their post annoys me.

I do that as well, but I think it's extremely rare among Facebook users. Everyone else I know either:

* Puts up grudgingly with "spam" they no longer want to see, or eventually

* Complains "Facebook is full of crap these days, I'm deleting my account".

A filter algorithm is a much better experience than manual unsubscribe for most users. With how easy it is to "like" anything you see on Facebook and the rest of the web, it is almost necessary to assume that subscriptions should "expire" unless the user keeps actively interacting with the page.
> They won't explain widespread demographic trends

I know this, but I wonder if the same thing is happening in other industries. E.g. is Monsanto doing something similar to small seed distributors/providers? Are large banks doing something similar to small credit unions? Are large construction firms doing something similar to smaller ones?

> In fact, I imagine they tend to counter the specific trend, attracting people to high paying jobs

Maybe. But what if these firms are really so efficient that they're replacing 100 migrants to regional hubs with 10 or even 1 migrant to a national/global hub?

Again, I'm just asking questions :)
Hoo boy, this touched a nerve.

How would you stop working for Uber if you couldn't get other jobs? How would you move house if you had no money to do so?
This is now fixed. ;)

The Coverage panel in Chrome 59 is the debut, but it's gotten a lot of improvements since then. In Chrome Beta (or you can always look in Canary), the data is reported live as things happen, and indeed results do aggregate across different page navigations. Which is what you would expect.

Demo: https://zippy.gfycat.com/PopularWarmCoqui.mp4
A huge win compared to C is fearless refactoring. Making changes to an existing codebase in C is a minefield. Refactoring in Rust is a breeze.
You could argue that one race votes for one party over another, but the VRA goal was to ensure minority representation, regardless of the party affiliation. Full Stop.
Anyone driving for Uber is really dumb, these people simply take the cake.
I don't think it's unreasonable for voters over a certain age to have restrictions put on their voting. My grandfather died at 94 and for the last ten years of his life he was extremely misinformed, and I don't mean just because he voted in a way that I wouldn't, or got his news elsewhere. He lost the ability to properly understand news from the television/newspaper; he would frequently ask my family if we had heard of some story and then provide a wildly inaccurate summary of it, only loosely related. This was mostly due to the progression of Alzheimer's. He was still able to vote during this time and I think even participated in the 2016 Republican primaries (at that point he was having trouble remembering even the most basic of things).

That said, removing people's right to vote is not only difficult, but can cause more problems than it solves. Implementing voting tests can codify racism/sexism/etc. Medical tests will just be gamed. And good luck ever passing these restrictions anyway, since old people are the most consistent voters out there.
Is there any reason to hope things might be finally resolved in the somewhat near future?
For those who are interested, this is the text of the full report:

https://drive.google.com/file/d/0B6leBB47NfItbHQwa3c4d3E0QmM...

(for those wondering why it is in English, that is one of the official languages in Pakistan).
I was pretty much with you until the last paragraph.

The efficiency gap for all plans[0] shows pretty clearly gerrymandering can occur for either party. In fact, the very pro-Democratic plans are more gerrymandered than the very pro-Republican plans, including the plan in question. There are four pro-D plans with the upper error limit above .2 while the plan in question appears to be at approximately -1.5

There's no need to turn this into "if Kennedy doesn't vote against this he's in favor of gerrymandering because it helps his conservative leanings."

[0] https://cdn.vox-cdn.com/thumbor/pJwDdPDejaHo83ukoW27r6Yaaxg=...
"it appears to me that Google is patenting it so that they have the patent, not for purely altruistic reasons"

This is not correct. In fact, as far as i know, the code was already open sourced, and the patent would end up released as part of AV1/etc anyway.

"If it was for the public good, the patent would be filed via a non-profit that Google can't control."

It'll be released that way, so who cares who files and pays the fees?

You really don't want non-profits filing patents. Really. This is pretty much the most horrible thing i can think of.
It's infinitely easier to keep them from going bad (Example: MPEG-LA) if you can make their corporate bylaws, etc, prevent them from filing patents.
Don't try, most of them go into QUANT Finance.
From the article: "The ruling in favor of Google, now part of Alphabet Inc., followed a court adviser's recommendation that Google did not have a "permanent establishment" or sufficient taxable presence to justify the bill."

Google makes billions worth of business in the EU and yet they deem that Google doesn't have "sufficient taxable presence to justify the bill".

I would like to know what are the exact terms that specify what is a "sufficient taxable presence to justify the bill", since nothing seems to fit the description.
Yes, privatization of utilities has been a very successful policy and was implemented across the world over the last few decades.

The case for internet service being private is very strong. Do you really think a government bureaucracy would have developed the internet to its current state if they had taken it over in the mid 90s? Competition and the profit motive is what has gotten us this far.
I think the example is contrived, not every average joe is going to connect to 'remotesurgery.stelegius.com' and perform a surgery. So if a hospital wants a stable , high bandwidth , high QoS connection for 'remotesurgery.stelegius.com' they can do that today with any ISP (think MPLS back hauls). Now the doctors that want to connect to 'remotesurgery.stelegius.com' and perform surgery can also do that by getting the same high QoS service that sometimes can even directly connect these two set of end points.
So... We're centralizing the production of the currency that's supposed to decentralize everything?
NFC has an effective range of about 20cm, bluetooth (and wifi) up to about 50m. these have completely different use cases, and if you're limiting yourself to 20cm range for a semi-permanent fixture (like speakers) you might as well run a wire.
"How to use PVS-Studio for Free" is ridiculous.

"Handing out PVS-Studio Analyzer Licenses to Security Experts" - sorry, tl;dr
Am I the only one that feels like this article is out of place on hacker news?
8 Genius Ideas for Your Next Social Media Post
"Run of the mill bluetooth headset, mouse, or keyboard" manufactures don't make Bluetooth chips, they buy them. What part of the bt stack do you work on? You're saying nonsensical things, wifi does not do AFH. I didn't know apple made bluetooth chips? You don't even mention Nordic or TI, also not all big bt companies are in America.
Sorry, I got into a habit of submit then edit on HN because we used to get errors if you waited to long. I did not think we would hit 10% by 2060, but I hope we hit 40%.

US coal use is down to where it was around 1930. Petroleum is around 1960's usage levels. https://www.eia.gov/todayinenergy/detail.php?id=26912

Natrual gas has spiked, but it's realitvly speaking less of a global warming threat due to C(x) H(x) turning into H20 (x) + C02 (x) which produces less CO2 per heating vs just C into CO2 from coal.

So, while there are a huge range of predictions. What happens in the next 20 years is more important than what's going on 40 - 60 years from now.
You can actually opt out through the widget which will pop up if you go here: https://www.battleforthenet.com/july12/
I find this thesis questionable. I'm a very political person and do a good bit of politicking on FB, including my group membership selections. I don't find this echo chamber effect at all, not least because there is a lot of inter-group antagonism (people who stage raids on other groups and so forth). I certainly don't get all my political ideas/news/anything from FB, but it seems more diverse than it is usually characterized as.

Does it make things more polarized, I would say yes. But that is a general thing with the internet and has been true since the creation of usenet; the Internet accelerates everything including political trends. I find the best way to guard against technology's impact on cognition is to maintain time for reading things on paper, and also time free of media consumption.
"ISIS recruits disabled people to attack transportation infrastructure" would make some good clickbait.
Thanks for the background! That does explain the motivation a lot more.

It does, however, seem wicked racist and even rude that the primary goal of districting should be to get a candidate of a certain race.
What the NPV and pay-off time of your system? I've been unable to get one bid here that's less than 10 years because electricity is fairly cheap here.
> If the Supreme Court had not granted cert it would have meant that this lower court opinion would have in effect (but not technically) stood as a nationwide precedent modifying existing Supreme Court decisions.

I think this is the part that matters. It's possible that the Supreme Court would rather that the judgement came from them rather than the lower court. Leaving it as-is would modify existing Supreme Court caselaw, but the decision itself wouldn't have come from the Supreme Court, which could lead to a bit of ambiguity. If the Supreme Court itself weighs in, even just to agree with the lower court, it eliminates that ambiguity. No one is left wondering "What if it had gone to the Supreme Court" about the decision.

I am not a lawyer, but that is my interpretation.
1Password wants you to sync via the cloud, but won’t force you
wow, that sounds like the holy grail of javascript debugging