skysight-inc/HackerNews huggingface dataset:
It's like in any sizable codebase with quite some history. There's substantial difference in quality between parts. Some of the worst parts go back to the early days of postgres - the priorities and resources available back then were just very different than today. Obviously there's also noticeable differences in more recent code, but I don't think to the same degree (although there've been definitely subsystems that worked out better and some that worked out worse).

E.g. the code above is essentially (although somewhat mechanically renamed and moved since), from:

commit 41f1f5b76ad8e177a2b19116cbf41384f93f3851
Author: Thomas G. Lockhart <lockhart@fourpalms.org>
Date: 2000-02-16 17:26:26 +0000

Implement "date/time grand unification".

> Usage of acronyms is one of the worst offenders in bad code.

Not really on board with that... It's a balance. Brevity does have it's value too. Everybody is going to understand that TS stands for timestamp, that WAL stands for write ahead log, etc. Especially when dealing with a language that doesn't have namespaces etc, you're going to have to realistically deal with prefixes a good bit. There's plenty of bad abbreviations in postgres code, however, don't get me wrong.

In the above I'm more bothered by the inconsistent naming, which I think is probably one postgres' bigger code quality issues.

> For me, comments should only be needed when something isn't clear.

I pretty strongly disagree. Most of the time comments shouldn't explicitly restate all that code is doing, sure (although there's clearly exceptions to that too). But e.g. stating why an algorithm is doing something, what the higher level goals of some checks are, why some shortcut is reasonable all make a code base a lot more maintainable in the medium to long run.

I work a lot on postres, and occasionally dabble around the corners of linux. For me it's the* defining difference making it much more painful to understand most linux subsystems.

Edit: formatting, typo
That is weird that it would be how sexy we are and not how sexual we are.
>Gold has no inherent value at all apart from some minor uses of relatively small amounts in the economy.

I've never understood this argument that gold has no inherent value or no use in economy.

First, lets acknowledge you couldn't even make your comment/post from any computer/smart phone on the market that doesn't use gold. That is gold is a great conductor of electricity, maybe not the best conductor, but when combine with its anti-corrosive properties it is the industry standard. Every single computer/smart phones is manufactured with gold, anyway you cut it, that isn't a small part of the economy.

In addition to being a good conductor gold has anti-microbial and anti-bacterial, and anti-corrosive properties. This gives gold inherent value, especially in antiquity, put your food/wine in a amphora made of gold and made of pottery and see which expires first. Finally, gold isn't made through natural processes on Earth, that we know of, it is made in Stars and so what we have on Earth is what we got, that limited supply, makes it inherently valuable as a medium of exchange. Sure we can also go back to using seashells as a medium of exchange, but the Earth will continue printing money. finally, the anti-corrosive and ease of smelting/crafting Gold also gives it a certain value.
antiwar.com
counterpunch.org
unz.com
all this whining about things not being fair. they created it, you use it. stop whining. I dont like it, I dont use it, simple.

It didn't exist before, it doesn't need to exist, and its purpose of existence is not to be fair to you.

this country is turning into a bunch of bitches
This is textbook regulatory capture.

Want to host your own website? Be sure to hire a specialized lawyer to audit and sign off on the user interface choices you made (and be sure to retain them indefinitely as your dependencies and the law evolve).
That seems more similar to the plot of that Halt and Catch Fire show on Amazon Prime
I did my last check-through of all the newspaper plans about 3 months ago, and out of the 6 on my list, not one offered a clear cut subscription. I actually, really don't want a physical newspaper. I do want clear subscription terms.

Your regional newspaper does sound super reasonable though, and I hope more newspapers follow that general model.
And you can build Xamarin apps on Windows. I think the point is more about what you can put on a console, the content restrictions, marketing etc.
That makes it a zero sum game--all or nothing. Not good enough.
Exactly. I was going to make this point myself, but you stated it better than I could. I can imagine a lot of prospective founders wanting to build an alternative platform to mitigate this issue, but then realize that further down the road they will ultimately become the very thing they set out to abolish in the first place.

> I don't know how to get around the business physics of this. Not sure anyone does.

Sometimes I think to myself that if their is less reliance on angel/VC funding from the very beginning, then founders could stay true to their vision. Like how Elon Musk refuses to make SpaceX a publicly traded company as it would squander the ultimate goal of colonizing mars. However, given how resource intensive it must be to process and store petabytes of video every year (exabytes in total), there is just no way around acquiring investment dollars.
Typescript readonly properties and types are amazing for this. ReadonlyMap<T>, ReadonlyArray<T>, Readonly<T>.
Compare and contrast with a modern design, like Nix. npm's conception of packages as named, owned, versioned, published, etc. is all window dressing around an inherently-faulty set of assumptions.
Btw recently stumbled upon this article: "Streaming services are seeing a jazz renaissance amongst younger fans"
https://www.bbc.com/news/entertainment-arts-44813683
Surprising but encouraging ;)
I’m torn about endless scrolling. I wholeheartedly agree with a ban on auto playing sound or video. It’s gratingly irritating.

It’s rather anti-human, experience wise.
I think the fact that we can organize billion souls under the flag of a nation state speaks volumes enough.

Did neanderthals have this capacity? I don't know. But if their psychology did not facilitate large scale collaboration, a violent human tribe killing a bunch of them now and again would explain some part why they disappeared.

I'm not saying a human tribe hunted them - just that a violent human tribe would attack all hominids around them.

And if the Neanderthals did not have this capacity for mass violence, in time these conflicts would dwindle their numbers.
Right, you can deploy your game to any console from a variety of IDEs. The end user who purchases your game, if on a console, not PC, has to purchase it through the console maker's store, they have no alternatives (generally). Want that newest Fire Emblem game on the Switch? Head on over to the eshop!
Now that is interesting. What are the challenges for making sure the trees survive the first five years? Do you have any knowledge you can help to elaborate?
Where did I assert or imply it was or bring up anyone's competence at all?

It's really easy to sit in an air conditioned office in 2019 and look at decisions made decades ago and say "they should have known" when in in all liklihood the people doing this probably didn't know they were leaving behind an unsafe level of radioactivity.

Speaking generally about pollution, not this specific case, everybody wants to see everything as the result of some bad actor(s) so they can have someone to blame. Reality is often much more mundane. Usually either it was not widely known that the thing was dangerous at that level of exposure, the people who could know didn't want to go looking for the knowledge or society considered the pollution worth it and if it bothered you the onus was on you to limit your own exposure (social media comparison anyone?). If you didn't want to smell paint all day you didn't live downwind of the paint factory. Times have changed a lot and to try and look at decisions in the past through the lens of modern values is a fools errand, to put it charitably.
I wouldn't cite Wansink... the guy had 15 retractions in the past year for making shit up.
Bottomless margaritas have led to many a poor decision.

(They remain legal, though.)
From Germany here: I disagree! The 'Single use plastic bottle deposit' you probably refer to doesn't really have the effect it was supposed to have.

There are three types of bottle deposits: glass bottles 8c 29.2% market share (ms) (probably almost entirely beer), reusable plastic bottles 25c 13.6% ms, single use plastic bottles 52.2% ms and aluminum cans 25c 3.2% ms (2016, numbers are up now). [0]

The single use plastic bottle deposit was introduced as a measure to REDUCE market share and support use of glass, but instead people got used to paying more for their water bottles and returning them or "donating" them to poor retired or just plain poor people and might even feel good about themselfes which is not a great incentive. Reusable plastic bottles got more and more replaced by single use and glass bottles water vanished almost entirely. Every grocery store in Germany had to install huge sorting-and-compressing machines for all the different bottle deposits. For some years (long before plastics deposit I believe) a deposit for aluminum soda cans worked quite well but I get the impression products are increasing (I guess bcs people got used to pay the extra 25c.).

This all boils down to one solution in my opinion: Regulation.
The 'free' market is not willing and/or able to factor in environmental variables but is forced to ramp down prices no matter what to nuture their shareholders and growth.

There is literally no need to buy bottled water. There is probably not a single town in Germany where you are not able to drink tap water. So yes, a change in mentality would be necessary. But banning single use plastic bottles (as a start) instead of "taxing them properly" wouldn't change our lifestyle one bit.

This troubles me because I am pretty certain we all have to change our lifestyles drastically if we want to somehow limit the environmental impact.

[0] https://www.umweltbundesamt.de/themen/neuer-tiefststand-imme...
Almost all new features can be implemented is ES5 so instead of transpiling you can patch old engines. Eg. Array.prototype.flatmap
Asity 3.0.0 released with support for Play Framework 2
You could replace iOS with Android, altough it is even more broken though. Just in worse ways. Hello arbitary dev account bans with no human to answer. Byebye privacy.
An Easy Explanation of Vue Scoped Slots
Correlation may not be causation, but I have a four year old CC that is just used for online subscriptins and purchases (netflix, hbo, apple, amazon, intuit, airlines, phone).

Friday AM, I threw caution to the wind and used it at a smaller retailer site and software vendor. Within an hour I had a notice from my bank that my cc information had been exposed and a new card was being sent to me.

I don’t like a world where I have to be paranoid and minimize the vendors who get my sacred numbers/business, but from the headlines and experience not many others are willing to be paranoid enough about security for me.
How do we change it? Everytime I bring this up to my bank et al I get blank stares and random stuttering.
Project Zero has always been disguised marketing, and IMHO an extremely nasty form of it. I have no doubt they plan coordinated releases like this on a regular basis

(these downvotes are confusing. Do you disagree that it is marketing? That their approach is brutal? That they plan this regularly?)
These guys are the best experts in the world and Apple is getting free work done. Who cares if Apple is angry, Google made their software slightly safer and probably put the iMessage dev team on their toes (as they should be).
So do I just stop using Facebook? Naw, let's PASS A LAW forcing my will on the whole internet! What stupid idiocy is this?
I can't add my UK CC to my account though as it's not a Dutch one, so I switched to the UK region, and then it errors out with "your account is not valid for use in the UK store. You must switch to the Dutch store before purchasing". Why ...? I don't know.

Because content licensed for a particular geographic region.

I mix regions, too. It's not rocket surgery. You just have multiple iTunes accounts, which are as easy to create as buying an iTunes card while you're in that country and loading it into a new account.

I have US, UK, French, and Japanese iTunes accounts, and have no problems making purchases from any of them because each has an independent country-specific payment source.

You can have up to five on a device. It's something Apple has supported from the beginning.
Entrance exam culture is biggest bullshit of the century India facing. On one hand college dropout are starting startups and disciplined intelligence thrown in to mindless clerical works, ultimately proving first idea works better than the second.
Think of the last time you were in a conversation with 1 person in a busy restaurant. Was it distracting to hear others having conversations? Did it propel your conversation at all, or maybe give you something to talk about? When people talk about the buzz of activity in a busy place, it's really closer to a situation like this.

Individuals doing solo work are often distracted by background noise, and even I do! But in pairs, it doesn't seem to have quite the same effect in my experience.

On the planning part, I know a lot of pairs that set up small daily roadmaps to stay on track. Totally normal, and also totally ephemeral as well. Usually an updated plan is drawn every day since the pair might change.
> I'd say it's pretty obvious that this is a desired outcome on Apple's part.

I don’t see that. Why do you think it will happen?
But you can only sell your Xbox, PS4 or Switch game through Microsoft, Sony or Nintendo (correspondingly), and you have to agree to their terms and pay whatever cut they want to take of your sales price.
The western and male part shouldn't bother anyone. I'm kind of surprised to see that comment several times in these comments. Most philosophy in English, especially before 1960, is written by western males.

Yet no one points out that these all of these sources are continental (as opposed to analytic) philosophers. I'd think that a "curated" list that omits Russell, Carnap, and Quine—the most preeminent philosophers of the 20th century—would raise a bigger fuss among the HN crowd.
My assumption is making sure they get enough water.
So, you want to build a CubeSat?
Insomnia sufferers can benefit from therapy, new study shows
> I want to Apple to be the benevolent dictator of what software is on my phone, And I am willing to pay higher up prices, and put up with missing features in order to protect their revenue stream in exchange for that.

You could still exercise that preference even if Apple opened its platform to (easy) side-loading or other app-stores: you'd just choose to use only Apple's route for software installation.

If the Apple App Store is only one of many ways to install apps on an iOS device, then there's no issue with Apple charging whatever fees it wants. The problem here is the anti-competitive nature, since all roads lead through that same App Store -- you have to choose another phone entirely to avoid the Apple tax.
The word “usury” is almost solely employed as a coded anti-semitism dog whistle these days, so I really don’t take issue with the terms exclusion
>But 30% is really, really high

Interestingly, that's about the average income tax rate. I wonder if Apple and Uncle Sam both independently came to the same conclusion that that's the highest amount that they can get away with without hitting the tipping point.
That's clunky and annoying. Just being able to delete the app within 2 hours is what I'd like.
Maybe every single one of my kids is exceptional but I think at least two, and maybe all three, would have been capable of imitating that behavior for effect (amusing adults, attempting to amuse themselves in a way they'd observed another kid being amused), with an understanding of exactly what they were imitating, by no later than age two. Without understanding exactly what was going on, they might have managed to simply mimic the behavior some months earlier than that.
Or they could just build a walking bridge over that river.
Accurate and Infinite Prime Prediction from Novel Quasi-Prime Analytical
They have what Microsoft didn't: an exploding user base.
> Which countries are you referring to?

It's the next sentence: Germany, Austria.

Belgium indeed went on a bit of an exploitation spree. But it's never been notably wealthier than its neighbours. (Of course the king got some nice palaces, but that's not country-level wealth.) Instead the industrial part of Belgium was wealthy in the same era that the nearby industrial part parts of France were (and Detroit was). Now that's rust-belt poor, and the wealthy bits are tracking Holland. These patterns seem hard to explain by referring to the (very real) evils of the congo empire.
Huh? The compiled JS will continue to work just fine for the end-user. Not sure what you're getting at.
Well, I was talking about CP in general, which you omitted entirely in your original post.

Specifically with synthesized CP, though, I could imagine that it's harming the consumer by feeding into their mental illness.
it works for IPv6 (where one IPv6 address really does equal one person)
Oh, good to know. Are you aware of more details? Replications or critiques of those studies? (As I said, I came across them in pop-sci books.)
Many of us are boycotting Amazon by accident, I don't think it's a substantial life commitment. What have you wanted to buy from Amazon that you can't find elsewhere?
Apple is using their existing dominance to create barriers to entry for new players.

The number one phone manufacturer is Samsung, not Apple. Huawei is number two.
> If we still need to target es5 4 years later

This is only true if you're writing JavaScript for the client and you have to support IE11. For many companies, the usage for IE11 is so low now that it can be safely dropped, for instance my SaaS products all just target evergreen browsers.
Xkcd #2182: When I'm Back at a Keyboard
I imagined this as a glass attached to a table with a false bottom that constantly refills the glass. When you drink some of the liquid (presumably with a straw?) the glass is instantly refilled, which makes it hard to tell how much you've drank.

In other words: I agree, this really isn't a great example.
if they are so good why was gmail completely compromised without their knowledge
Or you could just press the "back" button on the remote.
From what I’ve heard, much of that kind of awkward regional nonsense is left over from the origins of iTunes as a music store which required heavy amounts of country specific logic dealing with per region restrictions as a result of licensing deals.
> As an unintended consequence of Google’s browser update, it is a very real possibility that a lot of publisher content would eventually disappear behind hard paywalls, and the open web would grow dark for many news consumers, with even darker consequences for publisher revenue streams.

Kind of disingenuous to talk of the open web in this context as what the publishers are trying to do it rather the opposite to putting the content on the open web (to the extent the term isn't already taken for meaning building on public technologies).

The journalists and publishers need to get paid for their work of course, and running a proprietary, closed, pay-for-access service at the periphery of the open web can be justifiable. But I find the rhetoric here has a tinge of hypocrisy.
I wish game consoles were open, but I don't care as much because they're single purpose. A PS4 is not designed to be your primary computer.

An iPhone, by contrast, will be many people's primary or even they're only computer. What does it mean for our society if a single company has control over what that computer can display?

I see this issue as broader than just competition—I think it's analogous to free speech.
Ah, yes, disability tourism.
To save anyone else time here's his wikipedia page: https://en.wikipedia.org/wiki/David_Brooks_(commentator)
> Have Apple executives said anything on the matter? Even vague warnings?

Because companies never lie or say that "we're not going to do XYZ" until next week/month/year where they go "XYZ is the new awesome". Expecting companies to be honest is like placing a cat near a canary and expecting them to be BFFs, especially when the topic is something that people have negative concerns about.

It is MUCH better to be explicit and loud about what you do not want to see before it happens, than try to reverse a situation after it has already happened. You lose nothing by doing the former, even if there were never plans to do what you fear might happen.
Fixing a critical issue: a journey into Ruby web server startup sequences
A lot, they probably set the bucket as world-readable with no encryption, which AWS warns you about, their engineer just ignored the warning
So true. Just like high definition video or images.

This bill should also ban: large hero images, serving more than 500 KB of JavaScript, making more than 50 HTTP calls when loading a page, causing the fans to spin up when loading the page, unnecessarily using web fonts.

Banning these things would make the web so much better.
What's nasty about what they're doing here?
The bill as written[0] is limited to social media sites and has an exception for music playlists, so both your examples would be allowed.

[0]https://www.hawley.senate.gov/sites/default/files/2019-07/So...
Recently, Indian government have released new educational draft.

If everything goes as planned, it will be implemented by 2030.
I'm gonna have to call BS on that. Finding water accidentally is astronomically more likely than finding a bomb.
> They are competing in the free market. Users are free to not use their software and there are many other choices.

Users are not free to use other software on Apple hardware.

The operative question is how we define the market. Is the operative market "all smartphones," or are iOS devices distinct enough to qualify as a market of their own?

The answer isn't clear to me, especially because there are a variety of soft barriers. Even if "all smartphones" is the relevant market, phones are expensive; it takes on the order of $1k to walk away from an iPhone X in favour of an equivalent Android device.