skysight-inc/HackerNews huggingface dataset:
USPTO Trademark Pro Tip: search links are session specific. Use the blue TSDR button's link instead:

https://tsdr.uspto.gov/#caseNumber=86930821&caseType=SERIAL_...
Man tries to find out what human flesh tastes of, cuts piece out of his own leg
>the study is somewhat misleading, given how they measured the "healthy"

How is it "misleading" when they clearly explain the definition of their measures?
Better, you should run your own NPM repository, which transparently caches packages from the main repository. Unfortunately, that's not nearly as easy with NPM as with (say) maven -- the only turn-key solution I'm aware of is Artifactory, and then only in the pro version, and configuring npm to use it is a bit awkward.
For me it was by joining a capital 'P' Profession.

I'm not familiar with this phrase. Could you clarify?
Space station cargo launches by light of nearly full moon
A ketogenic diet is unhealthy
4, and possibly the most important: Don't overeat, regardless of the ingredients.
Data Structures in JavaScript – Interactive Visualizations
I'm confused weren't scoped packages added to avoid all of this sort of thing? Kik should just have used "@kik/kik", and the original package author should have been left alone.
> The only viable way to allow it is by vetting every upload, and uh, good luck finding volunteers for that.

Debian seems to have no problems with that.
Or when you find a thread where someome is asking the question and the only response is by some wise guy telling him to "search". And of course, searching keeps pointing you back to the same thread.
We’re More Honest with Our Phones Than with Our Doctors
To put these in perspective, it is not that uncommon for a years worth of work to go to waste, just for different reasons (eg. wrong assumptions, no market for the product, etc). However when you do mistakes, the process of encountering them and fixing them is much more stressful in the moment, and most of us try to avoid them as much as we can. However it might be that trying and making mistakes is more productive in longer run than avoiding risks and taking safe and calculative approach.
From their POV, does it matter? The clinic doesn't exist to get column inches as far as I can tell.
I wonder if they have something innovative there. Their RFID guy seems quite serious - https://angel.co/yilin-huang
Good article and I think it will be helpful for me personally as well.
You think you can just state that, uncontroversially, with no sources to back up your claim?

I don't have an opinion either way, but there's a lot of science that contradicts your statement:

https://www.reddit.com/r/ketoscience
The trademark issue is actually of minor importance here. What is being highlighted is that a publisher of a large number of npm modules removed all of his modules. This broke some people's builds, but, more importantly, drew attention to 2 HUGE security issues:

1.) NPM arbitrarily gave control of a package to a 3rd party, who can then do all manner of evil with it, if they so prefer.

2.) The namespaces of all of these somewhat widely-used packages are now up for grabs. That is, you could make your own malicious version, upload it to NPM, and now all of those builds in all of those different projects will now use your malicious code.

The issue isn't trademark, it's security. That's why it's on the front page of HN.
What you say is sound but, IMO, not complete. There's something more to immutability vs. mutability. They both can, for instance, describe both data bases and mathematics. But there's no doubt in my mind that mutable state is better suited for the former, and immutability for the latter. It's "stuff" vs. "knowledge" that's modelled; stuff wants to change and knowledge wants to be shared.
Aspirin does not have to be incorrectly used to be a problem. Give something to enough people and someone will have a bad reaction.
now you've made me all paranoid, I hope you're happy
Just a general comment about the whole thread: trademark law is far more complicated and particular than you know (unless you're an IP lawyer; then you might appreciate it). Not only are developers used to problems that can have provable or obvious answers, trademark law really hasn't caught up with the speed of the internet, especially the instant and global reach that a domain name has.

- The only thing you can say about a trademark dispute like this, given the information that's public, is that "it depends on the specific situation as well as the perception of a large enough user base who might get confused".

- Trademark owners can ask (or C&D demand) just about whatever they want. What they could actually force you to do in a court is far, far less than what they typically ask.
Thanks a lot! I had never heard of Nim before, and I'll never ever try to know more. Such a gigantic error is a triple NO.
I have done my share of critics regarding Go team decisions, but one thing they got right is that Go is indeed a systems programming language.

My understanding being that a systems programming language is one that can be used to bootstrap itself and build a full OS stack with the exception of some Assembly for interfacing with the underlying hardware.

As of Go 1.6, the language certainly fulfils this description.

If having a GC hinders certain use cases in systems programming, that is an orthogonal issue.

Edit: Looking forward to the day someone bothers to write an Oberon like OS in Go and HNers will keep on downvoting those that favour memory safe systems programming languages.
In my opinion it is way too easy in Unix to accidentally delete stuff (even for experienced users). Having a filesystem with good (per-user) rollback support is, imho, more than just a luxury.
Thoughts about the role of a software QA engineer on a project
To me, the idea of inlining functions that are otherwise called only once is complete garbage. Yes, you reduce number of functions in your program but the program doesn't get easier to read, test, develop and maintain as the functions that you leave get longer... I stopped watching when I learned that that's presenter's idea of improving the original program. And it has _nothing_ to do with OOP and its flaws, you could as well "improve" this way well written functional programs... It's just wrong. Inlining functions is something your compiler is supposed to do for the programmer, a programmer is better off breaking his problem into small functions instead.
* If English is your second language, don't worry

* Be truthful and give the whole story

* You win with growth, good metrics (acceleration > size) and good execution.

* live close to YC

* talk to your batch mates

* listen to YC partners' advice

* learn to talk slowly

* fundraising is not a right

* be humble

* YC will continue to help after your batch is over

* pay it forward
I agree. There are a lot of great businesses in this group, but not too many potential unicorns. I really hope this signals a VC shift towards backing real businesses.
Why is that a dick move? What would you do if npm or github goes down tomorrow?

Vendor your dependencies if you want to make sure your own project doesn't break.
A lot of people like to think that software fragmentation comes without any drawback.
Having many tiny libraries and/or multiple versions hurts in the long term.
I tend to use a lot of direct with brand affiliate programs.

A good one you could consider is SkimLinks?
There is literally no 100% healthy diet. Water takes minerals from your body with sweat and pee, water is unhealthy. Unhealthy is 90% of food and "diets" that were created in last a few decades, every other known for longer (hundreds of years) diet, keto or paleo has its disadvantages and advantages, but it's much better then fast food, frozen pizza or ready to microwave stuff.
I think getting ideas is not the hard part, just do some quick or clever search on places like reddit and you can find lots of ideas or suggestions that people have but can't or won't create. As they say, execution is what actually matters.
I don't think that is supposed to be the first paragraph. It's that thing whose name escapes me that goes under the title that gives a summary or teaser for the article.

I too was confused by it, because they did not format it different or set it off or do anything to indicate that it was not the first paragraph.

Aside from the formatting, the article does seem reasonably OK content-wise, although all five foods are recommended for the same reason: they are foods that are highly satisfying without having a ton of calories, so by eating them you will naturally tend to eat fewer calories.

I'd add a caveat that for this to work, you do need to be deciding when and how much to eat based on how hungry you are, not just out of habit. I can eat a whole pizza regardless of how hungry I am because they are so damned delicious.

I kind of accidentally stumbled onto the "eat foods that are more satisfying to lose weight thing" a little over six months ago. My HA1C numbers had crept up over the last couple of years from below 6 to 8.9, and then down to 8.1 after I made an effort to eat less sugary foods, but I needed them back down to 6 or below.

So I added carbohydrates to my meal tracking spreadsheet, and started aiming for 40% or less of daily calories from carbs. That, of course, meant I raised the percent of calories coming from protein and fat, which meant I was eating more satisfying foods. (My averages for the year are about 35% from carbs, 20% from protein, 45% from fat).

I was not trying to cut total calories...but I ended up cutting my daily calories in half because I was now not as hungry and that's just how much I ended up feeling like eating. I've now lost 80 pounds, and am still losing at a decent rate, and my HA1C is down to 5.5.
It's easier to change definition of "normal" than start working out, right?
I just want to note that original code wasn't covered with unit tests and the rewrite is not going to make it any more suitable for testing (as you expected, no tests were added during the rewrite). On the critical note, http://pythontesting.net/strategy/why-most-unit-testing-is-w... is a good complementary read.
great article, thank you so much for this
Looking at this issue and the the issues linked in its last comment...

Why are they running things like unpackers and emulators as "NT AUTHORITY\SYSTEM", instead of farming them to less privileged processes?
Could Vegan Eating Change Food’s Global Warming Emissions?
Ketogenic diets MIGHT be (but almost certainly aren't) unhealthy.

Eating the amount of sugars that most Americans do is absolutely unhealthy.

I know that I feel a billion times better when I reduce my carb intake, even not to ketogenic levels. Further, doing a ketogenic diet for about a year got me down to a weight low enough that I could exercise more regularly and effectively, with fewer injuries. Never mind the emotional health changes associated with not being an obese 20 year old.

I started when I was 17 and spent a week in one of the top children's hospitals in the country for unrelated things — all the doctors there were very approving of what I was doing.
> (3) it claims to be (memory) "safe", but requires (see 2) the use of "unsafe" features for the most basic tasks, such as implementing various collections.

I think this is an interesting one - implementing collections is (IME) the main thing one needs to use unsafe for in rust. Outside of that I barely find myself needing it at all. Unfortunately, collections are also a go-to intro project for a lot of systems programmers, so I can see how it would be easy to get a bad first impression.
I miss VMS, with its 32767 backup versions of every file.
When the UPDATE or DELETE finishes it will output the number of rows changed. If that number is much larger than expected, something probably went wrong. So there's a gain even if you don't investigate the results in detail.
You obviously need to learn about template metaprogramming, enable_if, type traits and SFINAE.

C++ templates are Turing complete, you can validate whatever you feel like at compile time.
Evolution of a single species and full ecosystem stabilization are two different things. Even with rapid evolution over a small time frame, I can't imagine the entire system finds a new equilibrium as quickly?
A lot of today's big tech companies looked like "fluff" in the beginning. I assume YC picked the companies based on more than what their current product offering is.
EU-Startups Conf: Join Steli Efti (Close.io) and Johannes Reck (GetYourGuide)
Regulated profession. In this context, a profession would essentially be a catch-all for paid work. And a Profession would be paid work for a specific regulated body of "Professionals" with a specific designation or exclusive right to practive. Think doctor, lawyer, accountant.
I'm definitely using this
One time the DBA and I were looking at our production database, and one by one the tables started disappearing. Turned out one of the devs had tried out a Microsoft sample script illustrating how to iterate through all the tables in the database, without realizing that the script was written to delete each table.
Yes, although this isn't quite that; this is a simple matter of turning the serial link speed way, way up over the normal levels. It's probably dependent on having a nice short cable, and since RS232 is single-ended rather than differential there might be more EMI.
Yes they are type checked.

That is what enable_if, type traits, if constexpr and eventually concepts allow for.
Thank god. That was one of the most annoying ideas I've ever seen.
AI – Billions of $ to copy humans
Worlwide soft company's wasting bilions of money to develop AI, to create a thing that can behave and think like a human. Why don´t they just pay a few thousands dollar's to help families to make baby's. Their better than AI, can live more time, and need less manuntation than AI. OH, and they can make you happy, really happy and help when you're older and sick. Most likely, AI will throw you away like a bug in the system.
If you need it, it's a bit over $1000/month. Which on the one hand is perhaps 2-3x more than renting a dedicated server. On the other hand it's only 2-3x times more than renting a dedicated server and if you have other stuff on AWS and make use of the rest of their features it might be worth while.
> This is the largest developer survey out there

Generally, having a random sample is more important than having a large sample size. The fact that lots of developers were surveyed means the survey tells us nothing about the language usage of all developers, since they were self-selected on a particular platform.
Their requirement for exercise was over two and half hours / week of "moderate to vigorous physical activity" which I guess is running or similar.

I suspect that alone disqualified a good chunk of people.
Where are the references supporting the claims made in the article? Are there any serious, independent, statistically powerful studies that say that anybody can loose weight by eating the food listed there?
Even if what you say is true, you should not expect intelligent people to believe you blindly. Please, add your sources.
I have a story about that based on real facts(TM): I once had to reset my own password on a production database and I decided to hash it by hand and UPDATE my row in the users table.

A few hours later we had got a few calls from angry customers who couldn't log in. I had effectively forgotten the WHERE clause so all users had the same password: mine.

Extra points for not having read the "xxx rows updated" line that the mysql console outputs after each query...
If that is the case, then it just further invalidates the argument for Kik because it is most certainly not a famous mark.
In my experience there is another kind of expression problem. It's usually something like this

"a:b:c".split(":").first # Ruby

vs

String.split("a:b:c", ":") |> List.first # Elixir

The length of the two statements is telling. Luckily Elixir has the |> and I don't have to write

List.first(String.split("a:b:c", ":"))

OO is generally more convenient to read. It's also more convenient to think into, even when I was young and I looked at C and Lisp without much priming from previous experiences.

Functional has other advantages. I quote Joe Armstrong on that: [with OO] "You wanted a banana but what you got was a gorilla holding the banana and the entire jungle." That wasn't much different with plain C though, which could do structs and be somewhat object oriented too if you coded in the right way. And you could end up with a jungle of functions as soon as you write enough modules that need each other.
If you read the comment again, he advocates using "healthy" instead of "normal".
Legalize it and let natural selection do its job. Junkies will just kill themselves.
Edit the Web – Alter any website, inside your browser
Performant Ionic/AngularJS Template for Building a Recipes App
Ask the author. The paper says they had full access to their data. They might be able to pass an anonymised version of that along. They might even be willing.

The process of scientific discussion (that you "don't trust") is just how science works.

I suspect what you actually dislike is the way these papers are cross-reported. It's one thing to be featured in a relevant journal, it's another to be syndicated as "THE CURE FOR DEMENTIA" by a much higher-level journal (or heavens forbid, a newspaper... or worse).

You can blame the sponsors and drug companies for that. Neither of which really seem to be involved here.
Qt Creator 4.0 Beta released
Recently had a brief chat with a friend about this, why she wouldn’t consider moonlighting as a freelancer since she seemed to have lost passion in her day-to-day work.

“I wouldn’t be able to handle the added stress” was the response, and I can see why from that answer more people don’t do this. Decide to freelance in addition to doing a 9-5 and you’ll not only put more work on your table but other sorts of responsibilities - accounting, client relations, being your own project manager, etc. - will make it much more harder to decompress if you had a shit day at work.
Our bodies are designed to continue eating until we obtain the nutrients we need - which is why junk food is not satisfying and we eat more of it. Try and overeat a meal consisting of pumpkin seeds, spinach, quinoa and berries.
Help me figure out your needs for project mgmt / issue tracking (Google Forms)
Preparing somewhat healthy food takes a few hours a week. It's not so hard that you need to be particularly wealthy to do it.
That weird duck typed functional template language runs circles around C# and Java generics.

I have experience in compiler design and C#, Java and C++ are my tools of trade. So I know their generics systems pretty well.

Maybe if I get bored during Easter I can bother to provide your safe list.
Crom – A package manager without the package registry. Freedom
i think this was put in there on purpose
It seems like it was less the developer than the package system.
What's your thinking behind how this works? What makes the 'after' sites more beautiful?

The increased padding on the Chromium site is great, but to me the HN 'after' looks quite a bit uglier than the 'before'.
"If I was black, and I lived here
I'd want to be a big man in the FBI
Or the CIA.

But as I'm not,
And as I'm free, white and 21
I don't need more power than I've got...
Except sometimes, when I'm broke"
It might make the code more readable but it makes you jump around more and adds more complexity to the code base. Now you have to consider: under what conditions does this function get called? Does it get called more than once? In which file is it? And so on. Every time you add another node to your code base you're making it more complex, and in this instance it has very questionable gains. It makes as much sense to just say in the first line of this block of functionality what it does to what.
If you only need to display a simple graph you could try Unicode's Braille characters: https://news.ycombinator.com/item?id=7776112

That should be supported by more terminals.
These days it should be possible to roll back a few steps (à 15 min / 1 hour) with a copy on write filesystem like zfs? Full scale restore from backup should only be necessary if the storage hardware fails (IMHO).

You still need to apologize for a some data loss, though. So make sure that everything you do has one or two safety nets before it hits the customer.
> because there is a place for a language that is safer to use than C++, yet performs at similar speeds and doesn't handhold you like C#/Java do.

And sometimes some people (like me) would argue that C++ (11&14) is actually that language.

A subset of C++ is actually very perfomant and safe for most of the uses.
Many old games like this that are optionally available through Steam don't actually integrate the DRM, so you can run them outside of Steam as well.

The old UFO/XCOM games for example are sold through steam, but ship as a DOSBOX.
I've worked in a large organization that had a huge QA group. QA was taken really seriously. At various times, I had both a QA role and a development role.

Then, I moved to an organization where developers were responsible for their own QA. What I found was an incredible difference in the mentality around ownership of quality.

I began to realize that, perhaps obviously, quality was owned by the QA group, almost exclusively. It wasn't uncommon for developers to find a bug, but leave it untouched because QA would file it eventually.

So, while I completely respect QA engineers (I was one!), and think it is a pretty useful mindset to have, I also have observed how negatively it can impact an organizational culture. I'd be interested to hear from others about their experiences.
Can NASA’s Gryphon-X Project Save America?
The solution I always try to keep in mind is that OOP can be useful if-and-only-if the data actually has a hierarchy...The class only becomes worthwhile when are able to use polymorphism that closely model the data.

You don't need a hierarchy to have polymorphism. The Observer pattern is very useful in my space game in Go. I wrote a small pair of Interfaces which makes it very easy for certain objects to register to receive notification when a ship despawns.

type DespawnListener interface {
NotifyDespawnShip(Ship)
}
type DespawnNotifier interface {
SetDespawner(Ship)
AddDespawnListener(DespawnListener)
NotifyDespawn()
}
type basicDespawnNotifier struct {
ship Ship
dependents map[DespawnListener]bool
}
func (self *basicDespawnNotifier) SetDespawner(ship Ship) {
self.ship = ship
}
func (self *basicDespawnNotifier) AddDespawnListener(dsl DespawnListener) {
self.dependents[dsl] = true
}
func (self *basicDespawnNotifier) NotifyDespawn() {
for key, _ := range self.dependents {
key.NotifyDespawnShip(self.ship)
}
}

My framework sends NotifyDespawn() to any despawning ship. Now anything that has registered interest in that ship, like missile locks, tracking AI ships, or tracking missiles, will be notified when that ship despawns. Note that this makes the system extensible. Right now I have each Ship entity tracking dependents in its own map, which it can do by composing a basicDespawnNotifier into its struct. Later, I will move the implementation guts into the object that implements the game loop/instance, which will eliminate the map from despawning entities, reducing GC pressure, and allowing me to cut-off circular dependencies. Note that all of the game code using the two interfaces won't change at all.

No hierarchy is necessary in Golang or Smalltalk, because both have implicit interfaces and allow composition. (Golang is nice because its implicit Interfaces are made explicit and typesafe.)

The op is somewhat misguided. Good OO is comprised of good design, just as good computer games are comprised of good design. Expecting good OO of any programmer who just knows the "rules" of OO is like expecting the output of all game jam hackathons to be good games. Of course half of all OO projects found on Github with "obligatory" OO are going to show below average design, just as not every game from a game jam is not necessarily a masterpiece.