skysight-inc/HackerNews huggingface dataset:
Years ago I submitted feedback on their website asking for a switch to limit search results to stuff sold by Amazon itself.

Anytime I find something I want to buy but it is sold by a third-party, I have to go through the list of other sellers and look for Amazon. A switch would save me time.
Maybe I wasn't very clear. I am not against systemic change. Surely we need to keep pushing for it. It's not either/or. We should use every method we can.

On the other hand, recently I've been thinking about this. According to some theory it takes about 3.5% of the population to take part in active resistance to cause change (https://www.youtube.com/watch?time_continue=1&v=YJSehRlU34w). Now, 3.5% is clearly not a majority required to vote in the right politicians. Which leaves you with direct action. Something like that.
Egypt thought murdered Italian student was British spy, says report
>It's interesting that the comparator function is one of the examples, because that's something which shows how people often confuse verbose with clear; I think it's best written in a single line:
return a < b ? -1 : a > b ? 1 : 0;

That's nowhere near clear. I frequently use a single level ternary, but this is an abomination and very easy to make a subtle error in.
Interesting, I thought that -hundred or even -oh-oh was an American thing, originating in their military. (Non-native speaker from the continent.)
>in Europe the caller pays the higher rate to call mobile phones (vs the north America system where the cell phone user pays for incoming "airtime").

So in Europe, is receiving calls on a mobile phones free? Or do you still have to pay for minutes?
Writing for yourself is a fallacy. We can all read our own code. Write for the next guy who has to look at it and figure out what is going on.
So as long as the government makes a pinky promise to never use their power elsewhere it's okay? Think at least a little about the future. They might be doing it now for a good cause, but how long is that going to last? There's nothing stopping them from jailing anybody who refuses to give up their password, because what's jailable is the act of not giving up your password.
“The Ask” Is an Entrepreneur’s Core Skill
Err, not really in all cases. An example - my crappy 3-year old Huawei Honor 5x is utter piece of st. I bought it as a temporary cheap need-phone-now solution because my previous phone got stolen in Paris. I tried to go the way you suggest, but there are limits and I am hitting them hard.

Not only is the battery severely degraded by now (still +-usable though), but I can't update any app for last 6 months simply because there is no space on phone anymore (that 32GB microsd card means nothing to that ancient Android 6). I can remove properly functional useful apps from phone and thus reducing its usability, but that's a bad deal. The worst part is sluggishness though - it can easily take 30 seconds just to be able to start Firefox and begin to type the URL. Or start maps and begin to type address. Everything is super slow.

Its a good tool to train my patience, but as actual usability goes, I have to upgrade. I need to keep my sanity.
Basically different devices and browsers render high-level graphical objects, such as fonts, differently. When you visit a site that does canvas tracking, a small javascript snippet will ask your browser to render a few graphical things on an html5 canvas and export that canvas to a png. The hash of that png is a good fingerprint of your hardware, browser and rendering software.
I know ternary operators very well but I still have to think twice when I see them nested

“You can't say don't use specific language features because some devs can't be bothered to learn them.”

Would you say the same about C++? In my view it’s a good practice to use only a subset of a language consistently and not use all features. I have seen JavaScript code where I had to do research for half an hour before I could figure out what it really meant.
I haven't had a need to do this, but I suppose you could print out an ASCII-armored PGP message and snail-mail it to somebody. Of course this still requires each of you has a computer, just not necessarily an internet connection.
Because you can already read your own code. Writing for yourself is bad code. Write for the next person that has to figure it out.
> Does it work like that in any other industry?

Yes, it does. Imagine you were a new underwriter at an insurance company and your predecessor used the shorthand nomenclature for every detail on the accounts you're taking over, and failed to write out any of the detailed reasoning behind why they chose to approve or deny claims. How much longer would it take for you to be able to fill their shoes than if they had been just a little bit more descriptive in their documents?

> "Programs must be written for people to read, and only incidentally for machines to execute." - Harold Abelson
Update: Hyper 3 feels super-fast. Startup and new tabs are somewhat sluggish still but actual rendering responsiveness seems real nice.
>If someone is hired to work on your code base, presumably they know the language. They know ternarys work...

It's not whether some constructs are parts of the language (languages can have any crap in), it's whether some constructs are bad, confusing, and should be avoided (whether you know what they do or not).
What a bunch of bullshit. I'm not a vegan, even though I'm sure you'll label me as having an "anti-meat agenda." I have substantially cut down on my own meat consumption due to the environmental impact.

> industrial agriculture as a whole is not sustainable, not just meat, and switching to a plants-based diet won’t save the planet.

Just because two things both cause emissions doesn't mean one isn't much, much worse than the other. The emissions impact of meat is far worse than the alternatives - beef emits a factor of 17x as much GHG than tofu.

Industrial farming at scale can oftentimes lower the GHG emissions per unit of food (that's how scaling works, actually). The problem with factory farms is when it is applied to (you guessed it) the mass production of meat.

> Sorry, but most vegans have serious nutrient deficiencies, like proteins, vitamin B12 or K2. Humans are meant to be omnivores

First, this is just not true and nutrient deficiencies can be easily substituted for. None of this is a reason to not "reduce your meat consumption," specifically when humans today consume substantially more meat than they ever did pre-agriculture (despite being "meant" to be omnivores).

> The vegan diet is not sustainable

Based on what? It's more resource sustainable than our current level of meat consumption, for sure.

Look, you're free to make the choices you want - but don't pretend that they're more environmentally sustainable or rational than reducing your meat intake. You like meat and are putting your preference for meat above the associated environmental concerns. Be honest with yourself.
[case study] We made $1M+ in 2018 selling UI Kits and Dashboards
I completely agree. At my first professional programming job, I had to follow a style guide that forced me to code the verbose way. It drove me nuts and I found another job about 6 months later.

The less lines of code, the faster you can read a code base, apply fixes and have less bugs. Obviously you can take that too far and make code so dense no one can read it. It is finding a balance between the two. Comments can go a long way towards making complex code understandable within reason.
Nothing "natural" would sustain 7b+ people anyway, so what's your point against "sustainable" as a reasonable (and considerable) improvement?
Whenever I stumble upon yet another UI/CSS framework, I always check the form elements first. Here we go.[1]

* _Every_ input needs a <label>.

* Use the `for` attribute to connect labels and inputs.

* Placeholders are not a replacement for labels. You don’t need placeholders just for the sake of it.[2]

* Do not build custom form elements if it can be done without them. There is no need for the dropdown, just use <select>.

* Do use <fieldset> and <legend> to group multiple checkbox/radio inputs.

* Error texts should be connected to the particular input via `aria-describedby`.

* Do use the `required` attribute if form fields are mandatory.

[1]: https://oatw.github.io/luda/0.1.x/elements/form, https://oatw.github.io/luda/0.1.x/patterns/form-group

[2]: https://www.w3.org/WAI/tutorials/forms/instructions/#placeho...
Happiness is here today, you just have to find it in yourself.

The most ruthless people didn't usurp the power structures, they created them. Before they existed we had lawless anarchy.

We can live in harmony with the earth until a comet hits or a super volcano erupts at which point humanity goes extinct. To survive as a species we must continue to push technology forward as fast as we can. That's where capitalism, ambition and competition come into play. They are positive forces that are human's only path to long term survival.
Respectfully, the current behavior is absolutely correct - associate a calendar entry with a time zone (and make it simple to adjust which time zone it is). Not doing this would make re-occurring meetings challenging to attend the moment you travel across a time zone, or when you invite people who are in a different time zone (such as international).

Personally, I do this kind of travel 4-5 times a year for work, and I am quite happy I don't have to add obscure time zone math on the top of an already disrupted mental state.

Time representations, especially for something as essential to modern life as a calendar, should be precise. Apple and Google's versions are precise.
Would be neat with a keyboard shortcut in one’s browser that would go the the next page. (E.g. increase 00001 to 00002, etc.)
At least in the countries I'm familiar with it's free, unless you're in a different country and have to pay roaming charges. (Gotta be careful with "in Europe" claims)
Yeah, this sounds like typical carnist propaganda. Meat has some magical ingredient needed for health that no one can name? Almost all peer-reviewed studies show that vegans (diet done properly) are the only group within healthy range for almost all markers; most meat eaters are deficient in B12 etc etc. It is strikingly similar to smoking: educating the public takes a very long time, laws are always behind and good news about your bad habits become industry-funded public "knowledge". Maybe we will have figured out how not to kill ourselves by the time we colonize mars
> "however industrial agriculture as a whole is not sustainable, not just meat, and switching to a plants-based diet won’t save the planet"

Sure, except meat is an order of magnitude less sustainable than plant, because you extract ~10% of the energy from the meat you eat, and the animals the meat comes from extract only ~10% from the plant they eat: https://en.wikipedia.org/wiki/Ecological_efficiency.

> "Also you have to take the cost to healthcare into account. The vegan diet is not sustainable [...]"

Initial comment talked about reducing consumption, not stopping it altogether, you don't need to have a steak in your plate every day to get enough vitamins/proteins.

Regarding the cost to healthcare, assuming you are in a country similar to the US, if everyone went vegan tomorrow, paying for the cost of a few pills of vitamin/protein per person compared to the disaster that is US (and most western countries for that matter) diet currently, it would be a massive reduction in cost.

If you don't want to stop eating meat because you like it so much, that's fine, but it seems like you are throwing pseudo-scientific arguments at plant-based diet to make you feel less bad about your choices.
Most people experience the same when using DB, NULL in a database is hard to distinguish from, data never stored or data don't exist.
I like the web design but I feel that the layout doesn't exactly fit a search engine design? Usually the query bar is usually the most prominent feature, for a second there, I thought I was almost searching for it.

also-
>How do I take the average between two numbers?
The return function should probably be keyword based instead of select a pre-created entry.
> Browser plugins really need to go away. If it's not implementable normally then it shouldn't be on the web. In my opinion at least.

So no more ad blockers?
It Might Be Time to Move the NBA’s 3-Point Line
also, try to step through this in a debugger.
If you're running through that many conditionals, it may be clearer to work them into a state enum that you can use with a switch.
Accident: Aeroflot SU95 at Moscow bursts into flames during rollout, burns down
It's all about costs of impact / costs to fix. If you hope for anything to be fixed, better be a catastrophic issue that is trivial to understand and fix.

When other people or audit start noticing too, the potential for fines and PR disaster will go up orders of magnitude. Resolutions that were previously impossible can be evaluated again.

Before somebody says that it is a trivial fix to turn on a light. It is not. That would have to be retrofitted in the few existing planes and future planes, starting by notifying clients and regulators. A long and costly fix, creating a long paper trail of something being wrong.
How does abandoning agile have anything to do with being greener?

I do hold similar opinions on some agile practices as you do btw.
I completely agree with you :-)

But as I say above, I think in certain situations they can be more readable for everyone.
Fewer and fewer cars have clutches anymore, but if the car does have a clutch, then yes, the left foot would be for the clutch.
>Is it really the state of the industry where a new person cannot learn a codebase, has no time or effort, and cannot read a single line of the language they were hired to work on, and that's the person we should build everything for?

Seasoned 10x developers, titans of the industry, and all agree on simplicity and even they frequently make mistakes on easily confusable constructs such as nested ternaries (or even BS like forgetting a break in a switch etc).

It's not some bad "state of the industry" that calls for no such constructs.

If anything, it's amateurs and newbs, more self-confident than they should be (and less humble) that call for using any old crap in a language, and think that such constructs are only problematic if developers are "not paying attention" or are "ignorant".
Speaking of UX mistakes: don't assault me with an email subscription form on page load when I haven't read a single letter of your content.

Earn my trust before asking me to get into bed with you.
1) Security theater

2) The people who make these decisions (politicians) don't really understand how any of this works (aka luddites)
> The difficulty this poses is that the market may as well be designed to frustrate this approach.

You bet it does. I didn't say it was gonna be easy.

> We need actual solutions.

Sure. But those actual solutions will necessarily include mandated reduction in flying, driving, meat consumption etc. We might as well show that we are ready to accept it.
Definitely more lonely, given that what finished them off was the same Power that still courses through most of the developed world.
“If you don't put the same type on each return sides of your ternary, you might be in for a nasty surprise.”

Definitely true for JavaScript and PHP. I am always surprised what expressions can evaluate to true or false.
One of the referenced studies (1-million study withOpenWPM, the most recent from 2016) notes that the usual fingerprinting scripts have basically disappeared since a public outcry and media attention following a lawsuit.

Prevalence:

- 1.4% for canvasfingerprinting

- 0.325% for canvasfont probing

- 0.0715% for WebRTC

- 0.0067% forAudioContext

The above were found only on the most shady of all websites, and good content blockers block all those scripts.

My bet is GDPR was the death blow for this kind of scripts. For small companies without a room full of lawyers data has become a liability.

So fingerprinting is now basically in the hands of google, amazon, etc.
There's actually a whole body of literature out there on climate justice, if you want to take a look for answers.

One of the primary ones is that most of the developed world has gotten to the quality of life it has today through very high historic emission levels (and continues to have higher per capita emissions). Additional emissions in the West go towards maintaining our very, very high quality of life - emissions in the developing world (like Asia) go towards bringing millions of people out of poverty.

Asia may be the largest polluter by far, it also happens to be the continent with the most people and the most people in poverty.

Nobody thinks that the US is the only country that can save humanity (even if the US cut to 0, that wouldn't be sufficient, although it'd be approaching it), but if the US, which easily emits 4-6x more than most people per capita is unwilling to cut, than we are totally FUBAR on a global scale.
This appears to be the new-style of "American innovation". You junk something up, break it, or otherwise make things worse and then take your cut out of restoring something resembling the status quo. Living in a gangster's paradise...
AF447 is really a terrible accident, just hard to analyze. It's not even clear would breaking one link in the chain save the plane, since so many thing happened.

True, UX was inadequate. But there was one more detail, the indications were incorrect and mismatched for a short period, while the pilot inputs were continual. It's not hard to interpret that the pilot actually knows something you don't (speaking from the computer's POV) and disengage ("Wait, we're 40 degrees pitch-up, and the man keeps pulling up, alternate flight law engaged, sensors might be incorrect, listen to the man").
this is on the front page: https://news.ycombinator.com/item?id=19835608
> every programmer worth his money just knows that ?: is right associative

I would hope every programmer worth their money are very comfortable with it, because chaining like this is a very common syntactic pattern in other people's code:

cond1 ? val1 : cond2 ? val2 : cond3 ? val3 : other

It is made less readable if you turn it into a right-nested mess of parentheses, so that is rarely seen.

Just as nobody thinks of 'if..else' as right associative, but it actually is, and everyone uses that fact without thinking about it.

Same for '?:'. The associativity is just a formality that nobody thinks about.

> '&&' is on precedence level 11 while '?:' is on 13

On this I agree. I routinely put parentheses around complex conditions on the left side of ternaries for this reason.

I do remember the precedence, but I think leaving the parentheses out can raise a little doubt in the reader's mind, because it is common to use logical operators for control flow in languages like JavaScript, and control flow is at the same conceptual level as '?:'.
> I'm surprised sea burials aren't more of a thing

I have friends who started a small boat tour company and found that sea burials made up quite a large proportion of their business. They were jokingly wondering whether to pivot and call their new company "The Final Wave".
I guess people want a specific place to visit and remember.
Thanks! Besides, please consider to make headlines bold again. That would help a lot with content hierarchy.
>>Beyond myself, we could not get any of the other parents to commit any time to it.

Thank you for your efforts. I was thinking of starting a team myself in a couple of years when my children are older, and have seen other fledgling STEM programs struggle with the same issue.

Was the primary issue that parents didn't commit time at home working on the projects, or that the parents didn't commit enough time after-school? I've seen more struggles with the latter issue, and the only solution we are converging on is strictly limiting the number of participants to a more manageable size (e.g. 8-10 kids, starting with 1 grade).
Free speech manifesto by the co-founder of Wikipedia
because being first to market is much more important than having the perfect tool.
Ask HN: What are you using AppleScript for?
Considering how popular MacOS laptops are with developers, it's curious to me that I haven't come across much usage of AppleScript.

I use it to hook up various actions to the TouchBar with BetterTouchTool (https://folivora.ai/) and have done some iTunes related scripts in the past to clean up or improve my library.

Are you doing anything useful / fun with AppleScript?
That looks cool - I want to avoid reinventing the wheel as you say while kicking the tires on something other than WP!
If this interests you, Mycelium Running by Paul Stamets is an interesting dissertation on how mushrooms can "save the planet." His TED talks are a decent intro as well.
- "We thought the 'AoA disagree' warning was functional in all jets we delivered, but turns out it works only if this other paid upgrade has been installed."

- "We planned for, and certified, an MCAS operating within certain boundaries, but then delivered a plane that exceeds these limitations multiple times."

- "To save money, we built a plane whose handling characteristics are so crappy that we could not certify it, unless we put in an extra system interfering with primary flight controls, but let's not tell anyone about it."

- "We've added this powerful system interfering with primary flight controls, and it depends crucially on AoA data, which we receive from two sensors. Well, let's just pick one of them and ignore the other one. It'll be fine."

Managerial marvel? I assume you're not sarcastic, so what do you mean?
Perhaps the use of machine learning helped to acquire funding, or enabled the researchers to acquire skills for future projects.
Brilliant, more cancer disguised as an "experience". Just what the world needed.
What if the universe isn't expanding, but rather we're contracting?
>because chaining like this is a very common syntactic pattern in other people's code

If it's very common where you work, then run, don't walk, away...
Say the sun makes you happy, and one day you wake up to a cloudy day. Will you be unhappy? The sun didn't impose happiness upon you, just like the clouds didn't impose unhappiness. Your expectations and desires created your feelings, which respond to change. But you can choose what your expectations and desires are. And this means that you choose what creates happiness or unhappiness.

Rather than having an expectation, have no expectation. Don't have an expectation, and you won't be disappointed at a different outcome. Don't have a desire, and you won't be unhappy when it goes unfulfilled. Don't expect the sun, and the clouds won't make you sad. Don't desire pleasure, and you won't feel cheated when you receive none.

Aside from your feelings, you can of course change things in your life if you want to. You can right a wrong, improve your standing, paint your room green, move to a new city, whatever. But don't do those things in order to chase a feeling of happiness; that's a dog chasing its tail.