skysight-inc/HackerNews huggingface dataset:
Creator here: I put this together after setting up a simple project page on GitHub Pages and not finding any great, current boilerplate. I also noticed there was some excellent functionality in the plugins / gems GitHub Pages now allows.

I tried to tailor the documentation and experience to getting a beginner rolling with some powerful tools, basically rolling up the best practices I've used and seen in use in a variety of landing page / demo sites and projects.

Hoping this will prove useful for people trying to set up a page for their next open source project, or just as a great sandbox for somebody starting out in front-end development and the various services and tools involved (e.g., using GitHub, Travis CI, ES6, SCSS/PostCSS, static-site generation, testing).
Almost. I have tried to find it a few times but never been able to since I first stumbled upon it. The funniest part was the end result (the most experienced programmer) being exactly the same as the first - which this version is missing.
I am a long time 1Password customer and have recommended the software to family and friends. This new subscription model was confusing when it launched and I am now more uncomfortable with the company's explanations and backtracking.

There are other options for password management out there. If Agilebits are not super transparent about everything, users will leave for the competition. I am much less comfortable with Agilebits than I was pre-subscription model.

The standalone version should be promoted equally on the website, not as a small link in the FAQ.

I stopped buying Adobe products when they went to subscription as well.
His first list really, really hand-waves the problems that style of coding can cause. Just use better tools or run valgrind? It never is that simple.

One aspect of scientific coding is that it can have very long lifetimes. I sometimes work on some code > 20 years old. Technology can change a lot in that time frame. For example, using global data (common back then) can completely destroy parallel capability.

The 'old' style also makes the code sensitive to small changes in theory. Need to support a new theory that is basically the same as the old one with a few tweaks? Copy and paste, change a few things, and get working on that paper! Who cares if you just copied a whole bunch of global data - you successfully avoided the conflict by putting "2" at the end of every variable. You've got better things to do than proper coding.

Obviously, over-engineering is a problem. But science does need a bit of "engineering" to begin with.

Anecdote: A friend of mine wanted my help with parsing some outputs and replacing some text in input files. Simple stuff. He showed me what he had. It was written in fortran because that's what his advisor knew :(

Note: I'm currently part of a group trying to help with best practices in computational chemistry. We'll see how it goes, but the field seems kind of open to the idea (ie, there is starting to be funding for software maintenance, etc).
What most people seem to forget is that "best practices" are not universal: Depending on the size and scope of the software project, some best practices are actually worst practices and can slow you down. For example, unit testing and extensive documentation might be irrelevant for a short term project / prototype while they will be indispensable for code that should be understood and used by other people. Also, for software projects that have an exploratory nature (which is often the case for scientific projects) it's usually no use trying to define a complete code architecture at the start of the project, as the assumptions about how the code should work and how to structure it will probably change during the project as you get a better understanding of the problem that you try to solve. Trying to follow a given paradigm here (e.g. OOP or MVC) can even lead to architecture-induced damage.

The size of the project is also a very important factor. From my own experience, most software engineering methods start to have a positive return-on-investment only as you go beyond 5.000-10.000 lines of code, as at this point the code base is usually too large to be understandable by a single person (depending on the complexity of course), so making changes will be much easier with a good suite of unit tests that makes sure you don't break anything when you change code (this is especially true for dynamically typed languages).

So I'd say that instead of memorizing best practices you need to develop a good feeling for how code bases behave at different sizes and complexities (including how they react to changes), as this will allow you to make a good decision on which "best practices" to adopt.

Also, scientists are -from my own experience- not always the worst software developers as they are less hindered by most of the paradigms / cargo cults that the modern programmer has to put up with (being test-driven, agile, always separating concerns, doing MVP, using OOP [or not], being scalable, ...). They therefore tend to approach projects in a more naive and playful way, which is not always a bad thing.
The article overlooks a massive source of problems : the problems he describes in engineers' code usually starts to become annoying at larger scale. The problems he describes in scientists' code rarely happens at scale, because it can't be extended significantly. I feel it's weird to compare codebases that probably count in the thousands, and codebases that count in the hundreds of thousands or million lines of code.

Also it is worth noting that every single problem he has with engineers' code is described at length in the litterature (working effectively with legacy code, DDD blue book, etc). Of course, these problems exist. But this is linked to the fact that hiring bad programmers still yields benefits. I believe this is not something that we can change, but if the guy is interested in reducing his pain with crappy code, there are solutions out there.
Valid points, but they won't stop the average less self-analytical person from trusting Big Data, just as many are susceptible to altering their behavior because of some "study" they read about in the paper. Due to our (the masses) inability to follow the gnothi seauton aphorism, we are more likely to allow someone or something to make choices for us. See concluding paragraph of the essay.
Muratori's compression-oriented programming and Acton's data-oriented design have really helped me in writing HPC code. Carmack's arguments make sense for apps that have a clear main function, although they're less applicable to libraries.

I consider these also "best practices", they are just better for performance than object-oriented practices applied to many small objects.
See-Saw by Pink Floyd has constantly changing time signatures throughout the song. Much of Golden Brown by the Stranglers is 3x3/4, then 4/4 (so 13/4).
I "quit" every year while fasting during the month of Ramadan. The first few days are hell. However, taking advil/Aleve in the morning prior to starting the fast does reduce the withdrawal symptoms.
If the URL is exactly the same, I wish HN would just surface the old comment thread automatically at the top of the page.
Scott Adams - creator of Dilbert - was recently ridiculed for suggesting that someone could become an expert on a topic after an hour of talking with the brightest minds in that field. While "expert" needs to be defined, I don't think it's far fetched.

How many times have we had that conversation with someone who knows their topic backwards and forwards and after minutes, we have a deeper understanding of it than almost anyone around. Expand that out to an hour with a few key/relevant questions to frame the conversation and it is totally believable.
When did those authors do that?
Anything you do to make your dev life easier can make a hacker’s life easier too
> so they have too much time on their hands, which they use to dwell on "API design" and thus monstrosities are born.

In free time, they mostly go for refactoring the code, don't they?
I'd like to see websites make copy/paste easier by allowing you to enter user name and password in a combined field. Have separate fields that can be used the normal way, but also allow submission with the username field left blank and the password field containing username:password.
This person has obviously never worked on a project of any scale. See where your ad-hoc practices get you when you have millions of LOC.

Can we all agree that there is good code and bad code and the difference between the two is often contextual, then move on. Geez.
In the past he had a different opinion about TTIP [0].

[0] https://www.youtube.com/watch?v=Q7Zb0XxSkxE&t=29
I got this:

Failed to load the widgetset:
./VAADIN/widgetsets/drafty.MyAppWidgetset/drafty.MyAppWidgetset.nocache.js?1472407401168
They make profiles for people even if they don't have them. Your data will survive in some form.
Breitbart’s Milo Yiannopoulos asks Twitter to release his data
I find very hard to believe that it is just cost of living. I am more willing to believe that, instead of that, what happens is that people in China just expect to have less resources to live.

This opinion is based on my observation of how wages work in Argentina, in comparison with the US. Food (eating the same food) is cheaper in the US, rent (renting the same kind of appartment) is cheaper in the US, going to the cinema (same movie!) is cheaper in the US, buying a car (the same car) is cheaper in the US, buying clothes (the same clothes) is cheaper in the US.

Even thou, when I worked in a Boston based company they claimed that our salary should be lower because we had a lower cost of living. It is just that they can get away with paying us less. The chinese (or argentinian) cost of living being lower is a lie. It is just that we cannot do the things that USians expect and our salaries are reduced accordingly.
Sean M. Carrol always mentions this fact when he talks about QFT, which can be very entertaining like this one from 2013

"Particles, Fields and The Future of Physics"

https://www.youtube.com/watch?v=gEKSpZPByD0

(Audio starts at 19 sec, Lecture starts at 2:00)
> why use Solar + Powerwall when Solar + Gas Generator has higher capacity and is cheaper?

Because Elon Musk! Senpai notice me!
It's worse that you say (and think?). For example: in general, floating point equality isn't transitive, and addition isn't even associative.

Not only do those "bad at math" software engineers get this wrong, most of the scientists do too. These two groups often make different types of errors, true - but nearly everybody who hasn't studied numerical computation wiht some care is just bad at it.
Ask HN: Help Looking to find the x,y,z coordinates of a point in a room
I need to find the X,Y,Z coordinates in a room. Don't know where to start. As always, the cheaper the better.

Thought about wifi or bluetooth marker with 3 detectors in the room for triangulation but that's as far as I can go. I'm thinking the marker in the room should be less than a few dollars to make but the detectors can be much more expensive. The tolerance should be somewhere with in an inch but at this time feet would be helpful.

Are there any commercial product that I can use?
My sample is definitely skewed, since it is just like a dozen of upper middle class friends. However, your argument may be flawed as well :)

It is possible that Chinese immigrants are on the rise, but it is not like a Chinese person can easily immigrate to US, legally or not. Comparing the number of Chinese and Mexican is a bit silly, because of the "undocumented".

The number of Chinese students is meaningless as not every student wants or can stay. The number of H-1b may mean something but my feeling is that Chinese are getting less in recent years. Do you have actual data? The green card applications is more direct evidence, but some real data showing the trend would be useful.

Anyway, I think if there is no pacific in the middle and there is no wall at the border. At least 100 million Chinese people would love to move to US...
MAKER ECONOMY Worker shortage plagues NH manufacturing
David’s Ankles: How Imperfections Could Bring Down the World’s Perfect Statue
i guess its a case of the us not wanting to make any concessions. i think its ok though, america can keep its exceptionalism as we don't need ttip to flood the american market with cheap 'italian' shoes (they are likely products of macedonian or albanian sweatshop labour). we already have ft with canada apparantly and canada is in nafta, so they will pass through canada where they will be traded with the us under nafta free trade regime.
Based on the number of false equivalencies and specious arguments in this comment thread, it looks like the Russian trolls also have Hacker News on their roster of Western social media sites.
Against which toolkit did you compile? Carbon, Cocoa or X11?
Listening to that, the microtones remind me of bends on guitar solos in popular Western music. So maybe we don't officially use them, but I think they do appear more than we might realize.
I would love a service similar to this one but with a match making algorithm based on interests and/or self selected topics.

This way I could make a lonely commute a lot more interesting by calling a random person also interested in for example Ruby programming
I see rich people walking around with expensive carefully sliced jeans, simulating being unable to afford clothes in a good state of repair.

Although of course nowadays everyone knows they're rich posers. I wonder how they feel when they see someone wearing old jeans that really have been damaged accidentally. Here they are having paid a fortune for damaged jeans, and this poor person here has the same visual effect. Maybe even appearing more authentic.
Only slightly more informative: https://www.theguardian.com/business/2015/jul/03/what-is-tti...

From this article:

>> One of the most controversial elements of the trade proposal is the Investor State Dispute Settlement (ISDS) provision. ISDS provisions have been included in many trade deals since the 1980s, to encourage overseas investment in poorer countries. It means private investors can ask a tribunal of international arbitrators to judge if a government has treated them unfairly – and can get compensation.

That seems like a really bad thing.
Mostly I agree, bad naive code is better than bad sophisiticated code.

Also science very frequenly only requires small programs that are used for one analisys and then thrown away. It's OK to have a snarl of bad Fortran or Numpy if it only 400 lines long.

BUT: scientific projects are often (in my old field, usually) also engineering projects. Such experiments are complex automated data gathering machines hardware and take rougly similar data runs tens of thousands of times.

There should be some engineering professionalism at the start to design and plan such a machine. Especially the software, since it is mostly a question of integrating off-the shelf hardware.

But PIs think:

(A) engineering is done most cheaply by PhD students -- a penny pinching fallacy.

(B) that their needs will grow unpredictably over time.

B is true, but is actually is a reason to have a good custom platform designed at the start, so that changes are less costly. Your part time programmer is going to develop many thousand of lines of code no one can understand or extend. (I've done it, I should know.)
> well written

Seemed full of non-sequiturs to me.
All energy is not created equal. In order to make this calculation in a useful way, one would need to know the amount of carbon emissions per kWh for both the panel production site and ones local grid. And it's actually even harder than that, as one also needs to know if one is lowering base-load generation needs or surge-capacity. Base- and surge-generation are frequently not the same as carbon emissions go.

Consider for instance that you live near the Hoover dam (desert, lots of sun, prime area for solar); your panels might never be carbon-neutral.
New Ransomware Poses as a Windows Update
Might have been true a decade ago. When simulations performed on a laptop in Matlab were enough for dissertation quality research. But data set size has exploded. If you are currently in school, learn how to move your research to the cloud, and learn some best cloud practices. Best prep for the future to come. And if you decide to leave academia you can possibly nab an interview at Netflix ;)
One side could be a funny youtube video talking, using https://dubdial.com/ [1]

1. Disclosure: I am one of the author
Just read this post from him recently, which, along with the referenced paper, was pretty enlightening: "Space Emerging from Quantum Mechanics"
http://www.preposterousuniverse.com/blog/2016/07/18/space-em...

paper "Space from Hilbert Space: Recovering Geometry from Bulk Entanglement": https://arxiv.org/abs/1606.08444
I recently followed a course on "Principles of programming for Econometrics" and although I knew a lot about programming already I learned a lot about being structured and documentation. The professor ran some example code which he wrote 10 years ago! He wasn't really sure what the function did again and BAM it was there in the documentation (i.e. comment header of the function).

I used to just hack stuff together in either R or Python but that course really got me thinking about what I want to accomplish first. Write that down on paper. And then and only then after you have the whole program outlined in your head start writing functions with well defined inputs and outputs.
Good

The benefits were much smaller than the drawbacks
If you haven't already, try giving seltzer water a try. We go through cases of it in my office as a non caloric/caffeinated beverage.
For ages now, I've been telling people that the best best code, produced by the most experienced people, tends to look like novice code that happens to work --- no unnecessary abstractions, limited anticipated extensibility points, encapsulation only where it makes sense. "Best practices", blindly applied, need to die. The GoF book is a bestiary, not an example of sterling software design. IME, it's much more expensive to deal with unnecessary abstraction than to add abstractions as necessary.

People, think for yourselves! Don't just blindly do what some "Effective $Language" book tells you to do.

(For starters, stop blindly making getters and settings for data fields! Public access is okay! If you really need some kind of access logic, change the damn field name, and the compiler will tell you all the places you need to update.)
AFAICT, it isn't "Windows", but "Windows 10 only".

Is this correct?
There was a good/creepy article in The Atlantic about FreeSense and WiKey, which was covered a few days ago: https://news.ycombinator.com/item?id=12353605
It occurs to me that these discussions about manufacturing jobs criticize skills, interest and work ethic while at the same time ignoring discussions about wages and employee equity.

The companies that are employee owned appear to demonstrate a commitment to a common purpose.
Correct. The NYT is an instrument of the Democrat party, just as Fox News is an instrument of the GOP. Journalism has abandoned the pretense of impartiality, and it is especially notable during this election cycle.
It doesn't seem all that amazing to me.

Humans have to be trained to perceive the differences in complex streams of information; by default, they just perceive the low-level features—a "wall of noise."

Machine-learning algorithms, meanwhile, can use general techniques to notice information-theoretic properties of various pieces of data. Effectively, computers can "do statistical aggregation" about as effortlessly as humans "do hierarchical knowledge representation."

And, in an information-theoretic sense, the different "trends" throughout the history of music look different under statistical analysis. They're complex in different ways; they have different "lumps"; different aspects of them can or cannot be compressed together as redundancies.

If you would like to see this for yourself, simply feed a raw melodic note-structure (not embedded in XML or anything) to any modern dumb compression algorithm, and then look at the result in a hex editor, while also having the source still open. You should quickly be able to recognize the "transformational signature" that characterizes something like a chaconne, vs. something like a sonata.
Came across the linked article about Fuhu from 2014 [1]:

> Think 9 a.m. to 10 p.m. workdays. Very little vacation. Missed birthday parties and weddings.

This is such a bad idea. I hope this startup idea of unhealthy work-life goes away soon. If you're a founder or have a crushing deadline for a big contract then yes, go ahead and do this. But this should never be the day-to-day pressure of any company.

They are fooling themselves that they are accomplishing more this way. A good way to lose your best talent or the abilities of the talented who stay.

[1] http://www.inc.com/magazine/201409/lindsay-blakely/inc.500-2...
Is it different today from 50 or 100 years ago? Doesn't seem so different to me.
(2) is untenable. A company could theoretically widely distribute a drug with unknown effects/consequences, only to find after the fact that it negatively affects >10% of patients causing death and disability in major numbers. File for bankruptcy and disappear with no ability for the sufferors to get lifetime care compensation? Catastrophic, with no recourse.
Microsoft Lost a City Because They Used Wikipedia Data
> This should not be relevant in any professional technical discussion. Last time I looked there was not an overflowing oversupply of cross platform UI frameworks.

That latter sentence kinda defeats the argument in your first sentence.

If there's a dearth of options, then there's room for a better API.
UK Information Commissioner to investigate WhatsApp-Facebook data sharing
Even without solar, few last 30 years without major repairs where I am (pacific northwest). There are lots of things to consider. Some/most solar installs don't take debris into account, creating dams that can send water places it shouldn't be, like up and under shingles. Not an issue in the desert but in rain forest it is a big deal. And the number of penetrations ... I've seen people put dozens of screws through what used to be a good roof. They cannot all be perfect.
Do places like that actually still exist?
My experience of wxWidgets wasn't very good, Qt is a much better quality project.
China is not the only country which produces PV panels. PV panels are also not the only choice in alternative energy. If one is interested in reducing carbon emissions, it's so much more complicated than "just buy solar".
ESCORT NATALIE – escorts| athens escorts |call girls
Ridiculously long functions are a maintainability problem but so is a ton of really small functions that do not provide a logical separation of concerns.

OO code can provide modularity which can greatly improve the ability to make changes without breaking other code. On the other hand, when applied poorly it can have they opposite effect.

It's not the concepts, it's how they are applied.
The NYT admits in this death notice for a spy that it was it manipulated by the CIA:
http://www.nytimes.com/2013/07/10/us/austin-goodrich-spy-who...

In 1976 George HW Bush declared that the CIA wouldn't manipulate the media anymore but this NYT article from a couple months later shows the feds backpedaling on that promise, along with some specific examples of media manipulation from the time:
http://www.nytimes.com/1976/04/27/archives/cia-will-keep-mor...

I haven't found any evidence of post-Cold War media manipulation of this sort, but I don't think American trust in the media has ever fully recovered since those days.
dtmf.io could be a good way to give it a go without giving away your identity.
I'm waiting for vanadium redox batteries to go mainstream myself https://en.wikipedia.org/wiki/Vanadium_redox_battery