skysight-inc/HackerNews huggingface dataset:
I'm starting to think the entire direction of modern Javascript is one giant yak-shave built on enabling bad decisions.

"I like functional programming so I'm going to do that in JavaScript" -> "Now I have a problem because JavaScript is not very good at that, so now let's radically alter JavaScript until it's... well, still not good at it, but it looks like it is, at a glance" (initially through libraries, now altering the language itself)

"Let's make as many calls async by default as possible" -> "Oh but actually I need most of them to seem synchronous, even if they're actually async, like 90+% of the time" -> "Callbacks?" -> "Oh god that sucked... promises?" -> "Better but still not great, let's just... uh... add `async` and `await` and watch as their use becomes so hilariously common that it's now painfully obvious that the default behavior is wrong?"
The issue with taking examples from real-world code & converting them is that there's no guarantee the real-world code is good. It usually isn't, so you're comparing bad with bad.

A more aggressive reformulation would be to prefix the original code with

const envOutput = Object.keys(envars).map(envar => `${envar}=${envars[envar]}`).join(' ');
const argsOutput = args.join(' ');

Leaving the example being converted as simply:

console.log(chalk.dim(`$ ${envOutput}`, 'node', argsOutput));

vs

envOutput |> `$ ${%}` |> chalk.dim(%, 'node', argsOutput) |> console.log(%);

This more clearly highlights the obvious limitations of pipelines - piping envOutput but not 'node' nor argsOutput is a jarring syntax-mix here. Though I think it offers some hope for them working well in other scenarios - possibly in curry-heavy applications.
>> sounds that displace your eardrums on the order of an atomic diameter.

That isn't all that surprising really. This isn't one atom moving a tiny bit. It is billions and billions of atoms all shifting back and forth together.
You can be highly paid and still negativity affected by layoffs beyond the financial side. E.g. if you are on an H1b or L1 visa.
I don’t understand why anyone buys things like this. Paid emotes?? Who cares? I guess I understand children who just ask their parents, but who else would actually pay money for this stuff? I happily pay for DLC like expansion packs or other content added after the initial launch of the game, but I don’t think I’ll ever pay for emojis, in a game or anywhere else.
> But then a call comes in over the radio...med-evac requested...

Thankfully, the police officers received a call for help and responded to it. It's not too hard to imagine what would happen if a person had internal trauma and an unskilled observer said "nah, you look fine." We quite literally could have riots over a cop letting a person die like that.
This only applies to TypeScript, but error checking for this pattern from a library is much harder than error checking for native syntax.

In order for TypeScript to check if the return value of one function has the correct type for the next function, you need to use generics, but generics don't allow for a variable number of generic parameters, so `pipe` would just have to use unknown or have dozens of overloads for each length of pipe usage (within reason).

I know TypeScript is a different, optional language, and I see no reason why they couldn't add the feature without it being in JavaScript, but that's not generally how TypeScript operates. If JavaScript doesn't add it, TypeScript won't. There's also lots of tooling that will type check your JavaScript when available, which will benefit from a simpler model.
Yes I did this. It was pretty tough but there is a way.

I was fired from a job in the media industry and decided to start over in tech. It was really a low point for me honestly; I can empathize I think with your post.

I found an entry-level job as a Scrum Master. The role gets a ton of hate, and some of the criticism is justified, but it helped me learn the tech world from the very bottom.

I spent about 4 years doing that. I did a lot of listening and learned an incredible amount from the development team. It was probably the most important thing for me -- whatever career you choose, find a way to start in the trenches with the folks doing the real work.

Then I became a Program Manager. That was really good because it helped me learn the delivery aspect, and get me plugged into the strategy aspect of the techbiz.

I should note here by this time that I had been really lucky in a couple of respects:

1. I found a company that was VERY good at developing their employees into new roles.

2. I found mentors and sponsors within that org that helped me to grow and sponsored me for new roles.

But after a few years learning the Program side, I transitioned to PM, where I am very, very, happy, and to be honest have a leg up on some of my peers because of my deep experience embedded with dev teams and understanding their struggles day to day, but also having to service the needs of the leadership/exec team as a PgM.

I guess I would sum this up by saying, it sucks, and it takes time, but it is 100% doable. I'm not exceptional in terms of brains or skills, which I don't mean as a knock to anything or anyone, but rather as a way of saying, "If I can do it, I really do believe others can too."

The thing to focus on are my 1 & 2 points above. Those are absolute game changes and IMO must-haves.

And LUCK again plays an unfortunately large part in all of this, I feel I must repeat. But I wish you the best of luck, and hope that my note gives you an amount of hope.
Buy the new shampoo ABC -- your hair will notice. CLICK HERE NOW.

-- ai inserted ad through duplication of similar elements with custom text --
And C23 compilers won't be able to compile code that still uses K&R, trigraphs, gets(), are free to ignore annexes made optional on C99 and still achieve ISO compliance.
So by the same token, there are people without jobs that get anxiety by seeing additional layoffs and getting concerned about their prospects. Do they not deserve sympathy?
My JS code looks exactly like you describe. Just a bunch of const (rarely let) statements with descriptive, short names. It's not tedious at all, just a little verbose. But JS is already a language that is relatively compact so it doesn't really matter.
Anyone else finding this documentation is pretty hard to navigate? Makes me think this isn't a serious language, but rather an academic toy or resume builder.
I remember sitting in a bar in Dublin and getting absolutely put to shame by a few little old ladies. I think they sank at least two beers for every one of mine. The bartender would just look over when their glasses got low, they'd give a tiny nod, and he'd start pouring more.
Sorry Aaronstotle if it feels that way, I'm actually the writer of this article. I wanted to get an overview to people that can connect dots in their minds using "graphs", but don't think of them when it comes to developing solutions and thinking of how the parts of the attack are connected.
Oh, also people contesting irrelevant points. :) The average HNer is probably paid half that, but dahfizz's point still stands.
The works council is a legally regulated means of participation of the staff in a company. Establishing a works council there are a few hurdles just like in ionizing. But different from unionizing there is no membership fee and the works council is regularly elected by all associates.

Works council has a say in hiring. And firing decisions. And also on other business decision in the company. At times this is good and progressive, sometimes not so much (usually huge fans of combustion engines).

Elected Works council members can be union members but also independent.

Iirc the mode worked so well that Daimler tried to export it to an American plant but it was shut down there because “this is not how we run things here”

Ah and then with VW there is the story how the works council let itself be bribed
As someone who works at a tech company and hires people, the key thing is motivation and passion for stuff. I see that you say you have no motivation and that is the only thing you really need to work on. Some of my most valuable people are not technically gifted - but they care about the product and work hard.

There's always hope. You could get some Python - perhaps start going through some Coursera courses (to show that you're actively learning, and will help reestablish your confidence - I've seen people quote numerous on-line courses and it's always a major plus) and try to get even a low-level job at a tech company, then work your way up. I regularly see manual QA people move to test automation, then move to working directly on products.

Even if you don't get a job at a 'tech' company, there is some sort of tech at all companies - and it's more important to be working in a field that you like and transfer to a more interesting company than to be coming from gig work.
And it's also illegal in EU. The GRPD imposes to have the choice to reject tracking cookies. And it must be easy to reject, not hidden somewhere or requiring one to manually delete the cookies with the browser mechanisms.
Good point and yours does look better :)
OP said medical services and evac, not simply “evac”.

Read his statement as “medical services” and “medical evac”.

Of course a helicopter can do a generic evacuation. That just means picking up a passenger..
1983 TV ad for Lisa with Kevin Costner, "I'll be home for breakfast."
https://www.youtube.com/watch?v=kJRx79sl1yk
I doubt it. It feels more like the end of an era.

All the so called "cool" technologies from FAANG names in the last 15 years have lost its luster.

There's a new set of companies that are ready to take over. The most obvious ones to fall to the wayside are the ones threatened by ChatGPT and TikTok.

Who knew tech could be trendy?
Not certain, but just 4 apps have mic access here (BirdNET, Discord, Signal, Whatsapp).

What you suggest seems like an obvious feature though. Unfortunately I found if you can't do something on iOS, you really can't do it unless you jailbreak.

That said disabling background access does really quit most (all?) app activity some time after you switch apps. It's not a perfect mitigation, but such is the cost of buying into closed ecosystems :(

Edit: The other answers suggest something else is probably at play, so disregard this.
The data could be used to generate and mail warning tickets to the registered owner of the vehicle, in cases of egregious/reckless mean or a pattern of high speed trips.

Whatever that magic “bad” number is could be derived from crunching one or more of their massive data sets on tolls, driver history, violations, traffic volume, crashes with injuries, etc.

It could be combined with data from a radar camera at the toll reader to verify the license plate for the transponder account, and identify the owner who is nominally responsible.

In some cases where a family/friend is using someone else’s car to drive at highly excessive speeds over multiple trips, the vehicle owner is not aware and may like very much to know!

I don’t see how using transponder data in that way is any more or less Orwellian than speed cameras or redlight cameras. In my US city these levy actual, cumulative $100+ fines on the car’s owner.

These are “non-moving” violations, so the only impact on driving privileges is from failure to pay the fine.
This is Altman selling snake oil. As of yet there is no evidence of this on anything beyond toy examples. And these gigantic codebases are anything but toys.
If you can't host your own server you have not really bought the game and are up for all kinds of mat pulls like this.

Old Minecraft is an excellent example of owning the game. Earlier than that it was the norm.
Better link... https://leanpub.com/gidti
A bit more than just “some” luck needed for one of those photons to be emitted straight into the other person’s pupil!

The angular diameter of a human pupil (~5 mm) at a distance of ~2 m is about 0.2 degrees, taking the small angle approximation. So the area of the pupil is maybe 0.04 square degrees, or around one millionth of a full solid angle (~41,000 square degrees).

Assuming a spherical isotropically radiating human, the probability of hitting a pupil from any distance is thus pretty unlikely.
Cocaine is schedule II. You can get a script for it. So the thing you say not only exists, but such a person could hypothetically legally own guns unlike the pot user.
Technically, you should be able to write something uniquely terrible like this ;)

return (
<div>
{(() => {
const barStuff = bar(stuff);
return foo(barStuff);
})()}
</div>
)
I agree.

I'm afraid these pipe operators will become like ternaries and will tend to produce "smart" lines of code which are difficult to parse at first glance.

Temporary variables are great for writing obvious code which is trivial to parse when reading.
That's almost worse. I think I'd have to break out pen and paper to figure out which of those things end up returning arguments to function "a".
Autism is described to not affected as in missing "filters", the inability to process faces for example or to shut out noise. If the noise level is higher for sound, why should the noise levle for visuals not be higher and thus percieved lightsources as small as a photon be visible.
I wish for you to experience the terror the store owned endured and report your findings afterwards.

Will be an interesting read, for sure.
Thanks for sharing this! It's quite the motivational kick for me and more people need to see it.
Dart could have been our savior.
Paul GrahamYou can tell what people want believe by their standards for evidence
At 10 GB/sec it would take ~800 ms if you were trying to resume a process that needs 8 GB and was entirely swapped out, assuming that all 8 GB have to be present for it to run. (Add another 800 ms if it has to entirely swap out 8 GB of the previous process to make room, unless the SSD can overlap reads and writes).

But most big processes don't need everything to be present in memory to resume. You just need to bring in the code and data that will be used in the short term.

10 GB in a second is 1 GB in 100 ms or 100 MB in 10 ms or 1 MB in 100 µs.

For many programs, especially GUI programs, you can maybe swap in enough for the main event loop and whatever is being actively worked on in a couple ms. Then as the user continues working you might have to spend another ms or so when they do something that needs code or data that wasn't already brought in.
SQLite's Hctree Documentation Wiki
I'll start by just saying I've never introduced property tests without finding a bug in either the specification or implementation. I have repeatedly spent time figuring out where the bug was in my property testing library before realising that it was correct and the obviously correct code I was testing was actually wrong.

I often find it easier in tests to start with the default strategies, then in the test construct the world. An example would be instead of creating strategies for user accounts and monetary transfers I made list of (integer, integer, integer) and interpret that as (from_account, to_account, amount).

You could have some assertions like (I'm afraid I don't know what benefits adjustment means but I know it's just an example)

* This benefits adjustment will always be 0 or positive

* It will only ever return a value or raise one of the following explicit exceptions <- "my code doesn't crash" is a good base assertion

* Benefits adjustments over longer periods are never less (e.g. adjustment for the time range 2020-2023 >= 2020-2021)

* If I create a second organisation with employees, the result of checking the first one never changes.

Your tests don't have to check exact results, otherwise you end up rebuilding the logic you're trying to test just to work out what the result should be. You can check general properties that should remain true.

You can extend this out as well making it more stateful in a sense. I built a UI library for TVs and programs using it may add and remove elements at any time. A powerful test was

1. Given an empty UI

2. And someone makes a series of API calls where each is [add_element(...), remove_element(...), user_left(), user_right(),...]

3. One and only one element is in focus

And another

1. Given an arbitrary UI created with those calls

2. If the user moves right and the focus changes

3. Then when the user moves left they will go back to the item they were previously on

It was very hard to write the library such that it didn't do what we wanted and passed these tests. I found a case where we had an explicit unit test and part of the spec that wouldn't pass while these tests were passing, because the spec was inconsistent.

These tests I think were actually clearer to write than a series of explicit cases too.

> Will it hit the database a hundred extra times to cover combinations that don't matter when I could have just enumerated ones that do?

Yes. The benefit is in trying things you think probably work but don't actually know they do, and cases you wouldn't have thought about but are totally possible. They're not a replacement for explicit tests, they're another tool.

I have had them failing showing there was a problem in some text extraction, which boiled down to the fact that lowercasing a Turkish I in python at least results in more than one character, so positions in the text after it had been lowercased were not the same as before. I had absolutely not considered that.

A finishing thought - if you can't say a general property that should remain true given some arbitrary input, how hard is it to understand what your function will do when you see a call to it?
It's easy to let the feeling of being overwhelmed make things seem harder than they need to be. This is an excellent way to view the problem (or any problem, really).

I'd emphasize that 'I guess I'll go back to school' is probably not a constructive thought. It is fine to go back to school, but it should be a tool to get to your goal. If you have no goal, school (and more debt) probably isn't going to help.
The second amendment is one of the few exceptions rather than the rule. It is difficult to argue for inclusion in "the people" who have the right to bear arms when excluded from selective service and from the definition of the unorganized militia.
While "extreme outlier" is probably true, here on HN many of us are extreme outliers. So while true, at least he's in good company.

I am on the road to de-Google my life, or at least add some backups in case of Google locks me out of my account. On HN I've seen articles about people who have been locked out of their Google accounts based on 1) taking a picture of a boy's genitals intended medical purposes, 2) submitting a chargeback for a Pixel phone that never arrived, and 3) unknown reasons, likely Google's AI incorrectly flagging an account.
They are working on a git replacement, got (Game Of Trees): http://gameoftrees.org/

So it looks like they are going to move on from CVS eventually.
Part of the reason for this is also that California (and I believe PNW) do not have pipeline access to the rest of the continental US, so any oil shipped from other states would have to either be shipped via rail, or at least through Panama if by ship.
It's interesting how many laws need to be selectively enforced because consistent enforcement would enrage people.
Then don't do that.
At some point those sequential integer ID's will become so long they might as well be GUIDs. Of course you could "compress" the integer using some kind of encoding scheme similar to base64. Then your long integer becomes a few characters.

... Maybe though. Even ID's in the millions are probably easier to read than a long ass GUID.
Interesting, I've always wanted to go over the opposite direction (probably won't happen). What made you do it ? Somehow high level programming feels not as good as low level to me.
For well developed industries, I agree that employee representation is a good thing.

On the other hand, America's friendliness to capital has lead to funding companies that end up competing for software engineers. This is part of the reason why developer jobs in the US tend to pay twice as well as those in Europe.
Yes.

I was 30 when I took a major step back to reevaluate. I had some positive professional experiences that I was able to use as building blocks, but I was severely underpaid and underchallenged. I was on the road to nowhere, and certainly not retirement.

I gave myself a year to explore new things and not be an employee. I traveled, lived outside my home country for the first time, learned about startups, taught myself new tech, explored small business ideas and went on a lot of long walks. It was me time and it was glorious.

When I came back to the working world, I found I had a pretty radically changed perspective and I pivoted into a tech career. I have built it up over the past 7 years and now am in a fantastic niche!

You are never too old to redefine yourself and the world has no shortage of problems to solve, but a huge shortage of people willing to really solve them.
If you consider a nobody to be a Judge, Senator, and Vice President.
My father-in-law went from rancher to engineer to salesman to minister to writer, the final change in his 60ies. It's never too late.
I like that age range bounded failure recognition. I can relate, I call them the wasted years of my life.
Thank you for sharing this. It always felt like I couldn't complain when, by all appearances, you have a reasonable job, strong industry name on your resume, and golden handcuffs. But mental imprisonment without autonomy, without ownership. Can be truly grating.
The game is called Squad (milsim FPS).

milsim = military simulator
Let's assume we could solve the whole problem just by making changes in the west. I don't actually believe that. But let's just agree.

So now what? You need to get 1.2Bn people to radically reduce their standards of living. You need them to do it immediately. You need to change EVERY aspect of people's lives, from transport to housing to jobs. And you need them to volunteer and like it and do it despite the fact others continue to increase their emissions. Whole regions, countries even, will have to radically change their whole economies (Norway will have to back to being a fish and mobile phone based economy?!).

Does anyone think that will happen? Anyone? Really?

Developed countries won't do it. Under-Developed countries wont do it. The Rich won't and neither will the poor. The young won't and neither will the old. And that's without getting into the fact you need Many If Not All of those groups, not just some.
Don’t forget that Baldwin (who I adore as an actor) has been vocally and voluntarily ignorant of guns and safe gun handling. He’s been one of these “I want nothing to do with them because they’re so dangerous, so I refuse to even learn about them and how to handle them safely”.

I hope this tragedy serves as a lesson for those who are “anti-gun” who seem to think there’s nobility in being willfully ignorant about a simple mechanical device.
Israel's Ethnic Weapon? (1998)
I'd guess that the research you mention was focused on fairly narrow ranges of speed, road conditions, speeds of the other motorists, etc.

Vs. user everly related that his father was doing well over 100MPH. Even ignoring all other factors, the duration of inattentiveness needed to cause an accident, at extreme speeds, is far lower than at legal speeds.
The cost savings would be enormous, and it's already 90% there.
Poetic but misguided. The Google of 2005 didn't have so much fat to trim. When you have 150k employees, there's no escaping it. Not everyone is going to be hungry, and certainly not interested or in a position to build things 100x better. Many are happy to collect their paycheck while doing 20 hours of unambitious work per week.
They have some, but are they producing them in significant volume? Most car makers have some models, but seem to be having trouble scaling them up.