skysight-inc/HackerNews huggingface dataset:
This is an often used example in defense of not writing comments but in practice I rarely have encountered an out of date or misleading inline comment. In my experience, everything in code tends to stay up-to-date because it is often written and reviewed by multiple people who have some incentive to keep it correct. It's other documentation outside of code that frequently goes stale.
Chat apps are not documentation. What you are describing is just a moronic way of doing things and absolutely not documents for everything.
Fun facts, apple fruits were originated in Kazakhstan. The progenitor of the domestic apple namely Malus sieversii species is now also threatened with extinction in Kazakhstan's forests [1][2].

[1]http://www.bbc.com/travel/story/20181120-the-birthplace-of-t...

[2]https://www.nationalgeographic.com/science/article/apples-of...
Something I don't see mentioned at all is what I call 'div comments' which are solely for chunk organizing. I use something like the following quite a bit (in python/bash):

# =============================================================================
# /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
# =============================================================================

Doesn't give any hints about the codebase but (at least to me) it lets me see related blocks.
"2 is better than none, 1 is better than 2" is an amazon refrain.

2 is still pretty good for a lot of things though. Specifically, the features and changes you need from the thing can be prioritized
I like ORMs for simple things like basic joins and wheres but in many cases more complicated SQL feels actually easier and more predictable than trying to convert them into ORM syntax. There's a limit to the usefulness of the ORM syntaxes.
Blade, the Uber for helicopters and jets, had a fake spokesperson for 3 years
Triplebyte was basically friction. It didn't help you skip the onsite and instead forced you to do two onsites, once with Triplebyte and once with the hiring company. It didn't make sense to ever engage with Triplebyte.
Why are you being forced to use ORMs if you don't want to and they're not the correct tool for the job?
One of the biggest issues here is that they flagrantly aimed to mislead the consumers.

They switched drives for an established line with dramatically different performance characteristics. They then proceeded to avoid declaring this, nor did they document this in a publicly available manner, requiring external independent investigation.

This is not for enterprise drives either, this is for consumer nas drives and they're marketed as such. It's pretty absurd to change an established line of products in such a manner that it no longer functions similarly in its original use case, while continuing to advertise it for that same case with absolutely 0 disclosure.

Hell, when questioned about it, they avoided providing information on which drives were smr. In what world is "buy it and find out the specs for yourself" a reasonable standard of documentation?
I just used this formula in code this last week, and I thought “hey, I recognize that!”
Seems like they are concentrating more injuries on fewer people as more of the work is automated.
I think it does. I'm not just talking about politics here, though I do think company size and level of politics are correlated. I'm talking about purposefully designed internal competition. That's very rare to see at smaller companies.
It’s risk vs. efficiency. Duplicating work lowers risk at the cost of efficiency. Without redundancy, the market is unstable.

Look at the pipeline shortages of the past year. A chip shortage screws up many industries because all eggs are in one basket. Farmers have government incentives to overproduce for to prevent food instability.

A company always has competition due to promotions, by the way. Competing at a team level makes sense for R&D, since products can end up different. But I’m not sure how it makes sense for a big, resource heavy project.
Amazon is still a top 1% SWE employer.

Note: I do not work for Amazon, and never plan to. I was considering it prior to making it into FANG.

Unless they offered me a bunch of money, I guess. Like a million dollars year.
Internal competition can be ok if the cost is low. For example, having multiple ‘two pizza’ teams working on the same problem domain can reduce risk and help explore the solution space more quickly - multiple paths can be explored in parallel.

Knowledge can be shared or teams merged when at least one approach is found to be successful.

The problem in the article was that the competing silos were very large and expensive. And it sounds like a tribal atmosphere, where the effort of the competing silo was derided. That seems orthogonal to competition: competition can be friendly with the right framing from management.
Would a data driven approach help reduce the number of interpretations of what the problem being solved actually is?
Designing a URL-based query syntax for GraphQL
Yes, Mongo can now validate individual documents using JSON Schema.

Most people are still better off with an RDBMS
"And, look, if the casino gets robbed, and you are chilling in the lobby, you’re gonna get robbed too. Obviously you’ll be sad about getting robbed. You came to gamble, maybe to get rich or else to have fun losing your money, and getting robbed does not satisfy either of those desires. But it could be worse. You were … at the casino? You were mentally prepared to lose that money anyway.

Similarly the expectation for anyone trading crypto surely has to be that it’s a risky volatile asset class where you can lose all your money in a variety of exciting new ways, and if you are parking some of that money in dollar stablecoins some of that expectation ought to carry over. If you want to put your money somewhere safe, there are banks and money-market funds and Credit Suisse supply-chain funds, and if any of them go bust then that is a potential financial-stability problem. If you want to put your money somewhere safe for crypto, there are stablecoins, and if any of them go bust then that is a brief distraction from the crypto exchanges losing their customers’ money in other ways."
Really dislike active record style ORMs. Even if the entities are proxies w/ some magic (e.g. lazy loading), they should still read like plain records in the code, and be programmed with a data-first style. Because methods accumulate on these active record entities, I’ve found devs tend to treat them more “thingly” than just data projections. The user doesn’t save itself. It’s just a row in a database.
India has been used in the English language for over 1,000 years, and in Latin and before that Greek for at least 1,500 years before that, along with Indian and its equivalents in other languages.

This was of course well before anyone used the word "Indian" to refer to Native Americans.
Kazakhstan’s forest is the birthplace of modern apples
The premise of an ORM is that you will be saving time using simple abstractions.

But in reality, those abstractions will be leaky, and you'll be spending significant time trying to understand what the ORM is doing, and finding workarounds for ORM problems.

Also, each time something fails, there will be one more moving part to troubleshoot.

Once you troubleshoot your problems and analyze what the ORM is doing, you'll realize that the price you paid for convenience is very high: you have sold your future in exchange for some "convenience" that actually gives you more work to do, makes everything slower and you didn't even need.

Why? Because most ORMs try to target every database, so they offer a feature set that is the lowest common denominator for all the databases they support. Does that sound like a good idea? no.
Coder Climate Action
I don't know anybody that's done more leetcode problems than me and has gotten a good offer. I do know plenty that have done far fewer than me and have gotten a lot of them though (at FB, Google etc). I also know a few that have done orders of magnitude more and yet still work at IBM-tier companies.

"Grinding leetcode" is not as easy you you seem to think. To low IQ people like me, it's literally pulling teeth because it's just a reminder of how stupid we are. Yet I've still done a few hundred, not that it has helped me get any impressive offers. I've never seen any evidence that you can just learn these things - most people just seem to practice a handful and then nail a bunch of offers.
Left out the 'just don't walk in' option.
I used to write silly or rude things when testing, however I once found out a client of ours was getting tagged onto all of my emails via bcc, From then on I always use "This is a test, Please disregard"
As much I prefer to you such offline solutions, does anyone know any non-invasive way to overlay live traffic conditions to calculate best route to destination?
It's my total compensation, and unfortunately I don't think many people agree with you. It's a pretty standard TC for new grads even though I'm nearly 3 years in.
my principal argument against using step functions is that it couples what it is ultimately business logic (your state machine) to a non-programming language that has no test framework other than E2E integration testing.

I'm legitimately interested in being talked out of this objection, since I think the visualization component is where programming is headed in the long term. Any takers?
It appears there are a lot of people who say otherwise.
Possibly some fake "#1 is privacy" VPN company will continue their service with FBI logging for profit.
Ginger Minge
Someone I know who doesn't have and never has had an HBO account received one.
Why can't someone "paint the tape" as they called it in olden days?

If it's possible, what would make it difficult? Or what would make it impossible?

I kind of thought that there isn't normally any requirement for any particular volume of trading to set a price.
So, we buy nothing?

Even the domestic products basically say "Assembled in the USA"

( from parts made in China)

But the sad reality is that the raw materials needed for a lot of the things we take for granted in everyday life... require an astounding amount of environmental destruction, something China is still more than happy to do.

I'm not saying we need to loosen environmental laws in the States, we need to instead completely overhaul the way we manufacture things to take as much advantage of recycling as we possibly can.

And nobody cares to do that. Why would we? It's cheaper in China, after all.
If a business is not willing to treat workers decently and can't afford to pay the going rate to attract and retain the talent they need to support their current activities, then they need to adjust said activities to fit within their financial capabilities.

The difference for workers between $16 an hour with micromanagement and $22 an hour with sane working conditions is massive. Amazon can treat workers with an ouce of dignity and a 40% pay bump, but they choose every day to have a terrible reputation.
New PoE+ Hat Problems: Responding to the Pi Foundation
I think you're selling yourself short. If you're a generalist, there are plenty of startups who need exactly that. FAANG might not value all of the experience you have, but there are a hell of a lot of companies that do.

I would also say that the best businesses hire failed founders. They're among the most valuable early employees imaginable.
HBO Max intern accidentally sent an integration email test to users
Individuals are trustworthy or not.

Companies, especially companies in a state of massive flux like a fast growing startup, have no fixed traits like trustworthiness. It depends on the leadership team at the moment, pressures from external stakeholders, how bonuses and other incentive structures are designed.

I can tell you from personal experience that you can start out with the best intentions but sooner or later the power dynamics will change and then suddenly "Don't be evil" is just a joke meme.
But basically, if you have some horrible effects from the thing, and by some herculean effort or remarkable circumstance you're able to work around it, then by definition you don't have a disorder and it's not treatable.

Heaven help you if the effort or circumstance becomes unsustainable, when you could've had years to treat the underlying problem but medicine denied it was a problem.
But the AG gets to be the public face of defending it. It raises his profile at an important time. The whole thing was orchestrated by Schmitt's establishment-Republican allies in the MO House and Senate. They're afraid Greitens or McCloskey might win the primary, which would mean a Democrat might have a chance at that seat.
Your top 1% feels pretty expansive to me, I don't think many people consider it to be that impressive. I've talked to a lot of people about this, and they consider working at Amazon to be pretty similar to going to a state school - it's not "bad", but you can tell from the way they talk about it they think people that go there are objectively inferior to them.
Why can’t you just talk through your comp ranges and let the candidate decide whether that works for them?
I'm surprised nobody's mentioned Deming yet. This was one of the things he contested very strongly, along with

- individual rankings and bonuses,

- barriers between teams,

- fear as a motivator,

- empty goals and slogans without processes to support them, and

- perhaps worst of all, short-termism and lack of continuity.

There's much more in his books, which really did change (I want to say improved) my understanding of how good work happens.
All you have to do is look at who was in power in 1984.

https://en.wikipedia.org/wiki/List_of_1984_British_incumbent...

(TLDR: Conservatives.)
Yep, and most projects probably don't switch underlying DBs so that part of the allure of an ORM is wasted
After a bottle of wine I took their test once for fun. They made a number of attempts to reach me.
I think the British bear some responsibility for the current situation in Israel/Palestine as well, given the region was a British mandate between the wars. See https://en.wikipedia.org/wiki/Mandatory_Palestine
https://asitoughttobemagazine.com/2010/07/18/score-voting/
Yup, same here. Not sure how I was ever on their list :/
Just try. You will be surprised how often (not always) there's an alternative. Then, even if you pay a bit more, in most cases you'll be getting better quality too.
This. I've been rediscovering trails in my local area and recording them with my GPS watch. A quick upload and edit into OSM and hopefully others can make use of it. None of this level of detail is available elsewhere.
keep sharing this type of info

https://www.myaarpmedicare.work/
I received it. and immediately felt for the person who accidentally sent it. it happens.
I have a question about hiking maps.
Suppose I want to climb a hill, down a valley and back up, I "do not" want a straight line routing as I suppose osmand does it last I tried.

Well osmand does show elevation data but "distance" for up a slope is more than "down a slope"
Survival stress also impacts liver function leading to poor lipid metabolism which in turn can impact cholesterol absorption and lead to cortical thinning. Which is also an effect that we see from methamphetamine use in various animal models, which by it's nature of being controlled trail seems to exclude the stress factor.
https://pubmed.ncbi.nlm.nih.gov/28689763/

I would agree with you in general, but there are situations where prescribed methamphetamines also lead to cortical thinning when not used as recreationally. This seems to suggest that stress may not be the entire player here https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3870784/

It was likely decided because of the dose of meth found in the persons systems that correlates with various findings on dose-dependence https://jamanetwork.com/journals/jamapsychiatry/fullarticle/...

If you would like to read more about PTSD findings as it relates to stress and liver function, I would be happy to expound upon the way that corticosteroids impact gut bacteria that directly affect FXR metabolism and bile acids and further lead to cortical thinning. https://academic.oup.com/cercor/article/30/2/575/5521088

Its really fascinating how a drug like methamphetamine impact neuroactive steroids that impact the same pathways tha stress does. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6862925/ We've been able to reverse it in rats https://www.sciencedaily.com/releases/2013/10/131007093739.h...
My colleague did it once. He accidentally used an incorrect API key and sent a garbage push notification like "ohai" (don't recall exactly). We were a pizza delivery startup.

Few hours later, we sent another notification as an apology.

"Oh Hi. Use this coupon code for 20% discount: OHAI20"

Good'ol days
Paint Website – JavaScript
Anyone can throw dirt on identified people who will suffer real world consequences from anonymous internet throwaway handles and unsubstantiated claims. Why should anyone take anything you say as credible. You and your friends should either raise formal charges of harassment or at least come out with your real identities. Otherwise this smells like opportunistic attempt at cancelling someone.
> In a game for example, user-inputs and other events can be produced in Kafka, then reconstruct the entire game-state by reading and processing the kafka-stream from start to finish.

This is called event sourcing.
Considering the headlines I'm not sure the drink maker would even care.
The other side of this is that some of us do end up trying to fit in, hiding it but not well enough... Just come off as assholes or socially inept and hurting peoples feelings a lot more than if you were obviously on the spectrum,
Stock price for most of the FAANGs has gone up by about 2.5x in the last year. If you had $200K base, $50K bonus, and $300K stock compensation in 2019, you're now making $1M today. That's roughly L6/E6/ICT6 (staff) level.
On queues and contract-enforcement through hair in the Qing dynasty
There are a lot of insufferable tech leads that make the decision. I know how to spot them because I’m insufferable too. My only saving grace is that I make a deliberate attempt to always say to myself ‘would this feel like cognitive overhead to others?’, and walk away from picking that fight.

Many people don’t do that. I’ve been on projects where every other week the tech lead shows up and adds more and more layers to the stack. Unless you want to constantly fight, you just let it go and deal with it like a professional. Otherwise, I would have reached across my screen by now and slapped someone.

I can tell you this, there’s someone out there that’s going to build something (at an actual paying job with other humans) with bleeding edge Deno, DenoDB, Typescript, AWS infra sometime very soon for no good reason. There’s not enough slaps in the world to stop them. The fear of god does not exist in these people because no one ever says shit.
#!/usr/bin/python

How exactly is the above supposed to work when /usr/bin/python doesn't exist. If Apple chose to break the #! contract by doing something else, how would you feel about that?
I think the problem is that many people seem to think of rust as a back end language to begin with. And while there are crates that aim at that, the big problem there is that rust itself is not meant for that and it is simply bad at it. Rust is a systems language and this is where it shines. I'm currently using it for micro controllers and sensors and it is a perfect fit in this space. It genuinely feels like someone has given me a set of precision tools after doing everything with sticks and stones in the form of C. The reason why I think it's a bad choice for back end is not because of the limited ecosystem either. Take actix for example. In order to handle resources, your codebase inevitably becomes a huge pile of Arc<Mutex<_>> and Arc<RwLock<_>>s and mpsc's and sooner rather then later this end up biting back, most commonly in the form of an endless rabbit hole of read/write locks. And when I first saw sync/await in the rfcs, that's exactly what I feared would happen. Tokio is another elephant in the room that needs to be addressed: a ton of crates depend on different and completely incompatible versions of it. Most people get this wrong when they get overexcited about rust. And then there are those who get it right. Full disclosure, I haven't tried it or gone through the source code but InfluxDB IOx seems like a perfect choice for rust and a good use case for async/awaits.
Find me a smartphone that is made in the US with no Chinese parts, then.

Or anything that goes into a laptop.

Or desktop.

Those are the primary components/products that China needs to destructively mine and process raw materials for. Until we recycle electronics as a standard instead of a "we care about being Green(tm)" gesture... manufacturing is always going to go where it's cheapest.
Sometimes a smell you should use multiple files or classes.
Afaik, Nginx used this hack for aio on FreeBSD many years. It is superrior to aio on Linux. That is why Netflix used nginx together with FreeBSD.

Now nginx could use threads for file io, and linux file performance became ok as well.
I think it’s because of the different actions you might want to take after the fetch.

1. Parse the data as json

2. Return it without parsing

3. Modify some other part of the response but never parse the body

4. Turn around and stream that body into another fetch without parsing it.

Etc. parsing it and loading a large response into memory may not always be desirable so it must be explicitly done with await res.body.json().
When I teach coding, I used to have a similar lesson around commenting code: "don't tell me you're creating a variable. I can read the code. Tell me what the variable is for."

I still mostly abide by that, but I've had an opportunity to write some larger programs for the first time in a few years (a hazard of teaching programming is you find yourself working with pretty small programs), and noticed that the comments started become a part of my conversation with myself. I'd drop in quick reminders for what I intended to do in a function before going moving on to something else. When I came back and then wrote the code corresponding to the comments: well now it's redundant, but it wasn't. I stopped cleaning that stuff up (I'd clean it if I had to present or publish it, of course). The comments kept some context of my thinking when I wrote it, what order I did things in, etc. It would be gibberish for another, but it wasn't for me, especially after a few days, or even longer. (Note: I'm a pretty fast touch-typist, so muttering to myself doesn't invoke much of a productivity cost. I also note that commit messages are another great place to capture that sort of context for yourself, and not using that opportunity is a sin.)

So, I've changed some of my greybeard aphorisms around commenting: "When commenting code, consider the needs of the person who will be maintaining this code. Who will probably be you. Be nice to future you."
I found printed documents to be much more helpful than using Quip (or WorkDocs).

Quip / WorkDocs means you start getting comments, highlights and other things from people -- which are then visible to everyone else at the meeting.

If there was a way for you to personally highlight your concerns during the read-through and then the presenter could display them all at once that would be great.

By not having that ability, it tends to mean the person with the "most authority" has their comment taken seriously and addressed straight away -- just like having the "loudest voice" in a meeting works against allowing everyone to contribute.
It feels like it's been ten years since I fiddled with this on FreeBSD but EVFILT_AIO worked surprisingly well with aio and kqueue on spinning disk.
That's the author of the article in this thread. Are you mixing things up or are both of these things separately about him?