skysight-inc/HackerNews huggingface dataset:
> I guess a new engineer may not know that Where() is avaiable, but a seasoned engineer should know

I'd guess the opposite. Its only in the last few years that many mainstream languages have adopted this sort of functional syntax. The new engineer probably learned it right away from the docs, while the seasoned guy churns out smelly-old for loops without a second thought.

GP makes a great point about different loop logic being 'smushed together', that seems to be the most common kind of ugly code (and I've been guilty of it). Perhaps that is psychological. for/while makes loops appear expensive, while the functional code hides that detail and the programmer doesn't think of it.
Massachusetts has realized that its current legislation allowing for non-competes sniffles innovation.

https://techcrunch.com/2016/02/18/silicon-valley-keeps-winni...

http://news.wgbh.org/2016/06/29/politics-government/deleo-pl...
> Why is it fair that an employee can stop working at their job or commit fraud, then immediately sell all the non-public information they have to a competitor?

Then sue if you have proof. What is not fair is to reduce a worker's opportunity to work when he isn't on your payroll.
My preferred whitespace code-style is to use tabs for indentation and spaces for alignment. Under no circumstances should two consecutive lines be aligning something (with spaces) and have different levels of indentation (with tabs), I can't imagine why you would ever need to do this, so this has never been an issue for me.
Well, I have been looking at a map of USA ... It is a big country with a looot of space with inhabited zones.

I have a picture for you to compare how small France is compared to USA http://www.wanderingfrance.com/blog/images/143.png

Oh, and the mirage and rafale find inhabited places everyday to make their sonic bangs, so I am sure it can be done in the USA too and that their military planes are doing so too.
Facebook launches standalone app for Events
PSVR vs. HTC Vive vs. Oculus Rift vs. Gear VR
Why wouldn't the equivalent touchstrip keys be mapped to those whenever you're in your IDE?
So people like Matthew Green, Alessandro Chiesa, Madars Virza, Ian Miers and Christina Garman, none of whom are Israeli, had absolutely no say in how this project was constructed, right? Eli and Eran are just two members of a much larger research group. They most certainly did not "backdoor" ZCash.

There's skepticism, and then there's this stupid crap like your post. No technical foundation, no evidence, nothing, just FUD.
You can sue people for not working at their job? There are many people who simply stop accomplishing tasks when they want to be laid off or fired.

The parent's logic would say that if someone does this, the only way to stop this 'bad employee' from selling all your non-public information is to pay (at least) their full salary indefinitely.
Why is it fair that an employer can force an employee to kill kittens and then fire the employee and prevent them from ever working when they refuse?

Do you realize that what you just said has nothing to do with Non-compete clauses?
Am I the only one that actually finds immense value in the comments sections of different sites on the internet? Obviously there's some sifting to do (inflammatory comments that are meant to be nothing but inflammatory should just be ignored), but I come to the internet to interact with people, not just seek out knowledge. I find things like hn (or reddit) hivemind immensely fascinating, almost like a shared consciousness.

I like the comments sections. I often go there for a chuckle, or to see what other people think. Yeah, some people use that opportunity to troll, or say hurtful things or whatever, but that's what the world is, I'd rather never forget that. I also don't want everyone to mellow to the same position and then everyone holds the same (possibly wrong) position forever, that sounds like a bland existence.

Free discourse is not a flaw, it's a feature.
Except this work is the result of many years of both theoretical and engineering advances in cryptography; if you can't take even the modicum of effort to read up on the subject matter, maybe you shouldn't be spouting bullshit?
Ask HN: How do you organise/integrate all the information in your life?
Hello fellow HNers,

How do you organise your life/work/side projects/todo lists/etc in an integrated way?

We have:

* To do lists/Reminders
* Bookmark lists
* Kanban boards
* Wikis
* Financial tools
* Calenders/Reminders
* Files on disk
* General notes
* ...

However, there must be a better way to get an 'integrated' view on your life? ToDo list managers suck at attaching relevant information; wikis can't do reminders; bookmarks can't keep track of notes and thoughts; etc, and all the above are typically not crosslinked easily, and exporting data for backup/later consumption is hit and miss from various services.

So far, I've found a wiki to be almost the most flexible in keeping all manner of raw information kind of organised, but lacks useful features like reminders, and minimal tagging support, no easy way to keep track of finances, etc.

I understand 'best tool for the job', but there's just so...many...
Does Virtual Private Network(VPN)offer Network Security?
Does Virtual Private Network(VPN) offer network security? What is the difference between VPN and other type of network? I am using windows 7 operating system. How to Install VPN for my system. I am writing thesis at http://www.essayscouncil.com/ on the topic computer networks.
Non-competes are successfully enforced (outside CA) all of the time. Just take a look at the tech press, there are quite a few articles about it.
Which country/city are you in? Can you try changing your location?
I don't know why I'm even replying, this will get so much hate here, oh well...

1. Just because things aren't done "the way you would do them" doesn't mean they're "bad" or "wrong".

2. If you're not on a solo project, I've found writing correct but less "clever" code to help shorten ramp-up time for new devs and be more beneficial to future maintainability of the code-base and system.

TL;DR; Swapping values by XOR'ing may look elite and clever but hurts you in the long run.
I took this as an indictment by Adams of things like "always-on" immediate-reply-expected communication—and high-frequency trading—rather than an actual shot at digital watches.

In other words, what's really a bad idea—that digital watches are a symptom of—is the notion that humans have a need to know the time with absolute precision. Having that information available—literally, on hand—seems to result in nothing but bad incentives (in much the same way that having access to stock-market quotes at an hourly granularity, when going long, results in nothing but bad investment decisions.)

I once read an article claiming that the invention of the bell-tower that struck once per hour was the proximate cause of people keeping 9-5 business hours, and that a lot of other things about modern labor followed from this. Whether or not this is true, I still have a vague feeling that we would be happier (and be annoyed with people for being "late" to things less) if all clocks were randomly skewed by ~15 minutes.
Live a little.

One day your "responsible money stash" will drop in value by 20% and you notice all of the material goods and experiences you COULD HAVE enjoyed now, except you were saving everything to enjoy them at some future time but in vain.

I've never done the 6 month thing, but there is a compromise possible.
"Bullshit, that's what NDAs are for."

Totally false and completely naive.

Most knowledge and know-how is not explicit - they are often learned.

For example - suppose you worked at Nuance, and helped develop their new AI/Neural Network speech recognition system. Everything you know about Speech + AI you learned from them, in that language specific setting.

If you went to work on Google's new Speech Recognition, which is AI-based - it would basically be impossible not to pass on know how and relevant knowledge. The application-specific skills are basically IP.
I'm glad that non-competes are being looked at with a stink-eye, I feel it's bullshit to ask someone to sign away their right to use their skills to make a living in exchange for...using their skills to make a living.

"If I can't have you, nobody can" is the long and short of a non-compete IMO, I don't feel that's an acceptable condition in any relationship.

Maybe I misunderstand what a non-compete is, but it seems relatively straightforward. I don't think an employer is entitled to that kind of benefit, especially considering loyalty to an employer is usually rewarded with indifference at best.
Google’s Alphabet Experiment Misses Key Goal: Keeping Executives
Seems to me you're being a bit presumptuous. I've been using Apple products since OS 7, and I've owned Apple products since 2006. So that's 10 years of brand loyalty, and thousands upon thousands of dollars in hardware purchases. I'm ready to give it all up and move back to Windows.

Apple has been heading down the wrong path with their PCs for the past few years, with underperforming, overpriced, very buggy hardware and an increasingly annoying-to-use OS X, and this is the last straw for me.
Yes it's fine..
It's an impressive feat of engineering but I'm having trouble seeing the point. Does it actually take better photos than the latest generation of compact cameras that have legitimately good optics and sensors? I don't doubt that it's better than a cell phone camera, but if you're going to carry another device then why not bring one with a real zoom lens?
Renewables Overtake Coal as World's Largest Source of Power Capacity
Even better look by MKBHD: https://youtu.be/m7plA1ALkQw

Seems they went all in and sent the phone to some prominent YouTube reviewers as well.
That's absolutely fascinating, because I personally always think the same "way." Are you aware of any research on this subject?
Worried about IoT DDoS? Think Unikernels
Indeed (s)he did:

sudo apt update
sudo apt upgrade

See also:

https://wiki.debian.org/UnattendedUpgrades
It’s a progressive enhancement. Browsers that don’t understand the integrity attribute will just load the JS regardless, but at least Firefox and Chrome will get a safer experience.
I wonder how the list would look like if voyager would be sent today?

Would we for example send Justin Bieber, Rick Ross or artists like Deadmous5?
Hey there, I asked about some comparisons to cryptonote technologies, of which Monero is one, and I haven't gotten any real answers, would you like me to repost it under your thread? Or can you just find it in the comments

My understanding of the execution of Zcash is pretty clear, and it seems like a worse execution that existing technologies, especially cryptonote of which Monero is one. Am I trolling, or looking for a counterpoint? Do you understand how cryptonote technology works? The criticisms have been the exact same since 2014

Blockchain technologies are intended to be able to stand on their own without high profile names attached to them. ZCash is doing the opposite of that, and not even offering anything to make up for it. This invites criticism, let alone the product itself.
> border on the insane. ("UK openly promotes xenophobia"

Yeah, remember this News, where the UK government essentially encouraged those damn pesky foreigners to Keep their trap shut?

> http://www.bbc.co.uk/news/education-37590044

I agree, that's pretty insane - and it is rather xenophobic, if not encouraging xenophobia.
I am pretty sure it hurts you in the short run too. After all, the microcode probably does a register rename or the like with a normal swap, but has to actually burn cycles on using aritmetic for the xor swap.
Sure, but even in western music the chromatic scale is considered to have been exhausted in the 20th century. Modern music has moved on to use other notes and sounds and in many cases is not even pitch-centric.
> For example - suppose you worked at Nuance, and helped develop their new AI/Neural Network speech recognition system. Everything you know about Speech + AI you learned from them, in that language specific setting.

And the knowledge and experience you got from your previous job before Nuance ? where does it come from ? why would the buck stop at Nuance ? or the former company ? or the company before it ? your point is ridiculous. The knowledge I acquire, if it doesn't involve a company's secret is my own and no company owns it. There is no such thing as intellectual slavery which you basically promote. If you don't pay me I owe nothing more than the respect of your patents and other corporate secrets and those are covered by NDA.
Xcode 8 is more stable for swift these days.
"It doesn't matter how much R&D was created. That's the role of patents to deal with that thing."

I'm beginning to think none of you have ever worked in companies that actually produce IP.

First off - that's not what patents are for. Patents protect publicly known information - not trade secrets. And they don't do it very well. There are very few things you can defend with a patent.

What companies are concerned with is 'trade secrets' and 'know how' - and it's a serious thing.

"Then the burden of proof should lie with the previous company, there shouldn't be any possibility of preemptive clause within the former contract."

If you work at DWAVE for 5 years and learn everything you know about Quantum Computing there - and go to Google to work on Quantum Computing - then there is basically a 100% chance that you are passing on 'know how' and 'trade secrets' - otherwise - Google would not hire you.

Your comments about customers etc. are irrelevant with respect to IP issues.

If you work for ABC corp and they make a 'sales automation tool' - and you go off and build your own 'sales automation tool' - then fine. It's not about IP or trade secrets. You can do as you like.

But for other types of things, no way. You work at Nuance on Speech recognition - then you leave and build a nearly identical speech recognition system? That's probably IP theft.

There would not be any technology if IP could not be protected in some reasonable way.

I'm not suggesting that many of these contracts are crazy - and that there can be absurd limitations and weird corner cases - of course it's very tricky - but companies deserve the right to protect their IP in some manner.
Ask HN: Thoughts on Job Board for Junior Devs
Second time around, have made a lot of improvements from my last post (~2.5yrs ago).

Would love feedback on the UI/UX, concept, anything you could think of. In exchange, I'll review one of your projects :)

https:/www.jrdevjobs.com
I'm one of the people that does that. While I assume it's less efficient than using shift, once you get really used to it I would argue that there isn't a big difference, and that it's not as inefficient as you think. At least for day to day use and writing code.
On modern CPU architectures, the XOR technique can be slower than using a temporary variable to do swapping. One reason is that modern CPUs strive to execute instructions in parallel via instruction pipelines. In the XOR technique, the inputs to each operation depend on the results of the previous operation, so they must be executed in strictly sequential order, negating any benefits of instruction-level parallelism.[3]

https://en.wikipedia.org/wiki/XOR_swap_algorithm#Reasons_for...
A model that seems to work pretty well in Europe (or at least, over here in Italy) is having utility providers (which are already used to handle infrastructure at a scale) taking care of deploying fiber everywhere to then sell access back to the ISPs (bitstream).

In this way you have an entity who is solely focused on building and managing the infrastructure, which is able to make investments that single ISPs would not be able to do (while trying to still be profitable). I have no data but I am also quite sure that those companies are receiving funds from both the Government and the EU.

Anyway, they're building the digital highways that we miss and the result for the consumers is not bad: here in Milan, as an example, multiple operators started offering 1 Gb/s FTTH connections for 20 EUR/month.

Such fees are only possible if you do not have to try to be profitable while having to absorb the hit from deploying your own infrastructure.
No idea on the HUD, but subaru's eyesight regularly wins the comparisons I've seen. In the USA the IIHT does regular testing, overseas there's a similar organization (sorry can't remember the name). Youtube, consumer reports, various car magazines, and various others have done similar.

Definitely seems smart enough to reduce or even eliminate (some cases) rear ending someone. I know a few people with eyesight systems and they speak of it highly.

Kinda surprising given how small subaru's R&D budget is compared to the bigger makers. I think subaru is in the 3rd generation or so.
What's so bad about a few people spending some time on a bot to improve inclusivity in the organization?

Do you know what 18F competes with? $4000 is literally irrelevant.
This is now unexpected to be in Swift 4 :(
>The only things that Newton did that were intelligent were things that modern physicists are still unilaterally willing to do ...

> They had less information available to them than we do today by a large margin. Their opinions and beliefs are inherently less trustworthy due to that.

i for one congratulate you for being smarter and more Knowledgeable than both Newton and Einstein.
Companies protect their IP via NDAs and patents and such, not non-competes.

And yes, I have a lot of patents and trade-secrets to my name.
I am sorry, but you've lost me. What do kittens have to do with intellectual property? I am also unsure of how a non-compete can stop someone from "ever working", as I cannot imagine a non-compete that would cover all other corporations (this would seem to be indentured servitude).

In any case, I created a hypothetical to further the discussion; please address that one instead of changing the subject.
Does this count: https://github.com/florianheinemann/passwordless
On the (paper) order form[1] it says:

> DMV has the right to refuse any combination of letters and/or letters and numbers for any of the following reason(s): [...] it conficts with any regular license plate series issued.

My understanding is that all vanity plates are reviewed by at least one human, so it's possible they handle denying vanity plates that fit the sequential series that probably should have been denied in the online form.

[1] https://dmv.ca.gov/portal/wcm/connect/6d97bdef-c5b1-46ee-a55...
AT&T Spying on Americans for Profit, New Documents Reveal
Finance is the most important. Check out traditional ERP like SAP. Don't need to implement the whole thing. But finance module is the most important for small startups and big companies alike.
You can imagine many things, but can you point to any evidence? Many people write blog postings about non-competes; I can't recall a single one where extra money was attached.
Non-compete lawsuits are typically only worth it for VP level people who have strategic secrets. No one cares about or sues 99.9% of workers who go work somewhere else.
Isn't that what the Non-Disclosure Agreement is for? I don't understand how a non-compete keeps trade secrets safe, it's not like you can't transfer a trade secret a year later, or however long the non-compete lasts.
Yea the closer you get to the object, the worse the picture. But on the upside you start to get pretty good 3d scanning. With multiple views from different angles you'd be able to create detailed 3d scans of small objects.

You may want to use this in video chat - each person's face will be rendered in high accuracy in 3D!

Unfortunately the screen is on the other side of the cameras...
I believe that this is basically allowed in California, too, but the employee can still quit.
Sure it could. But this is also about providing a better user experience. Being able to automatically split the bundle into parts, the most needed of which is loaded at first and the rest then loaded afterwards in the background using a service worker, means that navigation will be far more snappy and provide better feedback to the user. Rather than waiting for the HTML to be downloaded when a link is clicked, most of the UI can be displayed while a smaller payload is downloaded. Obviously if your content is 100% static and your target group is people who only have 2G available, this might not be the best choice.

> then things like the back button after scrolling through the blog would work.

What do you mean?

> Why try to outsmart the browser?

Not sure how this is outsmarting the browser.
They are taking development time into consideration, development time in the long term.
Lets talk European keyboards, [ is alt+8. This has been a long running frustration for apps that don't allow remapping but use the US/UK keyboard as standard.
Federal legislation can not weaken state legislation in most situations where a state legislation is stricter. A good example of this is minimum wage at the federal and state level.

If legislation at the federal level were to apply a weaker standard for who can not be covered by a non-compete clause, a state can still expand coverage to all jobs.
I work as a consultant/developer in the B2B software space. Part of my job involves documenting clients' existing processes and converting them to requirements.

The type of inefficiencies you describe are EXTREMELY common. The fact of the matter is that the vast majority of American companies are simply stuck in the 70s/80s (sometimes the 60s) when it comes to how things are done. Most of their business processes are manual and paper-based and communication is archaic, usually relying on many single points of failure, who happen to be human operators. As a result, stuff falls through the cracks all the damn time.

I've been thinking about how companies can manage to stay in business even when they're run so poorly. I've come to the conclusion that it's because many of them, especially the larger ones, face no real competition. All the other companies in their space are run similarly. As long as a decent amount of revenue keeps coming in, the leaders (many of whom are approaching comfortable retirement) simply don't care.

I've also realized that, at the aggregate level, the primary reason the American economy is so ahead of other economies today is due to the head-start it enjoyed following World War 2, when most of the developed world had been devastated while America was virtually untouched. If there had been any sort of real competition, things would be very different today - and we're starting to see that as other economies are starting to catch up.
Epic 2015
My preferred whitespace code-style is to use tabs for indentation

What does "I convert it back to 4 space tabs before I commit anything" mean, then? If you're putting \t tabs in your file, 4 space tabs vs 8 space tabs refers to the way your editor renders \t. What are you changing before committing, your editor settings?

Edit: oops, just realized you're not the person I was responding to. The convert it back before I commit anything comment suggests he/she is using spaces. Or is very confused.
How to get the value of a form element: Drop downs and lists
> > [The author] like[s] to describe Kubernetes as "A special kind of operating system for the cloud — One which allows developers to treat an arbitrary number of machines/hosts as if they were a single, very powerful machine."

> I don't agree with this comparison. Apps still have to be designed to run in a distributed environment.

To be fair, in the author's analogy you also have to design applications to run in a multi-threaded environment (since they talk about scheduling and how an OS's main job is scheduling tasks so they can utilise resources). So the analogy holds there too.