skysight-inc/HackerNews huggingface dataset:
"1) Isn't it just (!isNaN(num) && isFinite(num))? I know that's pretty far from intuitive, but it's not as bad as you made it sound. That being said, i'd love an `isNumber` function at some point..."

You just proved my point!

A) Even if you are correct - it's terrible. This is completely ridiculous that there's no basic check for extremely common and mundane type-checking. Moreover, it's the same issue for other types!

B) Worse: you're wrong.

isNaN('100') = false
isFinite('100') = true

The string '100' would pass your check as a Number :)

Underscore uses:

"toString.call(number) === '[object ' + Number + ']';"

So noodle on that for a while: I'm assuming you're an experienced JS programmer and you can't test to see if something is a number! Embarrassed? It's ok. 9/10 JS programmers would get it wrong. I had to look it up! Which is my point - it's really bad!

2) Prototyping is not bad because it's prototyping - it's bad because it's really confusing. Point: nobody has - or will 'borrow' this idea form JS. Again - almost zero JS devs really understand how it works.

3) Again I disagree. There definitely should be a 'true way' for the most common operations. There should only be one 'true way' to test to see if something is a Number (!) - and for basic things like string operations - 'one true way' is better. For so, so many reasons.

4) "For the most part I don't need to worry about someone writing code that will run on version X on platform Y" - sure you do. You cannot use 'const' or 'let' in Safari/iOS. You can in Chrome. That's just the tip of the iceberg. There are dozens of such mismatches - and it's a fragmentation nightmare.

Now - I agree with your point about 'competing versions' hey, that's great. But they are 'not the same platform' - which is totally destructive.
> all they will see is a bearded man staring to the front
But how do we decide what "the rules of logic" are? And here we go...
I just skimmed the video, but seems like there should have been a lot of photos/videos in such a segment showing the aftermath. Hmm..Maybe I just missed them in my quick skimming. Edit: okay.. See around 3 minutes.
Ask HN: First time managing an internal team, how can I be a successful “boss”?
I'm going to be joining a fairly large company (3k+ people) within the next few weeks at the director level and managing a handful of people for the first time.

I've spent the last decade managing vendors but never direct reports. For all the managers out there, any sage advice on how to be an effective "boss"?

For all the direct reports out there, what do you love/hate about your manager that I should look out for? I'm drinking from the fire hose right now so any and all insights/anecdotes/advice welcome.
Microservices – Please, don't
How much for ambassador? Hacked DNC files reveal plum posts for big donors
Apparently many people are cheating on the capital tax:

http://www.theglobeandmail.com/real-estate/vancouver/out-of-...
Great article from my favorite news outlet.
Why you're broke: behavioural flaws that make us stupid around money
Ask HN: Devices for multidimensional input of continuous variables by human
Today I watched video from https://news.ycombinator.com/item?id=12499571 and now I have an idea that it would be nice to change not only one parameter, but multiple parameters in the embedding space simultaneously and have instant feedback.

So I wonder is there a device that allow to control 8-10 continuous parameters simultaneously (so that the inputs are not correlated). The device should not require constant watching, so that it possible to watch on a screen with generated embedding. Also I wish this device to be commercially available and cost less than thousands of dollars.

For case of two dimensions the solution is well known: mouse or touchpad.

For case of four dimensions the touchpad solution can mostly be generalized: it is possible to use two touchpads, for right and left hands. A quick way to implement it is to use a touchscreen phone/tablet with with two virtual touchpads on it as a such input device.

But for cases of higher dimensions it becomes more complicated. It is possible to use MIDI control devices for music producers like this: https://store.djtechtools.com/products/midi-fighter-twister , but while it doesn't require constant watching (unlike virtual knobs on screen), it allows to change only two parameters simultaneously (because one hand can rotate only one knob at time).

There is a motion tracking wear system: https://news.ycombinator.com/item?id=11946790 , but I don't like the idea of wearing a special costume when I sit at my computer, I prefer an external to my body solution as opposite to wearable.

I don't consider EEG devices because the data from them is opaque and because I don't want to train my brain to generate electrical activity by wish because I'm not sure about health concerns of it.

Any ideas?
Some more anecdotal evidence. I've noticed that the style/quality of the beer greatly affects if there will be a hangover or not regardless of alcohol content. Has anyone else noticed that? or know why?
"This style of programming has led me to be very impatient with the "keep debugging" until you think it works style of development. I tend to think that each bug found is evidence of the presence of more bugs."

Well said (currently programming by dead reckoning).
TorrentHound Shuts Down, Another Big Torrent Site Bites the Dust
New Legal Exchange for Binary Options Trading in Europe
Big or small?

I think the 'big' answer is all about low-level control logic and embedded systems. I can't speak to how horrifying it is relative to other industrial controls, but they're a world all their own.

On a homebrew scale, though, there's some awesome stuff like this: http://ohmbrewer.org/

The idea is that it's an actually valuable spot for an IoT product, because homebrewers would rather not sit for hours measuring exactly when to advance the brew. So you put together a monitoring-and-transition system, plug in your specs, and OhmBrew automates the process. Also, open source so you can check out what they're building.

(I'm not affiliated, but I met them and they seemed like awesome software & beer geeks.)
It seems you're reading a different article, since I see nobody "going mental" on the one posted, hence there's no point in discussing further.
"People who say they don't care about privacy because they have nothing to hide are like people who say they don't care about free speech because they have nothing to say."

- Edward Snowden
I think you've created a strawman here. It's about risk assessment and ease of implementation. Taping the webcam is easy to do, effective and easy to undo. It protects against a real, not theoretical attack. It has meaningful value. Not using Windows 10 might also have meaningful value and protect against real, not theoretical attacks, but would be difficult to do or undo.

I could also point out that you are more likely to slip in your shower and injure yourself than get struck by lightning, but I expect there are more people who know how to stay safe in a lightning storm than who have non-slip mats in their shower. You're also far more likely to get injured or killed driving your own car, but I expect many people avoid public transit out of fear, lack of convenience , etc.

No question our assessment of risk is poor, but that doesn't mean we shouldn't take what steps will fit into our lives.
New discovery shatters previous beliefs about Earth’s origin
Oh shit, my password's been leaked.
This page is 10 years old and is quite outdated.

These days, the official OCaml site is quite good: http://ocaml.org/
this is the point where it broke for me, i should have realised when they were going on about feeling physically sick and had thoughts of suicide but kids suddenly "seeing the light" realising the error of their ways and banning themselves from all human contact really seems unlikely to me.
Possibly, but this was, if I recall correctly, sort of a web-based MOOC thingy, so being browser-based was important.
Good to see another sysadmin input on this thread. Any bits that you would advise us younger (not that much, 30 yrs old) sysadmins about what to expect from the future?
> If he has to, the level 3 programmer gonna err on the side of the level 1 code and will avoid as much as he can level 2 code. That's because level 1 code cost less to fix than level 2 code.

I've been doing this recently and had a hard time justifying it even to myself. It just felt right. And you've got it - it's easier to fix dumb code, than refactor an overengineered mess.

> Now here comes my point: a level 2 programmer read and write articles that is about how to not be a level 1 programmer.

You're making me understand the current programming "scene" much better, especially the plethora of self-aggrandizing blog posts I tend to see today.

I wish I could upvote you twice.
and many more but this is still not the entire list:

https://github.com/Xamarin

https://github.com/PowerBI

https://github.com/MicrosoftEdge

https://github.com/yammer

https://github.com/OneDrive

https://github.com/MicrosoftResearch

https://github.com/LIS

https://github.com/DynamicsCRM

https://github.com/MicrosoftDX

https://github.com/ms-iot

https://github.com/microsoft-mobile

https://github.com/thaliproject

https://github.com/OneGet

.

Please take a look here: https://microsoft.github.io
see a physical therapist to figure out where you should increase strength in complementary muscle groups as well as fix flexibility issues. Also, making corrections to running form.
There's no evidence that Autopilot was enabled. It won't perform any avoiding action if it is not enabled.
Certainly similar in concept. Other than the server-side language, the biggest difference seems to be how it saves the actual data. AA has file-based exports (csv, json, etc), not seeing a relational datastore (maybe Mongo?) – Directus is built on top of your custom-schema SQL database so it scales with large/complex datasets.

Also, while AA has a good set of simple features, Directus has comprehensive user management ACL, more robust file control, and is generally a bit more full-featured.

AA looks like a good option though, going to check it out in more detail! Thanks...
Honestly? Still not sure myself. The "leave a comment for my secretary" form is either some Grade-A douchebaggery or trolling perfected. But if this whole thing is intentional satire then it's too many layers deep to make its point.
I think we should not discount this style of building a web app. I've also had success with it.

You need to think hard about whether you really need a SPA for something complex, or whether you can go back to the server completely in some instances.
I never understood how the public decided that "autopilot" means a fully autonomous system. I grudgingly admit that some people think this way, but how did it happen?
>Keep your CV/resume impressive

What does that even mean?

>Change job or interview frequently

It's hard for me to fathom that people see this as a positive. Red flag for me. But I guess I'm getting "old".
Adverse possession is part of that property law.
Does your enterprise have the right DevOps chops?
I am a fan of what the guys at http://www.swig.co/ and http://www.drinkeasy.co/ are doing (disclaimer: I know the founders).

Swig is a social application that enables you to discover new brews that you might like (based off of you and your friend's preferences); sort of like Pandora for your palette.

Drinkeasy is an extension of Swig and enables you to order those drinks.
As far as raw TypeScript apps, VS Code and TypeScript itself are pretty good examples.

https://github.com/Microsoft/vscode
https://github.com/Microsoft/typescript
I worked at Staples too (Business Machines!), the management was not shy about reminding us about mystery shoppers.

My managers would always walk around the corner right at the instant I would sit down for a minute when it wasn't busy 5 hours into my shift. Never failed. Ugh.

I know we didn't have surveillance cameras in the store at the time though, because it was a sore point (and against Staples policy at the time).
There is no evidence that Autopilot was disabled either.
Surely it's at least as much human effort to compromise a specific webcam, identify the house it's tied to, monitor it extensively, and then rob/assault the owners?

Obviously there are other reasons to worry about webcam access, but "they could spy on me to set up a robbery" is exceedingly low on my list since it just recreates a pattern that doesn't involve a computer.
Except you still don't know what's the matter with his knee, and you definitely don't know what caused it. It seems a bit premature to assume that overtraining was the cause, and it's pretty ridiculous to imply that because some runners have hurt their knees, it is unsafe, or pointless.
That's not true. 5 nines, ie 99.999% uptime means that the maximum downtime in a year is about 315 seconds:

60x60x24x365 x (1 - (99.999/100)) = 315.36

Wikipedia confirms: https://en.wikipedia.org/wiki/High_availability#Percentage_c...

So yes, 2hrs of downtime would most definitely violate the SLA. The 8 hours you refer to is the figure for 3 nines.
Node, Mongo and Angular would be my bet.
Inability to reliably detect completely stationary objects is a known and documented deficiency of the system. Not making excuses, just saying it's not a big surprise.

My experience with the system is that it actually allows you to be more aware of things like this, because you can devote all of your attention to scanning the road far ahead, instead of switching between the distance and nearby details like where you are relative to the lines.

However, that requires using the system in a way that understands and accommodates its limitations, which not everybody does.
Better than I expected. Thanks for posting this.
Just for context, Sebastian Anthony is the editor of Ars Technica UK.
At this stage the value of GitHub doesn't have much to do with git per se. It's about the projects' communities hosted there. That said, I don't see much of uniqueness in what GitHub provides, it just happened to be good enough and popped up at proper time.
http://www.joelonsoftware.com/articles/CamelsandRubberDuckie... :

> Notice the gap? There's no software priced between $1000 and $75,000. I'll tell you why. The minute you charge more than $1000 you need to get serious corporate signoffs. You need a line item in their budget. You need purchasing managers and CEO approval and competitive bids and paperwork. So you need to send a salesperson out to the customer to do PowerPoint, with his airfare, golf course memberships, and $19.95 porn movies at the Ritz Carlton. And with all this, the cost of making one successful sale is going to average about $50,000. If you're sending salespeople out to customers and charging less than $75,000, you're losing money.
To me it clearly means that the system is autonomous while the autopilot is on. What else should it mean?
Brookings Stadium Study Draws Criticisms
Our own government gave nuclear secrets to our enemy which hastened their progress towards nuclear weapons. The CIA should be held accountable for endangering the US and its allies.
Supplemental strength training (see anatomy for runners) and carefully ramping up mileage.
San Diego Struggles to Keep Its Young Tech Talent
Have you tried codereview.stackexchange.com? I find it can be a nice way to learn what others prefer and get tips for improving clarity especially in languages that I'm new to.
Simply an industry-oriented response to a newsworthy release.
Guinea Worm Disease Could Soon Become the Second Human Disease to Be Eradicated
What else will they give the public in exchange for surveilling it 24x7? These kiosks are surveillance machines.
Communicating with computers was one specific goal of Loglan!
Someone downthread mentioned Brewdog --- apparently they make a low-alcohol beer worth drinking:

https://www.brewdog.com/item/61/BrewDog/Nanny-State.html

Reviews:

https://www.beeradvocate.com/beer/profile/16315/53885/

Never tried it myself, so I'd be interested to hear about it.
White Labs is not a startup: they've been providing liquid yeasts (to home brewers and breweries) for a fairly long time.

Chris White, of White Labs, wrote a great book on yeast:

https://www.amazon.com/Yeast-Practical-Fermentation-Brewing-...
Torvalds – libdivecomputer
7 ways to avoid alert fatigue
That's just because "hirsute" is considered to be an undesirable trait in women, but desirable in men. Pick an adjective that's flattering to Mary and I don't think anyone would care.

Considering that Sebastian is also credited for taking the photo, I'd speculate he approved of the caption, or even came up with it.
This is a really good point. We really do want to encourage women in this field, and it's a shame that dudes are downvoting this (and I'm male).
The problem of these licenses is that they don't come with patents grants. Which given that this is Microsoft we are talking about, it's a big deal.

Of course, their projects does come with a patents license, in addition to the copyright license, but it's unclear to me whether this license applies to derivative works for example. I'm not a lawyer of course and I have a very limited understanding, but interpreting their license as an English text, I really don't think it applies to derivate works. Would like an analysis of somebody knowledgeable, because a project that can't be safely forked isn't open source. Here's their license: https://github.com/dotnet/corefx/blob/master/PATENTS.TXT

Anyway, my point is that I would have preferred something like the Apache License, which is still permissive, but was written by lawyers that know what they are doing and has an explicit patents grant in it. You see, people think of BSD and MIT as being "permissive", but that's only true as far as the copyright law is concerned. Patents are a whole different thing.
I don't know how productive some of this would be, really. School is too stressful, and goes too fast, to really understand an example with creating a theory and designing an experiment. It will be perceived as troublesome, most wouldn't understand or be able to keep up. Look at that list you have there. Logic, mathematics, writing, history and politics, and science. These things are huge. Schools /have/ been trying to cram these things in to the point where there was no room left for all the other things you mention.

I think one of the core issues with modern education is trying to teach children complex and specific concepts in the first place. Their brains are not yet developed, their motivation is nil, and there's not enough time. It benefits those with higher base intelligence for the most part. Anything they do understand is quickly forgotten. The same concepts are so much easier to understand 10 years later, and there's a higher chance that they would be grounded in something they actually care about at that point as opposed to trying to explain to a 13 year old why Shakespeare is interesting.

Of course, that would require a fundamental restructuring of society, and more push towards people learning in their 20's and 30's and beyond. But I think it's extremely silly to devote the first 1/5 of one's projected life expectancy to heavy learning, at a point where they barely understand anything, and their motivations are not their own, and then almost completely drop it for the other 4/5 where you just work, work, work. And the first 20 years are probably more important for the rest of your life than anything you do afterwards. The focus on employment is part of an issue. The problem isn't with schools producing employable people. The problem is the concept of employability itself and what it does to society. Why are we trying to make schools more aligned with something that's a bigger problem in itself? What a waste.

School should focus on learning how to learn, how to discern information, where to find information, etc., and core skills that are going to be relevant to effectively everyone - such as some that you mentioned, like health and wellness, and I'd add cleaning and cooking to the list and things like being considerate towards other people.
It doesn't make sense for the price to go up after a purchase. Also I think most of those "sales" are fake. Most logos are really bad.
>> Can be easily extended by any other developer

This is a tenet that will lead inexperienced developers astray. This "rule" is just too ambiguous. Extensibility is a fascination for object-oriented programmers but in my experience doesn't have a lot of successful examples. Typically I have seen this manifest itself in either a Command+Composite style where every meaningful class is a composite of other SRP classes, or in a proliferation of interfaces that seldom have method definitions and are instead used to enforce coding standards or dependencies.

KISS is incompatible with this rule and you should kill this rule with fire because simple is not extensible. Perhaps when the goal is extensibility then should you consider other developers, but if you are developing a "beige" application then you should not consider extensibility. Instead, just assume that release management will handle changes, i.e. another developer will update rather than extend your class and that will be released in version 1.1.

Of course, to do this also means admitting that version 1.0 of your class was pretty much garbage and that it needed to be "extended". Tough pill to swallow for some.
I just heard a story on NPR about a startup in Boston called Purpose Energy turning waste water from a brewery (Magic Hat brewing) and turning it into usable energy (methane). There are other efforts to use brewing waste more environmentally/economically in permaculture [1], but this is the first I'd heard of them using it to create energy.

Here is the full story.

http://www.pri.org/stories/2016-09-14/massachusetts-pushes-b...

The company is only a small part of the story on clean energy startups and the company doesn't just work with breweries, so it is only slightly related to the original question. Still, it sounds like this is a big problem for breweries to deal with and there is some innovation happening around it.

[1] http://plantchicago.org/
Well, to be fair, he was trying to refer to the fact that GPL is viral (turning other licenses into its own). That is a valid critique of GPL (it reduces developer freedom) and that is why it has been in steady decline compared to more liberal licenses (as a percent of FOSS licenses).
> Of course all that goes away when your boss says you need to support JS-disabled browsers

Well seeing as this release of angular offers some form of server side rendering, as well as Ember with fastboot, & being implementable in React or something like that. It's more approachable these days, there's some tweaking that's required, but very much doable.

Unless of course you're dealing with an interaction heavy UI.
> I do get positive feedback on being personable and likable from the interviewers and recruiters -

You are talking to the wrong people.

There is a Senior Executive, or manager out there who needs your help. Zero-in on the profile, and start reaching out to them direct. Linkedin is a great place to sort for prospects. Mindset helps, think of it as consultative sales/prospecting game.

On this subject, Weinberg can help frame your approach > http://www.goodreads.com/book/show/15863998-new-sales-simpli...
previously, https://news.ycombinator.com/item?id=9533678
We don't need to "tax foreigners". If it was Toronto Bay Street investors or Albertan oil millionaires, the problem would be similar (smaller, of course, because there just aren't as many of them as there are wealthy Chinese scions).

To me the correct approach is to simply shift the tax burden higher onto investment properties, and expand the definition of "investment property" to include homes owned and occupied by able-bodied people who don't work for a living and never earned the kind of money that would be needed to afford such a home.

If you don't pay and never paid income tax, you don't need the tax exemptions that are given to homeowners.