skysight-inc/HackerNews huggingface dataset:
I don't think that's a good argument. An inexperienced developer can inadvertently do a lot of damage in infinitely many ways, and your example is just one of them. I don't think it's a good principle to structure a code base to protect inexperienced coders from themselves, which is always going to be a losing battle.

This may have been a missed opportunity for a teachable moment:

- The new hire most likely used `git commit -a` without checking `git status` or `git diff`, which is bad practice.

- The new hire probably didn't even know about their global .gitignore.

IMO a better way to steer new developers in the right direction is simply code review, and I'd think even a pretty cursory review would have caught those .DS_Store files.
There are many ways to look at this. Maybe the standard lib of such functions should be implemented as native functions in the language (1). Or as a standard external function library (2). Or people should copy-paste the functions they need and keep in their organization's function library (3). I am sure there are a few more options.

I moved to option 3: in all my apps I include a function library that I build over the years, so I don't start from scratch every time. I deeply hate ("hate speech" example here) dependencies to libraries from all over the Internet due to security reasons, but I copy-paste code when needed to my library after I read, understand and check the code that I copy. The biggest advantage is that some of this code is better than what I could invent from scratch in a busy day and I save the time of doing it right. The disadvantage is there is no way to reward these authors that contribute to humankind.

PS. My function library has functions mostly written by me, over 80%, but it includes code written by others. In my case, every time I need a function I check my existing library first, then analyze whether to write or copy.
You would have that frustration anyway during toolchain upgrades if the map implementation changed from one go version to the next.
The definitions are well defined in theory. How they get applied to specific cases and how they have been perverted over time is the real problem.

Take warrants and probable cause. It's supposed to be that by a preponderance of the evidence that the crime has been committed. The quality of many warrants today seem to completely miss this to the point that many of the descriptions fail to even claim that the elements of the offense have been satisfied. Then we have such a lazy system that warrants foe summary offenses don't even have to be for the correct crime - all that needs to be claimed is that any crime has been committed. That's how it goes when the system is too lazy to give each issue the correct level of attention to protect your basic rights.
> Write everything twice

There's an enhancement in a software I use/maintain that I wrote once and lost (the PC I wrote kaput and I was writing offline so I also didn't backup). It was an entire weekend of coding that I got very in the zone and happily coded.

After I lost that piece of code I never could get the will to write that code again. Whenever I try to start that specific enhancement I get distracted and can't focus because I also can't remember the approach I took to get that working and get lazy to figure it out again how that was done. It's been two years now.
There is a way you can influence a thing neighbors do - just do it yourself so good (also in terms of economic efficiency, besides safety and quality) they would prefer to rely on you instead of doing it themselves.
That idea is incompatible with all mainstream economic science. Economies are not closed systems, wealth can be created and destroyed. This is, for example, why industrialization led to wealthier societies. The productivity gains created more wealth per person. Likewise, you can bomb a city and a lot of wealth will be destroyed.

What you all are discussing is specifically the jobs market, which is a much more narrow issue. The biggest problem with employment is matching worker skill to the available jobs.
Micro-libraries are really good actually, they're highly modular, self-contained code, often making it really easy to understand what's going on.

Another advantage is that because they're so minimal and self-contained, they're often "completed", because they achieved what they set out to do. So there's no need to continually patch it for security updates, or at least you need to do it less often, and it's less likely that you'll be dealing with breaking changes.

The UNIX philosophy is also build on the idea of small programs, just like micro-libraries, of doing one thing and one thing well, and composing those things to make larger things.

I would argue the problem is how dependencies in general are added to projects, which the blog author pointed out with left-pad. Copy-paste works, but I would argue the best way is to fork the libraries and add submodules to your project. Then if you want to pull a new version of the library, you can update the fork and review the changes. It's an explicit approach to managing it that can prevent a lot of pitfalls like malicious actors, breaking changes leading to bugs, etc.
I think the updates are more for bugfixes around edge cases than feature additions.
Interesting to hear about your workflow! Someone else mentioned "./.git/info/exclude". It is something I will look in to and ask around to see who else uses it. Thanks for your comment
> That claim is obviously absurd. If solar power now is cheaper than fossils then it’ll be cheaper to make them with solar energy going forward

It would be absurd if your statement "solar is cheaper than fossils" was correct in a general sense but it's not. It may be true in a limited set of countries like US or Germany but it's not where the solar panels are actually produced. They are produced in China where this statement doesn't hold.

The fact of physics is that energy ROI (how much kWh you can produce by spending one kWh) of coal cycle is much higher than ROI of solar panels. Solar panels can still make sense as long as the ROI is greater than one but they cannot be cheaper than coal unless you cheat (import panels from a country with much cheaper electricity).
More polyglot, yes, but that N has an upper bound, usually not bigger than 3 or 5.

From a similar Fortune space, offically Java, C#, JavaScript/Typescript, eventually C or C++ for native libraries, anything else is bound by specific customer requirements, or Partner products SDKs that require exceptions to the golden rule, like Python for ML stuff, C++ for CUDA, Go for DevOps, and so on.
C assembly, systems programming.
How does LISTEN/NOTIFY compare to using select for update skip locked? I thought listen/notify can lose queue items when the process crashes? Is that true? Do you need to code for those cases in some manner?
Exactly, sometimes it takes me some minutes of research to determine whether a certain file should be ignored or not. In that situation, it's very appropriate to put that in the repo's gitignore, preferably with comments explaining why the pattern is included/excluded.
I really like the footnote that indirectly says that sometimes you just need to spin up a background thread to figure something out. Resonates heavily with my experience, to the point where I feel like a lot of the value my experience brings is identifying this class of problems faster. You stumble onto it, recognize it's the think about it passively type and move on to other things in the meanwhile. It would be easy to bang your head on it and get nowhere, sometimes you just need to let it sit for a bit.
Show HN: Unitree Go2 ROS2 – Champ Config
I've created an open-source package that configures the Unitree Go2 quadruped robot with the CHAMP controller in ROS 2 (Humble). This project aims to make it easier for roboticists and enthusiasts to work with the Go2 robot using the popular CHAMP framework.

Key features:
- Configured Go2 robot with CHAMP
- Ported robot description and configurations to ROS 2
- Working demos in Gazebo and RViz
- Teleoperation support

The project is in active development, and are working on integrating SLAM and Nav2.

We welcome collaborators and contributors! Whether you're interested in quadruped robotics, ROS 2, or just want to tinker with cool robot simulations, there's something here for you.

Check it out on GitHub: https://github.com/anujjain-dev/unitree-go2-ros2

Feel free to try it out, open issues, submit pull requests, or just share your thoughts. Let's advance quadruped robotics together!
But… you can’t flush baby wipes, unless you want to be a monster that contributes to sewer pipe fatbergs or local blockages.
Utterly ridiculous. I'm sorry that happened to you, how infuriating.
i found it one of the most easily readable articles in a while. the author has a clear mind and good articulation.
WASM does appear to have significant tailcall consideration: https://github.com/WebAssembly/tail-call/blob/main/proposals...
And then there's me that configs vim to use the system clipboard by default
>I don't care about the cost to Delta in that video

I do. if it was something like 3m euros I'd understand the greed, even if I don't condone it.

3000? They just seem petty. As the article said, this was something a manager could pay out of pocket (and I hope they got reimbursed). It should have been a rounding error already built into their budget that they paid immediately. Delta clearly didn't care of the "innocent bystanders" either, or they were willing to bluff with them as ransom. I've had delays for stupider reasons, but this would at least be a hilarious story to share as a passenger.

It's not like some working class that may not have that much in liquid to pay off.
The second time doesn't cost as much as the first.
> lets not go so far ahead to call Android an "open" product

Why not? When you use Android without Google services it makes perfect sense that some features break. The Play Store services won't work, which is bad but not critical for a smartphone. Pretty much every local feature Android has isn't broken by using a third-party ROM without Google services. I think it's perfectly fair to call Android an Open product, no less than Ubuntu is an Open product despite selling services to their users.

> but at least you can read the source(without any guarantees that rom contents match it)

There are multiple guarantees. You can build the ROM locally and flash it yourself if you're paranoid, the only parts you can't fully inspect is the firmware (which goes for most modern devices anyways). You can also match the official checksum provided by the ROM developer to verify that you're not being MITMed, decompress the ISO archive to inspect it before flashing, or use your Superuser privileges to inspect the root directory after installation.

Android is uniquely open, and I don't think the existence of consequences for gutting Google services changes anything (for me, at least).
thank you for your detailed replied. The Git hook is an interesting idea, I use Git Husky for git hooks, and checking the mime type could be good to avoid files like screenshots being committed

I will look into this idea. Thanks again
I would expect that these runways are not high volume. Temporary/shifting/special needs.
" or resistFingerprinting is interfering"

How ironic
I’ve been thinking about the potential for PostgreSQL-backed job queue libraries to share a common schema. For instance, I’m a big fan of Oban in Elixir: https://github.com/sorentwo/oban

Given that there are many Sidekiq-compatible libraries across various languages, it might be beneficial to have a similar approach for PostgreSQL-based job queues. This could allow for job processing in different languages while maintaining compatibility.

Alternatively, we could consider developing a core job queue library in Rust, with language-specific bindings. This would provide a robust, cross-language solution while leveraging the performance and safety benefits of Rust.
Journalism was already dying when Twitter came to market, that makes your argument extremely weak. All news organizations have been hemorrhaging value since the Internet went mainstream.

But besides that: today's journalists don't chase news, they chase gossip. And Twitter does indeed provide them with plenty of that. Very few average people are interested in such information however, even if various groups are hyper focused on it.

It's still a gigantic group of people though, even if it's a tiny minority from the perspective of society
Perhaps I am under the influence of stereotypes as I haven't explored the subject thoroughly enough. But this is not the general Germany quality stereotype, I specifically mean the nuclear tech.
I mistakenly read your comment as "dreading tomorrow morning now that our thought-manager has also read this article" which I must have subconsciously decided was inline with the situation.
One IAM table aka AWS subaccount, or in GCP another "project", for one app or small collection of apps that go together is the right approach in most cases. Yes.
It doesn't even have to be an edge case. Many people support horrible things seemingly under the assumption that the government that changes control every 4-12 years will never change again.

Maybe it's rational on some level; if you manage to give the people you prefer limitless power while they rule, maybe they'll become powerful enough to end elections.

edit: of course Moraes did the same for Bolsonaro as for Lula. Some people's ideologies rest mainly on their hatred of the general population, not a preference for the rule of any particular party.
That’s an impressive statement given the recent political event in Thailand where the biggest populist party just got dissolved and the politicians got banned for decades again! As for Vietnam, have you tried living there and doing any business? Check out this first hand experience by an American businessman:
https://m.youtube.com/watch?v=6hAagmq5pwk

The lack of “rule of law” is a convenient phrase to denigrate a country you have little to no experience living in. Cambodia is not perfect but it is not necessarily worse than its neighbors when it comes to the “rule of law.” The subject is complex and full of nuances that a single phrase is not gonna do anyone justice.
>Peter Thiel

Not a fascist nor fascist enabler.

>Elon Musk

Not a fascist nor fascist enabler.

Swing and a miss. Glad I could clear that up.
Thats what imagination is.
If you can't respond, what's the problem?
I invite you to read the book or read one of the interviews with the author. It goes so much wider than FIRE. Rather than a guide, it's an invitation to build your strategy. That should workas an individual or a couple, with or without children.
I think as a solo maintainer on a project and getting many github notifications (and DMs about the notification) for their PRs every day, it had a negative effect on me.
So: "Sleep on it" is an effective strategy.
There is no such thing as a law that isn't vague to a degree, because laws are expressed in words and concepts, and those are vague by their nature. Laws can, of course, be vague to a lesser or greater degree. We definitely don't want poetry-level vague laws, but we also don't want to (or can't) have laws expressed in code or as mathematical proofs, because this level of clarity is just computationally intractable wrt. anything relating to real world and real people. At this point, the practical optimum seems to be laws that mostly obvious in vast majority of scenarios, and leaving it to judges to opine on corner cases on an individual basis.
Music is sort of its own thing. Individual musicians can put their music out there and gain a following. Visual art not so much. Not many people care about “great artists”. Most visual artists make a living making art assets of no particular individual expression and are at a lot of risk imo. I’m not sure that I believe most musicians make a living composing music.
Brazil had a USA sponsored dictatorship, and because of this has a anti dictatorship constitution. The current Supreme Court is ignoring a lot that constitution, and they even admit it and claim there are valid reasons to act that way.

For example: it is illegal to enact lockdowns without following a specific procedure. During pandemic the Supreme Court said health is more important than laws and gave an order/command to the executive branch to ignore the law and do lockdowns. The president at time complained and was immediately accused of being "genocidal" and "antidemocratic" for his criticism of this decision.
> To be fair, it makes everything twice as expensive.

The article argues it makes it less expensive to reach any specific quality level (above some threshold).

The threshold isn’t really addressed in the article, but it is implied that for any realistic quality need, the write twice approach will be cheaper.

To conclude it makes everything twice as expensive, you have to ignore any cost except the initial write. That’s not realistic.
no windows

https://github.com/zed-industries/zed/issues/5394
You'd write it as a type parameter with a type bound. There's a couple of different ways to write it, but one example:

fn foo<I>(it: I)
where
I : Iterator<Item = i32> {}
I have a few default keybindings coming from Spacemacs/AstroNvim. In case anybody finds them useful, you can find them here: https://github.com/danieljaouen/dotfiles/blob/main/topics/ze...
What comments were you expecting? Perhaps this generation is cynical enough to not care because they've been brought up under constant surveillance at home, in public, at school, etc.
> For your next act, could you tell us how the children yearn for the mines?

No but I can tell you that both my surviving grandparents worked in the local factory and that at my great grandma’s farm every able bodied man woman and child pitched in during harvest and slaughter time. And yeah my mom worked up to 3 jobs at times to make ends meet for me and my sis.

Dickens is normal for a large majority of the world population. Look around you. Most people you interact with are living Dickens right now. The lives of your uber driver, facebook moderator, barista, hair stylist, etc are much more Dickens than Austen.
If you don’t consent to searches, cops that want to search you will either simply search you illegally anyway, or call out dogs that are trained to alert whenever the cops want them to. There’s a reason that K-9 units are called “probable cause on four legs”.
What's the theory here? Traders were expecting the pipeline that had been dead for a month to come back to life, so when it exploded in dramatic fashion, their false hopes were dashed and caused a nonexistent surge?
In other words, you introduce an invalid state to every object and make constructing objects a lot more cumbersome. The first is the exact opposite of the (imo highly desirable) "make invalid states unrepresentable" principle, and the second is also a pretty extreme cost to productivity. I wouldn't say this is never worth it, but it's a very high price to pay.
https://xkcd.com/1053/ because "look mum no computer" is a real internet gem, especially if you like furbies: https://www.youtube.com/watch?v=GYLBjScgb7o
Confused, how do you ensure that a change to your implementation of some function isn't going to break clients after deployment if you don't have a unit test?
Does Zed support remote/containers development now? It was the major blocker for me when i tried it, so i had to retreat back to VSCode.
I’m not sure if programming is a social activity so their focus on collaboration is a little odd to me.
> Micro-libraries are really good actually, they're highly modular, self-contained code

Well I think that is the point, they're not self-contained. You are adding mystery stuff and who knows how deep the chain of dependencies go. See the left-pad fiasco that broke so much stuff, because the chain of transitive dependencies ran deep and wide.

NPM is a dumpster fire in this regard. I try to avoid it - is there a flag you can set to say "no downstream dependencies" or something when you add a dependency? At least that way you can be sure things really are self-contained.
Having less choice was touted as good (TM). In that vein having no choice must be the ultimate greatness.

I just don't get it. Why the heck do IT folks who know this crap from left and right keep blindly celebrating whatever that company comes up with. Just because they have huge market cap, is money really your primary judge of whats good and moral and worthy of your resources? Phones went from useful portable call/sms device into by far the most important electronic device in our lives and there is no way back.

More than any shininess and massive PR I care about options it gives me. Options means freedom, coupled of course with responsibility. I, nor absolutely nobody I know of in IT, is installing random unknown apps just for the heck of it. But when I need to and I know what I am doing, I can do it without breaking a sweat since its my and only my darn device and its basic purpose is installing & running apps. That's just basic freedom, and darn important one.

I've heard all the arguments for apple, here and elsewhere. Nothing, even combined together, trumps freedom of choice and thats directly against the core of their company policy. Time for some EU decisions I'd say to get superior product than elsewhere (although they will try to cripple it hard, very hard as we've seen in few childish steps recently).
I’m going to somehow misuse this discussion to ask for the readership help about something: I don’t understand the appeal of VSCode or more exactly I don’t understand the appeal of the text editor propped with plugins to be a semi-IDE so I guess that would also include Neovim with plugins.

In my career, I have used text editors including vim which I still very much enjoy and both Eclipse and IntelliJ when I used to code in Java which I also enjoyed.

VSCode seems to me to be as slow than a full IDE - too slow to be a nice editor - while having less features and an inferior UI to a full IDE. I don’t get it. Is it because so many languages don’t have a good IDE so people have come to accept the subpar editor+plugin experience?
Most of the negatives mentioned (fragility, bugs, plugins breaking often) are specific to neovim.
It's one of the reasons why I am and will always keep using vim instead of neovim.
Vim is a much more mature ecosystem, less chasing the newest "plugin du jour", my vimrc is stable, based on a few dozen plugins which are feature complete and rock solid stable.
Has Zed started hiding the mouse cursor when typing? If not, I'll wait.
Cops in the USA are social tech support. They exist to protect the social and economic status quo, and to close out trouble tickets that come in over the phone. Protecting and serving aren’t in the job description, practically or even legally.
Idk where you come from, but defining is hard. It's really hard to define a table or a chair. You can come up with some definition, but probably someone has a table or a chair that doesn't fit it.

Defining what's reasonable is much harder, but it can be parceled out through individual cases, and slowly build jurisprudence.
How the latest Kubernetes release now handles AI workloads – and more
Of course someone made an emulator! For example: https://github.com/itanium64/Rosalia64

(I don't know what pleasure someone can get out of declaring something "dead", but it's clearly a popular hobby.)
But assertions only tell you you broke someone after the fact (and only if they're enabled)? They don't do anything to help prevent you from breaking them in the first place.
I don't think you read the article, there is a video at the end if you prefer.

Yes we should use git ignore for the repo specific items, so if the repo has terraform it should ignore generated files - but not desktop tools people use as we all use different dev tools
Most software has a finite lifetime of a few years. You rewrite everything eventually.

What you should be worried about is the code that hasn't been rewritten in ten years.