skysight-inc/HackerNews huggingface dataset:
Just write a test case that "user 2" can't access "/order/WEB-nnnn" from "user 1" and that works too. You should have this test case anyway, even with random IDs. They can provide an extra "defence in depth" bonus, but they're of course no replacement for authentication checks.

You're going to need some type of readable relatively small ID anyway, because things like "Hi there, I have a question about order b1a354c5-ac2b-4990-a189-1f2b4f537b09 I placed on your website" doesn't really work.
In the dawn of rounds and rounds of layoffs in the tech sector. How would one advise a new CS BS graduate to tread?

I've been told that young engineers are still in demand, and to look for opportunities in small startups, but seemingly out of the applications, merely no one has moved forward or replied back.
I think it is maniacally evil to put peoples housing, healthcare, and ability to remain in the country at risk. It is inherently throwing 12,000 households into sudden insecurity. There better be a better reason than “whoops economic headwinds that we didn’t budget/prepare for”. Peoples access to food, housing, healthcare, and not being expelled from the country should be valued way more than this.
what evidence do you need?

unionization normalizes pay across workers. you trade upside for being a “superstar” for job security. it’s not a controversial opinion.

tech compensation is not normalized. there’s pay bands but it’s historically been wide and “superstar” candidates are enticed with highly variable equity comp.
NASA nuclear propulsion concept could reach Mars in just 45 days
Idris: A language for type-driven development
For all unemployeed or fired of course ;)
Absolutely (once your business reaches a certain scale).

It can give competitors the ability to estimate the size/success/etc of various aspects of your business.

This was a major motivation for a certain online retailer to generate non-sequential IDs.

Some other interesting examples in an old HN thread: https://news.ycombinator.com/item?id=7278198
I mean maybe not 10x their salary, but don't be cheap. Pay them like your top salesman, not like an accountant.
While I think you're right and GE is a fine example, I'm not so sure with IBM. They seem to really have lost any direction or vision of what they actually want to do.
For times when you need distributed generation, I’ve worked with a system that I liked. Server kept track of a sequence. Clients pull out batches of 1000 or so and then use them up. When the client starts to get low on available numbers it fetches another batch.

The ids generated are nice readable integers. Generally in sorted order, though not a guarantee, and you end up with gaps sometimes if a client doesn’t give out all its numbers before it’s restarted.

Would anyone be interested in a super robust version of that as a service?
They're not very interactive.
🥺: the best sudo replacement
I agree with you. I think the purpose of a company is to help ensure social stability by providing productive and meaningful employment. If the government is doing its job and ensuring an environment in which firms can thrive (financial stability, infrastructural stability, social stability), then the firm's responsibilities should mirror those: take care of employees and customers by treating them fairly (financial, social stability) and the physical environment (infrastructural stability).

Just because Milton Friedman claimed that it is the main objective of a company to maximize shareholder value[1], doesn't mean it is true. Milton Friedman was a bad dude, and part of a bad school of economics[2].

[1] https://en.wikipedia.org/wiki/Friedman_doctrine
[2] https://en.wikipedia.org/wiki/The_Shock_Doctrine
i. missed up the code

digits = '0123456789'
patt = "foo=" SPAN(digits) . num
while line = INPUT
if line ? patt
OUTPUT = num
endif
end
I love this idea. I often find getting a big group together for a BBQ or something is great for mixing social groups, cross-pollinating friends, and seeing people I don't often see - the downside is I don't tend to get much 1 on 1 time to really talk with friends, and often people can't make a specific time (especially as we get older). I also have a fair amount of friends who are introverted or have social anxiety and don't feel comfortable in larger groups, and this feels like it would benefit that too.
I wonder if their attitude is "hey, you clicked on it once buddy. chances are you're a little curious, and people really engage with this material"
Not only that, but layoffs are not precise.

People on my team were fired today. They weren't my lowest performers.
It would go a long way towards making such a service acceptable ("I'm only paying for Blue for Tweetbot!"). The other option would be to charge developers for per-user access to the API, which developers could build into subscription payments (eg: Twitter could have charged Tapbots $2/user/month for access, so Tweetbot would have to charge their users $31+/year on iOS).
Python or JavaScript Library (personal project) Ideas
I'm taking a class that requires us to build a "tool or a library" (in Python or JS) rather than an application. The issue is I don't really know what I'd be interested in creating as I've only ever built applications/websites. I'm interested in classical music, halal food, UFC, and coffee brewing. Would anyone be willing to throw some general ideas in my direction?
I dug up the original story* and read it for the first time just now, it was a great read. I particularly like the imagery of Apple and Google dealing the deathblow to that idiotic app-rental scam the carriers had been running

It seems like we've pretty much come full circle in the 10-15 years since then. I wonder who'll be the ones to put old Google to sleep..

* A PDF of it popped right up in search results
I think there are two categories of IT engineers (to include not only programmers). There are 2x engineers, and there are 10x engineers.

2x engineer is that guy to who you will go when you have exhausted all other simpler options (or go immediately, when you learn to optimize solutions), who will fix or guide you on a level others can't match. And he is probably 2 times more productive with his tasks than median level, or can be, depending on his time commitment. And I think there really can't be more productivity increases above these 2x times. Maybe you can find some unicorns, top of top, who are 3x times more productive, but that's about it.

10x engineer on the other hand is the one who is most vocal about any related or unrelated issues to him, who goes to every smoking break, to every party, to every seminar and tech talk and himself gives talks. He in known across the teams and even projects and the first to be promoted, usually along leadership track. He can also be 2x engineer in fact, but the rest of the "Exes" comes purely from self advertisement.
I really hate the phrase "from scratch" in the title.
Gauche Scheme is a beautiful and mature Scheme implementation that comes with a large supporting code base.
I don’t think you can choose to apply a different meaning to Google, though. Ad tech is the Platonic ideal of a profit-focused enterprise, and even someone who’s not personally working on ads has to understand that’s where their salary and benefits are coming from.
The legal minimum wage for tipped employees is far lower than the legal minimum wage for other people. This has been rolled back in some localities.
A bright line doesn't only make it clear what's illegal - it also makes it clear what's legal.

With a less clear law, how would you know if your speed was legal?

I think I'm a reasonable person and while sober, well-rested and attentive on an empty freeway at sunset on a road drying after 0.1 inch of rainfall in the preceding hour with no other cars in view driving eastbound at 70 mph would be reasonable.

But what if a cop is having a bad day, or has a quota to hit, or doesn't like my bumper sticker, and decides the legal limit is 65 mph because the setting sun might be dazzling in my rear view mirror?

And if I don't want the cost and inconvenience of going to court, should I go at 60 mph instead, just in case?

The reality is the courts are very slow and very expensive for decisions that are being made millions of times per day.
At least in my region, the phrase is used about evenly to refer to both:

- Parking in the roadway next to the row of parallel parked cars/in other ways such that parked cars are blocked in

and

- Parking a single car such that two parking spots are obstructed (unjustifiably so, e.g. nobody would likely talk that way about an RV taking two parallel parking spots).

The difference in usage seems to depend on whether you (and your local cohort) spend more of your time parking in parking lots or on the street.
I guess the thing is, why would it do malicious things?

I think if an AI or AGI could understand the world and have motives to do bad, it would have an ego or an identity to discriminate between itself and the world. Then I guess it needs an intrinsic will to survive like a biological creature? If it did have this drive to survive, I suppose it would also need to experience fear and pain of some kind, or else it might blow itself up, or build a better version of itself which might destroy it, so it would in some ways it might exhibit similar inhibitions as all other conscious and or biological beings.

On the other hand if we build something that's super smart, and doesn't really care about or understand survival, it might just turn itself off for not really understanding it's purpose.

The most dangerous thing I feel is humans using these things as weapons.
Facebook, nor Google, is firing people because of activist investors. They're firing them because they just way over hired people recently, and they have way too many people for what they can adequately put to good use given their size now.

Feels like everyone wants to put a semi "conspiratorial" twist on these announcements when it's pretty obvious what the underlying driver is.
Pipe Operator (|>) For JavaScript
You might want to...reread TFA. Perhaps you missed the last few paragraphs the first time around.
I'm 43 and partying a lot on a beach in Thailand. I know many other software engineers and testers here who are doing the same, although the climbing around here (Krabi) does compete with our time. One friend works on corporate software while DJing psytrance on the beach.
The Treasury could simply mint some trillion dollar coins, that is actually something they are authorized by law to do.
How much does aging hurt a country?
Amazing project. Is everything open source? Are you planning anything for the big enterprise who wants to pay for the service?
You're not detecting the overwhelming majority of photons - only those few with an energy high enough to cause chemical reactions.

If you were constantly bombarded with atoms at the same energy level (1.5-3.5eV), you would notice them as well. This just occurs less frequently (unless you are on fire).
I like the sports analogy to explain a 10x programmer.

A 10x programmer is the product of talent, discipline and environment. Same as a professional athlete. The environment is what differs.

In professional sports, the athlete has a team supporting them to maximize output (coach, doctor, assisant, etc). They are free to focus on their art. Talent and discipline then make the difference.

In software the programmer is at the mercy of the product manager, other developers, management, etc. Because software is more than code, the time they spend on improving their talent is interrupted by meetings, compromise and whatnot.

In my experience, 10x programmers are usually entrepreneurs in startups or intrapreneurs in larger companies. They are supported by their environment to allow them to shine. This allows them to focus on their talent and frees their time to code, learn and improve relentlessly over time.
"Took receipt of" ?! I wonder when in the 80's this was ? At launch in 1983 the Lisa cost $10,000 (about $50,000 in 2023 dollars)... Not exactly the sort of thing one casually gets handed!
There is a typo in the title: of -> off.
Seeing a photon is more like seeing a city on Pluto from Earth.
A live-in nanny from a third-world country is very different from a cook (I assume a professional chef) and a live-in nanny.

Still, your friend is upper middle-class. These people, especially if old, went through an “easier” time and built quite a wealth now (doing the same today is practically impossible).
If you own a car you don’t just want it to take you from A->B expediently. You should also want to do it presumably safely, without killing people, following laws, in a way that also keeps the car maintainable. If you want cars to slow down in school crossing zones that’s a social mission.
As an extrovert, that sounds like a total nightmare. Complete isolation for a week would drive me nuts.
I think we can give Google executives a little more credit.

They care a bounded amount.

A rough approximation of how much they care would be the rational incentives to not produce a culture of fear in the regular workforce + the amount of being nice to employees that Google can afford due to their dominant market position.

Similarly, when I shop for employers there are fringe benefits, cultural differences, etc that matter - but they aren't going to matter in the face of another $100,000 in salary.

Definitely wouldn't go somewhere else for a few hundred bucks tho.
> COVID happened and we still haven't restarted partying the way we used to

Our reaction to COVID happened a lot more readily than COVID itself.

Playing pandemic has consequences, as it turns out.
I find the fact that you can run this without installing by using docker, I immediately though of running runlike with runlike

runlike -p runlike

This looks like a pretty neat tool, but when I'm spinning anything up non-trivial I usually just write docker-compose files so I'm not sure what use case I would have for it personally.
> but what about our markets and laws makes liquidity in employers and employees work poorly

1. The utter insanity of family medical insurance being tied to employment.

2. Non-compete agreements without full (or higher) compensation being valid.

I’m sure there are others, but those two are a good start.
Laws are written to protect multibillion corporations and billionaires. Prove me wrong.

If we truly lived in a sane society, companies with lax security and god awful security policies would be punished.
Lotsa luck and courage to you :)
Microsoft Digital Defense Report 2022
Email search using the Gmail app on mobile works for you? That's a surprise to me, what is your setup? iPhone/Android, Download all emails / 90 days?

I did rebuild my index, I have a 1TB SSD drive and even excluded external drives.
> There is a frame that wages are decided by the government. There is a lot of evidence that this isn't how wages work

There are literally exceptions built into minimum wage law for tipped workers like restaurant workers.
No, laws for minimum wages across specific industries.

Naturally unions leverage on top of those laws.
I suppose there could be many things happening on the internet that we are unaware of; however, torrents are very good and specifically tailored as a protocol for scientific data and ML.

It solves the link-rot issues that occur due to moving institutions, it allows huge storage for essentially free (ever tried to store 9 TB of training data or CERN data on Dropbox?), and it scales extremely beautifully.

It's really the absolute perfect solution for reproducible research in large data studies.
Pinchai has been a Terrible pick. He made google just worse. Like a passive aggressive leader...
I couldn't find it, but it basically limited AT&T to regulated telecom services, here is some interesting reading on the target.

https://economics.yale.edu/sites/default/files/how_antitrust...
That cargo is not enough, and polyglot codebases either use something else, or have quite extensive uses of build.rs.
It is too bad the risks (criminal) are so high, LSD is an interesting enough experience that is worth trying at least once.
Black and white thought process is what leads to things like minimum/mandatory sentencing which having a lot of criticism

https://www.brennancenter.org/our-work/analysis-opinion/end-...

>imagine trivial court cases hinging on whether a "reasonable person" would drive a certain speed

That's exactly how they cite things like reckless driving
Consider my situation. I passed my Google interview in October for New Grad 2023 and was told that my starting date would be April.

Now I’m most likely not going to be hired and need to restart my job search and this will have derailed my entire plans for the first few months of this year. I won’t see a cent.
You can't just use sequential numbers for credit cards because they have a builtin checksum validation called "Luhn's algorithm"

https://www.creditcardvalidator.org/articles/luhn-algorithm
This list is not evidence that the course is not basic. The word "basic" is the first word on the list.
> Outside of that network effect, I'm completely and utterly baffled by React's popularity. It's the most counterintuitive framework I've ever used. Things like the `useEffect` dependency arrays and the general naming of hooks seems to lack any thought.

This is why it was so disheartening to me to see Qwik try and emulate React in many respects: one of more interesting framework and performance concepts in a while, and they had to go and make it look and feel React-like. Blah.

For what it's worth, I have not tried all JS frameworks, but I think Svelte and Mithril have the best developer experiences of those I've tried.
n = 1, but I've messed up a decent amount and never been fired or even laid off in over 15 years. Never seen anyone else mess up (in an accidental way) and end up getting fired for it, either.
I (speaking as a designer of I Heart LA empathizing with a user) wouldn't have thought to use that character as an approximation of {.
Does this potentially also affect their MVNO resellers?
A "random selection algorithm" - wow, really?
is this the hope for FreeBSD support? great!
900K a year or I walk!
We took the novel approach of having the instructors choose the platform they thought would enable them to deliver the best program. Then we sought to see if we could meet their request, and we were able to. Donors had no influence over that decision.

The computers cost about 40% of the overall budget. We had enough money to fulfill other aspects of the PTO’s program, PE, Art, Music, Dance, (the ‘A’ in STEAM that LAUSD skipped over) Robotics.

This was a magnet school with widely varied socioeconomic family profiles. And the PTO is not authorized by contract with the school to engage in other social programs. But those in need were covered by a) the Federal hot lunch program, and b) LAUSD-funded anyone on campus child or adult could have a free breakfast (of dubious quality, all carb no protein and for example, a 10% juice sugar-laden drink qualified as ‘fruit’) just for being on campus. Going hungry was by choice only. And you would not believe how much food is thrown away from the breakfast program. My wife fought hard to connect with local homeless shelters to send the food but school administrators put the kibosh on that.

So why should we opt for austerity when we had everything covered? Actual parents will always choose the best option within their reach.
The one who is 10x at the expense of their colleagues [...]

The one who is, at most, 1.5x or 2x but think they are (and
sell themselves to the leadership as) 10x [...]

Yes.

The root issue, of course, is that management essentially never has the time or chops to discern the quality (maintainability, readability, performance, correctness, etc) of the engineering work being delivered.

Management only understands timely delivery. Which is crucial, obviously! But considering only quality or timeliness at the expense of the other is of course a dark dark pattern.

Even when management are software engineers themselves, they typically just don't have the time to be elbow-deep in the code their reports are delivering. This is particularly true in fast moving fields like front-end development where you have lunatics running the asylum and standards and practices change every three weeks. And even if your manager does get it, their manager probably doesn't, their manager's manager doesn't, the stockholders don't, etc.

I don't know the answer to this. It seems to me almost impossible to avoid this in a commercial setting unless you have a tiny team (less than 10 engineers?) and the CEO/CTO is a top-notch engineer.

Talk me down off of this ledge. Tell me it's possible.
Sorry to hear about the layoffs there, and everywhere off.

> we were just cut off with 10000 people by random selection algorithm.

Can you (or anyone) elaborate on how that works? Someone wrote something that does "select empolyee_id from employees limit 10000 order by random" and that's who got laid off? It's a layoff lottery and the winners got laid off?

I don't know how layoffs at huge companies work, maybe that's how it works everywhere?
The parties I have are with people whose kids are similar age. We end up playing poker for money while the kids play or we have potluck dinners etc. it was actually getting kind of exhausting so we stepped back but I think that’s basically how it ends up centering around kids.
>"In Idris, types are first-class constructs in the langauge.

This means types can be passed as arguments to functions, and returned from functions just like any other value, such as numbers, strings, or lists.

This is a small but powerful idea, enabling:

o Relationships to be expressed between values; for example, that two lists have the same length.

o Assumptions to be made explicit and checked by the compiler. For example, if you assume that a list is non-empty, Idris can ensure this assumption always holds before the program is run.

o If desired, properties of program behaviour to be formally stated and proven."

PDS: I'd be curious to know about any/all languages where types can be passed to functions, returned from functions -- and even generated at runtime by functions... that is, where the language regards types as first-class constructs...
I've always wondered about why that hasn't been implemented with EZ-PASS too. My assumption is politicians don't want it because they all like to speed, and it's easier to tell a cop who they are instead of fighting a digital ticket.
Quite a few other European countries as well.

It's popular in Italy and the difference in speeds on highways that have it compared to those that don't is significant.

Personally I like average speed cameras. Everyone is going roughly the same speed, so there's much less tailgating.

You definitely don't have people zipping past you going 200km/h+ when you're trying to overtake a truck limited to 80km/h.
1923 cartoon eerily predicted 2023’s AI art generators
good luck - plenty of small to medium sized companies hiring. Hope you find a good one
Well it's complete isolation with your preferred partner. Introverts can avoid draining their battery if they spend time with close people they trust, and can be themselves around.

I compare it to masks. We wear many different masks and they weigh different depending on the company. The masks come off with your close family and friends and it's wonderful. It's actually recharging in some way.
Definitely not just developers; I know a non-dev who lost their job today. Of course, 1 out of 12,000 isn't a very helpful statistic, though.
You know better than the person telling the story, I find that beyond amazing.

What I strive for my whole life is to develop this kind of telepathy which allows me to know events/skills better than people who actually lived them or developed them.
Irresponsible for who? Corporations are in the business of their own interests. Employees are a resource to furthering a businesses goals. They aren’t a charity that owes individuals anything. If you think that you’re being naive about what we call at-will employment.