skysight-inc/HackerNews huggingface dataset:
Nils Frahm, Death Grips, Gazelle Twin, Gábor Lázár, the entire PC Music roster...

Say what you like about Oil Of Every Pearl's Un-Insides, but you can't say that it's stale.
for a website owner, the main value that visitors bring is their attention. Unless you're mining monero you're going to be advertising something, whether it's your own products or someone else'. The important thing is to make the experience non-intrusive and feel like a natural part of the ux.

for my side project namelix.com I have 4 separate monetization channels:

- sales of my own logo product

- affiliate revenue from premium domain sales

- affiliate revenue from domain registration

- affiliate revenue from squadhelp.com (crowd sourced business names)
Making a stupid and shitty comment because mods don’t remove stupid and shitty comments doesn’t make your stupid and shitty 1930s era blinkered, prejudiced, mean hearted, factually and objectively incorrect comment any less stupid or shit.
yesss thought I was the only one that thought this style was a good idea ... Makes my last company look foolish and explains why most of the devs weren't as productive as they could have been.
Exactly the same as when I lived there. We had the money, but we would queue round the block (even leaving cars unattended) waiting for the fuel to arrive.
Do you have a source for this? Maybe examples of code in-situ?
You need to be careful and make sure to select dealers that are outside of their conglomerates. When we were shopping our last Subaru no one would budge on us until we started talking with Oregon dealers, then all of a sudden they'd drop the price a ton.

Turns out almost all Subaru dealerships in SW WA are owned by the same owner under different names so they just coordinate to not deal unless they know they're actually competing for a sale.
Everyone can have comment blindness to some extent, but I've worked with two people who auto-collapsed docstrings and didn't read and hence update comments, which is enough (one person writing code without updating comments/docstrings and one person inadequately reviewing). Sure, the problem only appears in a bit of the code, but it means people stop trusting all the comments.
The market was already functioning - now with taxes, regulations, overhead ... who wants to have to find a new supplier and pay for all of that?

There may be real competition between the black market and over the counter market that will play out, particularly if the former networks are already well established.

The regulations and controls on advertising are fairly strong here, for 'vaping' in Quebec for example, windows have to be covered, and there can hardly be any wording on the signage. No advertising, no way to get the word out.

Now - for a very heavily established industry, with a very addictive product like smoking ... they can still thrive.

But for a relatively new and established industry, we'll be able to see just how powerful advertising, branding, sponsorships really are in terms of influencing behaviour.
Yes!!! No targeted advertisements means no need to track. Let's go back to the way it was. This might even be in advertisers best interest given how much traffic is fake. Doesn't work for the dark data market, but that is really what my gripe is about, not the advertisements so much.
Here's a decent article about how auto pricing has evolved beyond manufacturer's invoice due to the internet:

https://clark.com/cars/eye-opening-truth-about-dealer-invoic...
yea i'm a fan, I started using it in the past year or so. pretty promising signal to noise ratio and a lot of G+ refugees hanging out now.
It's not that it is the first thing written--it's that it recommends writing broken code like "return 12" until a test knocks it down. I think that book (it's been 15 years!) went through a currency-exchange example, but you know how they go: write your first test "The sqrt of 4 is 2".. make it pass "return 2" etc. In all cases, the person writing the code knows it won't stand, but they do it anyway. That was the parallel which prompted my comment.
Similarly there’s a bug when starting the iOS simulator with certain permissions that does this to ALL Bluetooth headsets.
Yes, you just rent them off your ISP as part of your package.

This is totally normal for an SME who might buy business FTTC or a lease-line with 5 static IPv4 addresses included. Then you would set up one for incoming mail, one for internet access, one for a site to site VPN etc. That sort of thing. What use case do you have for owning an IP address separately from your ISP?
Even a pure function has "state" - namely its (arbitrarily complex) inputs. But sure, it's a little less of a landmine.

The fundamental issue remains that sometimes your knowledge about that state (whether the classical kind or a proper parameter) can be complex and dependent on what happened elsewhere, especially if the codebase your in was grown into that situation, and not designed like that per-se. A comprehensible set of preconditions and postconditions isn't always a luxury you have, certainly not at first.
Sounds like a job for typed pattern matching.

See rusts, match operator. The operator won't even allow your code to compile if all branches are not accounted for.
I've been using netflix for a bit over a year, just cancelled it this fall.

From what I can see the content is mostly shallow (Hollywood over TCP). Despite them being a global player they totally lack local content. There is a total lack of great French, German, Italian, Spanish, Chinese, Korean content (not there would be a lack of good local conent) and hardly anything that is critical of the US. So it's just another US propaganda channel to make the hypocritical US come across as a country with great values (when they're the most vile and terrorist country in the world today).

Also, there is no way of knowing who Netflix shares my search/watch history with. And I have 0 doubt that this info is in the hands of multiple entities we've no idea about.
Are you saying just exploding a URL into its components?
> Meanwhile, people with simpler languages like Go just get stuff done that is useful and makes people happy.

Kubernetes' reputation is just the opposite: that far from being a simple and useful thing, it's an overengineered, overcomplicated solution to a self-inflicted problem (deploying a distributed monolith).

> But the closest I ever came to using a functionally developed product was RabbitMQ (written in Erlang). That one was _such_ a pain to use and operate — must have been the developers still dreaming in the purity of its code instead of writing some installation docs. I moved on to Kafka later and didn't regret it a minute.

Erm, Kakfa was developed in Scala, whose advocates far more of a reputation for purist pontification than Erlang developers do. Maybe all that beauty and purity is actually good for something?
if your old freelancing clients are looking for someone to fill your shoes drop me a line, i'd love to chat with them.
"else/else if" is not used very often in Go.
Why would you care about paper signing? I'm pretty sure they could find your car for you before signing if you cared. They did that for me, not that I would care much. I don't understand your delivery damage checklist statement. But if that's the worst people are reporting about Tesla sales practices then lol.
Can AI Judge a Paper on Appearance Alone?
I wonder what some good examples of people that have gone on to have a strong second or third act after failing.
I suppose one nice thing about an orphan currency is that other than really good counterfeits, nobody is around to inflate it by printing more.
Centralized comment references sounds like a good+simple idea - I'll try to remember it, and hope I never have to of course ;-).
This is an unfortunate consequence of having a free and openly distributed internet. Unless you're auditing and compiling your own builds from open source, you have no idea where your data is going.

I'm all for best practices and due diligence. But from the startup founder perspective, you can't let yourself be paralyzed by the fear that everything will go horribly wrong.
Battle Over a New Apartment Building Explains San Francisco's Housing Crisis
> I'd argue that I've reduced the number of reasons the code has to change, which should be a goal while programming. If we change how we calculate a leap day, we don't touch how we modify a leap day, which means we're less likely to cause adverse side effects.

Maybe this is just different instincts/experience and I'm not saying you're wrong, but my feeling here is that you do actually want to change them at the same time. Suppose we decide instead of adding a day to February 29, we keep the months the same and add a festival day at the end of every fourth year, numbered 13/1. Then modifying the festival day to 13/0 is wrong - the day before 13/1 is now 12/31.

If you have one function for "fix leap days for reporting purposes" then you're fine, and you've set the abstraction in a good place (or at least good for my example case, I will totally concede there are other examples!). When you edit the is-it-the-leap-day line of code, you'll see the subtract-one line of code directly below, and if you forget, your reviewers are likely to notice. And you haven't really made things noticeably worse for the case where the customer says "Actually we need February 29 rounded to March 1, instead", it's not distracting to have that line of code above where you are (and if anything it's useful to have that comment, so that if this is a different customer asking you realize that you need to not break expectations for your first customer).

I am something of a skeptic of reusing very short pieces of code - for instance, my team's own codebase has a poorly-designed function for calling a subprocess and swallowing certain types of errors from a very specific command, and in a code review I had to tell someone to just use subprocess.check_output(), which does the same thing but without the modified behavior which they probably didn't want. Abstraction makes sense when there is a meaningful concept to abstract. (Similarly, I am also very much not a fan of getters and setters; I think most people are better off with a structure with public fields, because I have very rarely seen it be useful to convert a trivial getter/setter to a non-trivial one without bothering to look at how callers use it, and it is useful to rename the field and see which code fails to compile / no longer passes tests now.)
I was playing along with Advent of Code and decided to do some of the puzzles, mainly ones where having a graphical view of what's going on would be really nice, in Swift. For reference, the other ones were done in D.

My input parsing code was inevitably a mess of stuff like:

let parts = l.components(separatedBy: ",")
let first = parts[0].components(separatedBy: "=")
let second = parts[1].trimmingCharacters(in: .whitespaces).components(separatedBy: "=")

When I did puzzles in D my input parsing was just creating a regex, matching on it, and pulling out the results.

I started to look at how to do regex in Swift and it seemed easier (!) to just use .components(separatedBy:) as required. Google came up with a number of people who have created libraries/extensions that make this easier, but Swift really needs some better regex handling built in.
It's completely non-ambiguous what the parent meant by public school because they contrasted it with private schools.
Oh hey MTG:A finally made someone's list! This was the first card game I have played in a while, having dabbled in Hearthstone before and disliked Blizzard's aesthetic choices. There's something about MTGA that I can't put a finger on in terms of design that's so "attractive" and makes me come back to it every 2 days.

I honestly can't wait to see what WOTC will do to make it shine as an Esport. Hopefully something unique.
There was a lot of meta-game you could not grasp as a newb in arena-shooters. You heard the opponent grab the shotgun shells, you knew he could either reach door a or door b in 5 seconds. So you grenade launched into Door A and flung yourself at Door B.

For newcomers this resulted in dying horrible most of the time, all the time.
Outdated comments that explain the business use case or purpose are still better than no comments. It gives you background information how the code evolved or what it was supposed to do.

It's probably because reading comments only is worse than reading code without comments, that some devs developed an aversion towards outdated comments and thus comments in general.

Comments are additional information and no source of truth, always take them as that and read code and comments.
Which is the first iteration, the code or the comment?
That's his classical roots showing.
Simpler times... I remember when running talkd, fingerd, etc. was the norm. Not to mention unshadowed password files.
1) Libraries: scikit-learn, Pandas, numpy, make it easy to work with data.

2) Easy to learn but powerful, lots of examples online, lots of good books, great community.

3) IPython/Jupyter workbooks make it really easy to work through a solution and share it.
> auto-collapsed docstrings

Woah, that sounds like a pretty dumb feature. Auto-collapsing whole functions is useful, but auto-collapsing docstrings sounds like a recipe for disaster. People write docstrings and inline comments for a reason.
“True mastery, true depth” is impossible in our field. If anyone disagrees, find me someone with mastery of the 10 latest JavaScript frameworks, or whatever service Amazon put on AWS last week.

What you what is someone with a strong knowledge of fundamentals, everything else follows from that.
I imagine it reduces errors and I admit it's very tempting.

But doesn't this style add a considerable cognitive load such that thinking several layers up becomes difficult? Perhaps there is simplified documentation of lower or mid level components so that thinking on the higher levels is not so difficult.
Yes, that's precisely why CORS is a poor fit for authentication :)
> IBM Kitura

watching the intro on this video [0] ; IBM Kitura is positioning against Node.js, with clients like MercedesBenz and IBM corp consulting solutions. An iOS app is mentioned first as an example client.

[0] https://www.youtube.com/watch?v=tBogAmEzJCk

> the Swift project has been creating a pure Swift replacement

so the Swift project is funded and staffed to grow the reference library (apparently)

> before it eventually moves to Windows as a first-class Swift platform

Windows (of some kind) will be a first-class Swift platform, guessing the GUI part too..
Informative, now for the quick review of negatives

> Linux is also an easy target

something about that does not sound right

> Swift is a fantastic language that people want to use

typical marketing BS talk, content-less yet manipulative

> Remember that languages and frameworks aren’t the same thing

remember that people can tell when you substitute information with content-less yet manipulative replies
California's neighbors to the north both have 1500+ establishments. Oregon isn't exactly big, but due to massive overproduction and no sales tax prices in Oregon are approaching sister crops like hop.

Wtf is going on in California.
> Not necessarily. Let's say I steal your password and use it against the auth endpoint to get 10 one-time tokens for your account.

The tokens are valid, thus there is no objective reason to reject them other than there was an unrelated security failure elsewhere in the system.

Additionally, tokens are generated per request and are short-lived, with an expiration timestamp that is just enough to send a request to the server.

When the token is passed to the server, the nonce is added to the server's scratchpad memory to revoke the token and thus avoid replay attacks. If anyone for some reason wants to revoke a token, they only need to add the token's nonce to the revoked list. If the nonce is present in the list then the server rejects the token and triggers a token refresh.
so true, I've experienced this in things like learning the guitar / piano, playing poker, learning excel macros etc.
One thing I like about this program is that it seems like the tool is spreadsheets, and not a proprietary, locked in interface.
The selfish mentality that I predict the money will be misspent?
Yeah, references to a centralized document is such an obvious thing... once you read about it. It's another thing I recently picked up from Ousterhout's book, and looking back, I can now see the places in past codebases where I wish I thought of that myself.
You just saved me from typing the same things more or less! hahaha ^_^
The author of this post (Chris MacAskill) is the co-founder and CEO of Cake. I was kind of wondering how it's possible to have this kind of insightful post on such a niche platform and figured out it was the founder himself feeding it. He seems to post quite a lot if you look at his profile.
> A cow consumes, worst case ~80 gallons per day.

I assume most of the water needed to sustain cows is spent on the plants they eat.
No, there's also 3G as well, remember. My phone allows 2G, 3G, 2G and 3G, 3G and 4G, or 2G and 3G and 4G network selections in its settins menu (Android 7, Sony)
Apple Blew $9B Buying Back Its Own Stock. There’s a Lesson Here
They are probably getting paired with a device capable of receiving audio input (the VM itself?) and the bluetooth profile jumps from A2DP to HSP.
Ask HN: Where's the best place to work remotely?
It was nice taking a break for the holidays - but now that I'm slogging back to working remotely, I'm trying to think of new places where I can work. Does anybody have any thoughts or recommendations?

I've been doing the public library, but I feel a little guilty about making it my workplace, day after day. There's some nearby coffee shops, but sometimes it's hard to find a comfy chair there. A few local restaurants offer wifi -- even the nearest Subway sandwiches -- but there's only one restaurant that's gone out of their way to say "Stay as long as you like!" My girlfriend suggested the library at the local community college (though I think I'd feel guilty unless I'd signed up for a class). I'm surprised there's not more free co-working Meetups (on Meetup.com). Maybe I should make my phone into a mobile hotspot and then just work in the park?

Anyways, I'm looking for suggestions. When you've been working remotely, what were the best places? (And how do you find them?)
Also, "Yeah, first off, we shouldn’t have to say this but — we’ll have our moderators on the lookout to make sure no one is being stupid and trying to work for 20 hours a day. Be smart not dumb, ok? Your health is your responsibility, but just bear that in mind. There’s “good hardcore” and “stupid hardcore” — be the former, not the latter, eh? "
The huge thing for python is it's ability to call out to lower level (faster) languages. From a machine learning point of view the ability to stuff data in to buffers cheaply to be consumed by C/fortran is what's important (all of those fancy math and data science libraries do the heavy lifting in c/fortran).

https://www.python.org/dev/peps/pep-3118/ for more of how this was accomplished to get a bigger picture of the story.
> According to chartal theory, the requirement that people pay taxes with government-issued bits of paper is what drives the positive value of these bits.

This is an actual theory? I thought it was just something people made up for the purpose of "proving" that bitcoin is worthless in internet discussions. It just sounds so silly.
what about caring about things that matter?
>> Saying "there is no shortage, employers just need to pay more" does mischaracterize the issue by making it sound like these employers have unlimited pricing power

Perhaps their business is not viable? If people aren't willing to buy their product without having employees pushed into below-sustenance wages, i'd question the business and product, not manufacture some story about labor shortages.
I don’t understand your question. If it is “can I explode a URL into components”, the answer is that URL can do this.
> This is not something strings should do;

I didn't mean that String should have a "pathExtension" property like NSString. I just want operations like "insert a number before the last period" to be easier to do.

Also, there are a lot more things that are a pain with String. I mean, just the fact that I can't pass a Substring to a function that expects a String boggles my mind.
Most people reuse usernames.
CDC Field Epidemiology Manual
More importantly, today's code is an optional basis of tomorrow's code. When NASA wrote the code for Skylab, I bet the comments in this codebase were the only useful thing in it and the code was all noise.

If you don't want to spend your career rewriting the same thing over and over again for slightly different business use cases and platforms, comments are incredibly valuable. (On the other hand, I guess there's a lot of job security in being hired to write the same thing many times....)
How is this objectively terrible comment not flagged? Yet my response which used the same language and style was flagged in five minutes?
I wish I could give you more than +1. Im obsessed with these. I wish there was more.
+1. Sociology is an extremely important area to learn, not just in tech. How people work, play and live within different types of social constructs (and how these constructs are built and maintained in the first place) is valuable info to anyone who wants to get things done properly.
It just completely skips my mind that Epic has more going on for them than games. Not that I've really tried to understand their business units or offering.
Check out the recommended music section and their best albums of the year at Resident Advisor. Objekt's latest is probably something you would like.
As a counter example, here is a C file of 20,000 lines and no comments. I pushed this to Github long time ago, as it was the most gigantic "real" C file I have encountered.

https://github.com/miohtama/aliens-vs-predator/blob/master/s...

Comments are very barebone. There is structure, but needing to mess with this kind of code would be scary. Granted, most games are write once and never look back.
As a novice programmer, I was absolutely stunned that this was not standard practice. A typical source file provides zero context, background on the subject, pointers to reference material/blog posts/books explaining the concepts, information on how it fits into the program's 'bigger picture', or (most importantly) the thought process that resulted in the file (i.e., why the choice was made to do _this_ rather than _that_, challenges faced, trade-offs, etc.).

It still baffles me. Every programmer has to start from scratch dealing with a new codebase, and it makes improving any non-trivial program impossible unless one is willing to spend hours of archaeological examination. To open-source developers: if you want to get people contributing to a project (and make everyone's effort much more enjoyable!), these sorts of comments are essential. Not to mention they'll save everyone boatloads of time; it's a shame that every programmer has to piece together knowledge from scratch, rather than being 'tutored' by their peers' comments.